Remove all spaces from a single name

Turn O’ Neill into O’Neill when a stray space splits one name.

What you'll make

In Excel: O’ Neill becomes O’Neill.

The formula

The formula, with a numbered bracket under each part.
NumberPartWhat it doesResult so far
1A8The one name to clean up."Reed"
2" "The character to remove: a space." "
3""What goes in its place: nothing.""
4SUBSTITUTE( … )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.

  1. See it work. The Example tab shows 20 made-up names with the formula already in.
  2. 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.
  3. 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