Replace typed backslash-n in names

Turn Ava\nReed, copied from another system, into Ava Reed.

What you'll make

In Excel: Ava\nReed becomes Ava Reed.

The formula

The formula, with a numbered bracket under each part.
NumberPartWhat it doesResult so far
1A8The name, with the typed text \n between its parts."Ava\nReed"
2"\n"A backslash then a small n, typed as plain text."\n"
3" "An ordinary space." "
4SUBSTITUTE( … )Swaps every \n for an ordinary space."Ava Reed"
5TRIM( … )Removes extra spaces at the ends and between."Ava Reed"

SUBSTITUTE works first, then TRIM tidies up.

=TRIM(SUBSTITUTE(A8,"\n"," "))

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

Only a small \n is fixed; \N with a capital stays. Use this only when \n always means a space in your list.

Route: Get names ready for the letter

Microsoft's help: SUBSTITUTE function