Replace underscores in names

Turn Ava_Marie_Reed into Ava Marie Reed when underscores stand for spaces.

What you'll make

In Excel: Ava_Marie_Reed becomes Ava Marie Reed.

The formula

The formula, with a numbered bracket under each part.
NumberPartWhat it doesResult so far
1A8The name with underscores between its parts."Ava_Marie_Reed"
2"_"The underscore to replace."_"
3" "An ordinary space." "
4SUBSTITUTE( … )Swaps every underscore for a space."Ava Marie Reed"
5TRIM( … )Removes extra spaces at the ends and between."Ava Marie Reed"

SUBSTITUTE works first, then TRIM tidies up any extra spaces.

=TRIM(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 names into the green column of the Template tab. Clean names fill in by themselves.
  3. Move them into your letter. Copy the results. Then use Paste Special and choose Values.

Before you send

This turns every underscore into a space. Use it only when you know the underscores stand for spaces, not for usernames.

Route: Get names ready for the letter

Microsoft's help: SUBSTITUTE function