Get the second first name in a household

Pull Noah out of Ava and Noah Reed, so each person has a column.

What you'll make

In Excel: Ava and Noah Reed becomes Noah.

The formula

The formula, with a numbered bracket under each part.
NumberPartWhat it doesResult so far
1TEXTAFTER(A8," and ",1,1)Takes what comes after the first "and"."Noah Reed"
2TEXTBEFORE( … ," ",-1)Drops the last word, the shared last name."Noah"
3TRIM( … )Removes any spaces left at the ends."Noah"
4IFERROR( … ,"")Shows nothing when there is no "and"."Noah"

Each bracket wraps the one above it, so Excel works from the inside out. The 1,1 means the first "and", in any capitals. The -1 means the last space.

=IFERROR(TRIM(TEXTBEFORE(TEXTAFTER(A8," and ",1,1)," ",-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 household names into the green column of the Template tab. The second first name fills in by itself.
  3. Move them into your letter. Copy the results. Then use Paste Special and choose Values.

Before you send

The last word counts as the shared last name. Mary Ann and A. J. de la Cruz gives A. J. de la, so check longer last names by hand.

Route: Get names ready for the letter

Microsoft's help: TEXTBEFORE function