Going Stellar

Home/Google Sheets reference

Google Sheets function · Text

LEFT in Google Sheets: syntax and examples

LEFT returns a given number of characters from the start of a text. Combine it with FIND to cut a code at a separator, or with ARRAYFORMULA to process a whole column.

Syntax

LEFT(string, [number_of_characters])

Arguments

ArgumentTypeRequiredWhat it does
stringtextyesThe text to cut. A number or date is converted to text first.
number_of_charactersnumbernoHow many characters to keep from the start. Default is 1.

Examples

The examples use this table, starting in A1:

CodeName
AB-1234Ana Pop
CD-5678Radu Ionescu
EF-9012Maria
=LEFT("Spreadsheet", 5)

Result: Sprea

The first five characters of a text.

Run in a Google Sheet (English US locale) on .

=LEFT(A2, 2)

Result: AB

Prefix of a code stored in a cell.

Run in a Google Sheet (English US locale) on .

=LEFT(B3)

Result: R

Without the second argument you get one character, the initial.

Run in a Google Sheet (English US locale) on .

=LEFT(A3, FIND("-", A3) - 1)

Result: CD

Everything before the dash, whatever the length of the prefix.

Run in a Google Sheet (English US locale) on .

=ARRAYFORMULA(LEFT(B2:B4, 3))

Result:

Ana
Rad
Mar

The first three letters of every name in one formula.

Run in a Google Sheet (English US locale) on .

Common errors

  • A negative number_of_characters returns #VALUE!. Zero returns an empty text.
  • Asking for more characters than the text has is not an error: you get the whole text.
  • A date is converted to text in the locale's display format, so LEFT(DATE(2026,11,29), 2) returns 11 in en_US (11/29/2026) and 29 in a RO locale. Use TEXT with an explicit format to get the same result everywhere.
  • The result is always text, even when it looks like a number: ISNUMBER(LEFT(12345, 2)) is FALSE. Wrap it in VALUE when you need a real number.

Compared with Excel

Same syntax in Excel.

Sources

  1. LEFT (Docs Editors Help)

Markdown version · All functions