Texteasy
LEN()
Returns the number of characters in a string.
Syntax
fx
=LEN(text)
Arguments
Try it
F2
→
6
Sample data · sales.csv
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Company | Region | Quarter | Revenue |
| 2 | Acme Co | West | Q1 | 18,400 |
| 3 | Acme Co | West | Q2 | 22,100 |
| 4 | Acme Co | West | Q3 | 31,700 |
| 5 | Acme Co | West | Q4 | 48,200 |
| 6 | Globex | East | Q1 | 14,200 |
| 7 | Globex | East | Q2 | 19,800 |
| 8 | Globex | East | Q3 | 23,400 |
Common pitfalls
- Counts characters, not bytes. Emoji that use surrogate pairs may register as 2: test if you depend on exact counts.
- Trailing spaces count toward
LEN. Wrap withTRIMfirst if you only care about visible content length.
Related formulas
Used by