Excel LEFT Function: Supported versions
-
All Excel versions
Excel LEFT Function: Syntax
excel
=LEFT(text, num_chars)
Where:
- text is the cell reference or text string containing the original text.
- num_chars is the number of characters you want to extract from the left side of the text.
Here's an example of how you might use the LEFT function in Excel:
excel
=LEFT(A2, 5)
In this example, A2 is the cell reference containing the original product code, and 5 is the number of characters you want to extract from the left side of the code.
LEFT(text, [num_chars])
Arguments
| text | The text that contains the sub-string you want to extract. |
| [num_chars] | Optional. The number of characters you want to extract. |
Examples
Let's have a look at examples for LEFT function.
For example, suppose you have a list of product codes in column A, and each code consists of a unique identifier followed by a series of numbers. If you want to extract the unique identifier from each code, you can use the LEFT function to do so.
Example 1
=LEFT("Charizard",4)
=LEFT("Blastoise")
