Keep the first two words of a name

Turn Mary Ann Reed into Mary Ann for two-word first names.

What you'll make

In Excel: Mary Ann Reed becomes Mary Ann.

The formula

The formula, with a numbered bracket under each part.
NumberPartWhat it doesResult so far
1TRIM(A8)The full name, without stray spaces."Ava Marie Reed"
2TEXTBEFORE( … ," ",2)Keeps what comes before the second space."Ava Marie"
3TRIM(A8)Backup: the whole name without stray spaces.Not used for row 8
4IFERROR( … )Uses part 3 when there is no second space."Ava Marie"

Each bracket wraps the one above it, so Excel works from the inside out. The 2 means the second space.

=IFERROR(TEXTBEFORE(TRIM(A8)," ",2),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. The first two words fill in by themselves.
  3. Move them into your letter. Copy the results. Then use Paste Special and choose Values.

Before you send

This always keeps two words, so Ava Marie Reed gives Ava Marie. Use it only for people whose first name has two words.

Route: Get names ready for the letter

Microsoft's help: TEXTBEFORE function