| A | B | C | D | E | F | G | H | I | J | K | L | M | N | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | Password | Length | ||||||||||||
| 2 | hunter2 | 7 | ||||||||||||
| 3 | correct horse | |||||||||||||
| 4 | ||||||||||||||
| 5 | ||||||||||||||
| 6 | ||||||||||||||
| 7 | ||||||||||||||
| 8 | ||||||||||||||
| 9 | ||||||||||||||
| 10 | ||||||||||||||
| 11 | ||||||||||||||
| 12 | ||||||||||||||
| 13 | ||||||||||||||
| 14 | ||||||||||||||
| 15 | ||||||||||||||
| 16 | ||||||||||||||
| 17 | ||||||||||||||
| 18 | ||||||||||||||
| 19 | ||||||||||||||
| 20 | ||||||||||||||
| 21 | ||||||||||||||
| 22 | ||||||||||||||
| 23 | ||||||||||||||
| 24 | ||||||||||||||
| 25 | ||||||||||||||
| 26 | ||||||||||||||
| 27 | ||||||||||||||
| 28 | ||||||||||||||
| 29 | ||||||||||||||
| 30 |
More to try
Each of these works on the sheet. Press one to put it in B2.
- gives 13
The space between the words counts as a character.
- gives Too short
A length test inside IF.
- gives 1
Removing the spaces and comparing lengths counts the spaces.
Common mistakes
- Spaces count. Stray spaces at the ends make text longer than it looks; TRIM removes them.
- Measuring a formatted number. LEN counts the digits of the value underneath, not the commas or currency sign on show.
- Expecting it to count words. It counts characters.
Practise it
Check a length →Related functions