
Extracts a chosen number of characters from the start of a text string.
The Excel LEFT function returns characters from the beginning of a text string. You choose how many characters to take, and Excel starts from the left side. For example, =LEFT("EC-101",2) returns "EC".
LEFT is useful when the part you need is always at the start of the value. Common examples are prefixes, initials, area codes, and the first part of a structured code. When the length is fixed, LEFT is enough on its own. When the length changes, you usually combine it with FIND or SEARCH.
Returns the first part of a text string based on the number of characters you request.
Returns text. If you ask for more characters than the text contains, Excel returns the whole string.
=LEFT(text, [num_chars])
The first argument is the text to extract from. The second argument is how many characters to return. If you leave num_chars out, Excel uses 1, so =LEFT(A1) returns only the first character.
LEFT, RIGHT, and MID all extract text, but they start from different positions. LEFT starts at the beginning, RIGHT starts at the end, and MID starts from any position you specify.
| Function | Starts From | Use When |
|---|---|---|
LEFT |
The first character | The part you need is at the beginning |
RIGHT |
The last character | The part you need is at the end |
MID |
A position you choose | The part you need is in the middle |
FIND / SEARCH |
- | You first need the position of a separator |
If every value follows the same pattern, LEFT is simple. A formula like =LEFT(A1,3) can return a three-letter code from every row. This is common with product prefixes, class codes, and short identifiers.
If the length is not fixed, LEFT becomes more useful when paired with FIND. For example, =LEFT(A1,FIND("-",A1)-1) returns everything before the first hyphen. Because FIND locates the hyphen first, the formula still works even when the prefix length changes.
This is the basic LEFT pattern. Excel starts at the first character and returns the number of characters you specify. It works best when the structure is consistent across the whole column.
=LEFT("ExcelClash", 5) // "Excel"
=LEFT("ENG-2026", 3) // "ENG"
=LEFT("EC-101", 2) // "EC"
In cell F1, use LEFT to extract the first 5 characters from "ExcelClash". Expected result: "Excel".
When the area code always appears at the start in the same format, LEFT can extract it directly. Here the first five characters are (212), so that is what the formula returns.
=LEFT(A1, 5) // "(212) 555-0101" -> "(212)"
In cell F2, use LEFT on A1 to extract the first 5 characters, which gives the area code "(212)".
If you set num_chars to 1, LEFT returns only the first character. This is useful for initials, short labels, or checks based on the first letter of a value.
=LEFT(B2, 1) // "John Smith" -> "J"
=LEFT(B2, 1)&"." // "J."
In cell F3, use LEFT on B2 ("John Smith") to extract just the first letter. Expected result: "J".
When the prefix length changes, LEFT alone is not enough because you do not know how many characters to take. In that case, FIND returns the position of the hyphen, and LEFT uses that result to cut the text at the correct point.
=LEFT(C1, FIND("-",C1)-1)
// "MTL-005" -> finds "-" at position 4 -> returns "MTL"
In cell F4, use FIND to locate the hyphen in C1 ("MTL-005"), then use LEFT to extract everything before it.
LEFT works on text, but Excel will also apply it to numbers and dates by first converting them to text. That can be useful, but it can also produce results that look odd if you expected numeric behavior. It is best to use LEFT when you are clearly working with text-based values or text-like codes.
LEFT returns characters from the beginning of a text string.=LEFT(text, [num_chars]).num_chars is omitted, Excel returns just the first character.Tell your friends about this post