Get the last name from Last, First
Pull Reed out of Reed, Ava, for sorting and formal letters.
Download Excel templateMicrosoft 365
What you'll make

The formula

| Number | Part | What it does | Result so far |
|---|---|---|---|
| 1 | TEXTBEFORE(A8,",") | Takes what comes before the comma. | "Reed" |
| 2 | TRIM( … ) | 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.
- See it work. The Example tab shows 20 made-up names with the formula already in.
- Use your own names. Paste Last, First names into the green column of the Template tab. Last names fill in by themselves.
- 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
OTHER ROUTES YOU MIGHT LIKE

Get middle names from a full name
Ava Marie Reed → Marie
Get the template →
Keep first and last names, drop middles
Ava Marie Reed → Ava Reed
Get the template →
Get first name from Last, First Middle
Reed, Ava Marie → Ava
Get the template →
Fix "Dear ," when a first name is blank
(blank) → Dear colleague,
Take this route →