Remove a specified suffix from a name

Turn Ava Reed Jr. into Ava Reed, using the suffix you choose.

What you'll make

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

The formula

The formula, with a numbered bracket under each part.
NumberPartWhat it doesResult so far
1RIGHT(TRIM(A8),LEN(TRIM(B8))+1)The end of the name, as long as part 2." Jr."
2" "&TRIM(B8)The suffix with a space before it." Jr."
3TRIM(LEFT(TRIM(A8),LEN(TRIM(A8))-LEN(TRIM(B8))-1))Keeps everything before the space and suffix."Ava Reed"
4TRIM(A8)The whole name, used when the end doesn't match.Not used for row 8
5IF( … )Drops the suffix only when parts 1 and 2 match."Ava Reed"

Read it left to right. Capitals don't matter when parts 1 and 2 are compared, so jr. matches Jr.

=IF(RIGHT(TRIM(A8),LEN(TRIM(B8))+1)=" "&TRIM(B8),TRIM(LEFT(TRIM(A8),LEN(TRIM(A8))-LEN(TRIM(B8))-1)),TRIM(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 column A and the suffix to remove into column B of the Template tab. The 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

Take out any comma before the suffix first. Ava Reed, Jr. would keep its comma.

Route: Get names ready for the letter

Microsoft's help: RIGHT function