Remove all spaces from a single name
Turn O’ Neill into O’Neill when a stray space splits one name.
What you'll make

The formula

| Number | Part | What it does | Result so far |
|---|---|---|---|
| 1 | A8 | The one name to clean up. | "Reed" |
| 2 | " " | The character to remove: a space. | " " |
| 3 | "" | What goes in its place: nothing. | "" |
| 4 | SUBSTITUTE( … ) | Removes every space in the cell. | "Reed" |
Letters, hyphens and apostrophes stay exactly as they are. Names with no space stay the same.
=SUBSTITUTE(A8," ","")How to use it
Yellow bar at the top? Click Enable Editing.
- See it work. The Example tab shows 20 made-up names with the formula already in.
- Use your own names. Paste first names or last names into the green column of the Template tab. Names without spaces fill in by themselves.
- Move them into your letter. Copy the results. Then use Paste Special and choose Values.
Before you send
Every space goes, so de la Cruz becomes delaCruz. Use it only where the space is a mistake, never on full names.
Route: Get names ready for the letter
Microsoft's help: SUBSTITUTE function
OTHER ROUTES YOU MIGHT LIKE

Apply a known capitalization exception
van dijk + van Dijk → van Dijk
Get the template →
Replace narrow nonbreaking spaces
Ava [narrow no-break space] Reed → Ava Reed
Get the template →
Remove a hidden mark from a name
[BOM]Ava Reed → Ava Reed
Get the template →
Fix "Dear ," when a first name is blank
(blank) → Dear colleague,
Take this route →