Text function

Google Sheets LEN function

Returns the number of characters in a piece of text, spaces included.

Syntax

=LEN(text)
textThe text or cell to measure.

Try it

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

▦ Customer import
fx
Result: 9
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.

→ 9

Order codes are 9 characters long.

→ 5

How many extra spaces a messy name contains.

Tips & common mistakes

Related functions