Google Sheets LEN function
Returns the number of characters in a piece of text, spaces included.
Syntax
=LEN(text)
text | The text or cell to measure. |
|---|
Try it
Edit the formula and the result updates instantly. Click a cell to add its reference.
Customer import
Result: 9
| A | B | C | |
|---|---|---|---|
| 1 | Name (raw) | Order code | City |
| 2 | jane DOE | NY-2041-A | New York |
| 3 | MARK smith | CA-1187-B | Fresno |
| 4 | ana lopez | TX-3302-C | Austin |
| 5 | li wei | WA-0459-A | Seattle |
| 6 | OMAR farouk | FL-7720-B | Tampa |
| 7 | sara KIM | NY-5521-C | Buffalo |
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
- Use LEN to check that IDs, codes or phone numbers are the expected length.