| A | B | C | D | E | F | G | H | I | J | K | L | M | N | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | Name | Clean | ||||||||||||
| 2 | Ada Lovelace | Ada Lovelace | ||||||||||||
| 3 | Alan Turing | |||||||||||||
| 4 | Grace Hopper | |||||||||||||
| 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 Alan Turing
Runs of spaces between words are cut to a single space.
- gives 3
How many extra spaces there were.
- gives Ada Lovelace
Functions can be nested: tidy the spaces, then the capitals.
Common mistakes
- Lookups failing on data that looks identical. A trailing space is the usual cause, and TRIM is the fix.
- It does not remove the non-breaking spaces that come with text copied from web pages.
- Trimming a copy but looking up against the original. Use the cleaned column in later formulas.
Practise it
Clean up stray spaces →Related functions