Put a known surname first with a suffix

Turn Ava Reed, Jr. into Reed, Ava, Jr., using the surname you already have.

What you'll make

In Excel: Ava Reed, Jr. + Reed becomes Reed, Ava, Jr.

The formula

The formula, with a numbered bracket under each part.
NumberPartWhat it doesResult so far
1TRIM(B8)The surname you typed, without extra spaces."Reed"
2TRIM(TEXTBEFORE( … ))The given names: before the comma and the surname."Reed, Ava"
3TRIM(TEXTAFTER(A8,","))The suffix after the comma."Reed, Ava, Jr."
4"Review format"Shown when the comma or surname isn't found.Not used for row 8
5IFERROR( … )Uses part 4 when there is no comma or surname match."Reed, Ava, Jr."

Read it left to right. Each &", "& adds a comma and a space between parts.

=IFERROR(TRIM(B8)&", "&TRIM(TEXTBEFORE(TRIM(TEXTBEFORE(A8,","))," "&TRIM(B8),-1))&", "&TRIM(TEXTAFTER(A8,",")),"Review format")

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 with their suffix and the surnames you know into the green columns of the Template tab. The surname-first names fill in by themselves.
  3. Move them into your letter. Copy the results. Then use Paste Special and choose Values.

Before you send

Type the surname exactly as it appears right before the comma, capitals included, like de la Cruz.

Route: Get names ready for the letter

Microsoft's help: TEXTBEFORE function