Syntax
| Parameter | Description |
|---|---|
| text | Parameter of the LEFT function. |
| [num_chars] | (Optional.) Parameter of the LEFT function. |
Examples
Extract area code from phone number
=LEFT(A2, 3)
Get first name from full name
=LEFT(A2, FIND(" ", A2)-1)
Extract year from date string
=LEFT(A2, 4)
Common Errors
The num_chars argument is negative. It must be zero or a positive number.
The cell contains a date or number, not text. Wrap it with TEXT() first to convert: =LEFT(TEXT(A1,"0"), 3).
Tips
Extract text before a delimiter: =LEFT(A1, FIND("-", A1)-1) gets everything before the first hyphen.
=LEFT(A1) returns just the first character, same as =LEFT(A1, 1).
To get everything except the last N characters: =LEFT(A1, LEN(A1)-N).
Try LEFT in Viztab
Import your data and use LEFT with 370+ other formulas. No signup required.
Open Viztab