Get first name from Last, First Middle

Pull Ava out of Reed, Ava Marie, for greetings like Dear Ava.

What you'll make

In Excel: Reed, Ava Marie becomes Ava.

The formula

The formula, with a numbered bracket under each part.
NumberPartWhat it doesResult so far
1TRIM(TEXTAFTER(A8,","))Takes what comes after the comma, minus stray spaces."Ava Marie"
2&" "Adds a space, so one-word names work too."Ava Marie "
3" "Where to cut: the first space." "
4TEXTBEFORE( … )Keeps everything before that space."Ava"
5IFERROR( … )Shows nothing if there is no comma."Ava"

Read it left to right. A name with no comma stays blank.

=IFERROR(TEXTBEFORE(TRIM(TEXTAFTER(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 Last, First Middle names into the green column of the Template tab. 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

Only the first word is kept, so Mary Ann becomes Mary. Check two-word first names before you send.

Route: Get names ready for the letter

Microsoft's help: TEXTBEFORE function