# LEFT in Google Sheets: syntax and examples

URL: https://goingstellar.ro/reference/sheets/left/

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

- `string` (text, required: yes): The text to cut. A number or date is converted to text first.
- `number_of_characters` (number, required: no): How many characters to keep from the start. Default is 1.

## Examples

The examples use this table, starting in A1:

| Code | Name |
|---|---|
| AB-1234 | Ana Pop |
| CD-5678 | Radu Ionescu |
| EF-9012 | Maria |

```
=LEFT("Spreadsheet", 5)
```

Result: `Sprea`

The first five characters of a text. Run in a Google Sheet (English US locale) on 2026-11-29.

```
=LEFT(A2, 2)
```

Result: `AB`

Prefix of a code stored in a cell. Run in a Google Sheet (English US locale) on 2026-11-29.

```
=LEFT(B3)
```

Result: `R`

Without the second argument you get one character, the initial. Run in a Google Sheet (English US locale) on 2026-11-29.

```
=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 2026-11-29.

```
=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 2026-11-29.

## 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.

## Related functions

- [RIGHT](https://goingstellar.ro/reference/sheets/right/)
- [MID](https://goingstellar.ro/reference/sheets/mid/)
- [LEN](https://goingstellar.ro/reference/sheets/len/)
- [FIND](https://goingstellar.ro/reference/sheets/find/)
- [TRIM](https://goingstellar.ro/reference/sheets/trim/)
- [TEXT](https://goingstellar.ro/reference/sheets/text/)

## Sources

- [LEFT (Docs Editors Help)](https://support.google.com/docs/answer/3094079)

