Keep a name after the last separator

Turn NE|Active|Ava Reed into Ava Reed, with the separator you choose in column B.

What you'll make

In Excel: NE|Active|Ava Reed + | becomes Ava Reed.

The formula

The formula, with a numbered bracket under each part.
NumberPartWhat it doesResult so far
1TEXTAFTER(A8,B8,-1)Keeps what comes after the last separator."Ava Reed"
2TRIM( … )Removes any spaces left at the ends."Ava Reed"
3IFERROR( … ,"")Shows nothing when there is no separator."Ava Reed"

Each bracket wraps the one above it, so Excel works from the inside out.

=IFERROR(TRIM(TEXTAFTER(A8,B8,-1)),"")

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 export records into column A of the Template tab and their separator into column B. Names fill in by themselves.
  3. Move them into your letter. Copy the results. Then use Paste Special and choose Values.

Before you send

The name must be the last field in each record. Check rows where something comes after the name.

Route: Get names ready for the letter

Microsoft's help: TEXTAFTER function