Text function
Excel LEFT function
LEFT returns the first few characters of a text value. Use it to grab a prefix from a product code, the area code from a phone number, or a first name when combined with FIND.
=LEFT(text, [num_chars])Arguments
text- The text or cell to take characters from.
num_chars- How many characters to return. Leave it out to get just the first one.
LEFT examples
Every result below was calculated from this sample sheet by the same spreadsheet engine the Cellwise app uses.
| A | B | C | |
|---|---|---|---|
| 1 | Product code | Phone | Full name |
| 2 | HW-4471-BLK | 415-555-0132 | Grace Hopper |
| 3 | SW-1029-PRO | 212-555-0198 | Alan Turing |
| 4 | AC-3310-WHT | 312-555-0144 | Ada Lovelace |
Result: HW
Takes the first two characters: the category prefix "HW".
Result: 212
Pulls the area code from the start of the phone number.
Result: Grace
FIND locates the space, so LEFT returns everything before it: the first name.
Result: A
With no count, LEFT returns just the first character.
How to use LEFT
- Click the cell for the result.
- Type =LEFT( and select the text cell.
- Add a comma and the number of characters you want.
- Close the bracket and copy it down.
Common LEFT mistakes
Expecting a number back
LEFT always returns text. Wrap it in VALUE, or use --LEFT(A2,3), to do math with the result.
Hard-coding a length for variable text
First names have different lengths. Use FIND to work out how many characters to take.
Leading spaces throw off the count
Clean the text with TRIM first: LEFT(TRIM(A2),3).
LEFT FAQ
How do I extract the first word in Excel?
Use =LEFT(A2,FIND(" ",A2)-1). FIND gives the position of the first space, and LEFT takes everything before it.
How do I remove the first character in Excel?
LEFT keeps characters, so use RIGHT or MID instead: =RIGHT(A2,LEN(A2)-1) drops the first character.
Why does LEFT on a date return a strange number?
Dates are stored as serial numbers, so LEFT sees something like 45321. Use TEXT(A2,"yyyy") or YEAR(A2) instead.
Practice LEFT in these lessons
Guides that use LEFT
- How to separate first and last name in Excel
- How to extract text before a character in Excel
- How to capitalize the first letter in Excel
- How to remove characters from a cell in Excel
- How to extract numbers from a string in Excel
- #VALUE! error in Excel: causes and fixes
- Excel formulas cheat sheet: the 25 everyone should know
Related functions
RIGHTCharacters from the endMIDCharacters from the middleFINDPosition of text (case-sensitive)LENLength of text
Updated