Get the last name from Last, First

Pull Reed out of Reed, Ava, for sorting and formal letters.

What you'll make

In Excel: Reed, Ava becomes Reed.

The formula

The formula, with a numbered bracket under each part.
NumberPartWhat it doesResult so far
1TEXTBEFORE(A8,",")Takes what comes before the comma."Reed"
2TRIM( … )Removes any stray spaces."Reed"

TRIM wraps everything, so it tidies up last.

=TRIM(TEXTBEFORE(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 names into the green column of the Template tab. 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

Last names with several words stay together, like de la Cruz. Check the spelling before you send.

Route: Get names ready for the letter

Microsoft's help: TEXTBEFORE function