Keep first and last names, drop middles

Turn Ava Marie Reed into Ava Reed for letters and name labels.

What you'll make

In Excel: Ava Marie Reed becomes Ava Reed.

The formula

The formula, with a numbered bracket under each part.
NumberPartWhat it doesResult so far
1TEXTBEFORE(TRIM(A8)," ")Keeps the first word of the name."Ava"
2" "Adds a space."Ava "
3TEXTAFTER(TRIM(A8)," ",-1)Adds the word after the last space."Ava Reed"
4TRIM(A8)Backup: the name without stray spaces.Not used for row 8
5IFERROR( … )Uses the backup when the name has no space."Ava Reed"

Read it left to right. One word or an empty cell stays as it is.

=IFERROR(TEXTBEFORE(TRIM(A8)," ")&" "&TEXTAFTER(TRIM(A8)," ",-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 full names into the green column of the Template tab. First and last 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 keeps only the first and last words. Check two-word names, titles and suffixes by hand, like Mary Ann or Jr.

Route: Get names ready for the letter

Microsoft's help: TEXTAFTER function