Text function

Google Sheets LEFT function

Returns a number of characters from the start of a piece of text.

Syntax

=LEFT(string, [number_of_characters])
stringThe text to take characters from.
number_of_charactersOptional. How many characters to return (default 1).

Try it

Edit the formula and the result updates instantly. Click a cell to add its reference.

▦ Customer import
fx
Result: NY
ABC
1Name (raw)Order codeCity
2 jane DOE NY-2041-ANew York
3MARK smithCA-1187-BFresno
4ana lopezTX-3302-CAustin
5li weiWA-0459-ASeattle
6 OMAR faroukFL-7720-BTampa
7sara KIMNY-5521-CBuffalo

Examples

These use the sample sheet above.

→ NY

The state code from an order code.

→ N

Just the first letter.

Tips & common mistakes

Related functions