Get middle names from Last, First
Pull Marie Anne out of Reed, Ava Marie Anne, so each name has its own column.
Download Excel templateMicrosoft 365
What you'll make

The formula

| Number | Part | What it does | Result so far |
|---|---|---|---|
| 1 | TEXTAFTER(A8,",") | Takes what comes after the comma. | " Ava Marie" |
| 2 | TRIM( … ) | Trims the space off the front. | "Ava Marie" |
| 3 | TEXTAFTER( … ," ") | Drops the first word, the first name. | "Marie" |
| 4 | TRIM( … ) | Removes any spaces left at the ends. | "Marie" |
| 5 | IFERROR( … ,"") | Shows nothing when there is no comma or middle name. | "Marie" |
Each bracket wraps the one above it, so Excel works from the inside out.
=IFERROR(TRIM(TEXTAFTER(TRIM(TEXTAFTER(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 Middle names into the green column of the Template tab. Middle names fill in by themselves.
- Move them into your letter. Copy the results. Then use Paste Special and choose Values.
Before you send
Only the first word after the comma counts as the first name. Mary Ann Lee would give Ann Lee, so check two-word first names by hand.
Route: Get names ready for the letter
Microsoft's help: TEXTAFTER function
OTHER ROUTES YOU MIGHT LIKE

Get first part of hyphenated last name
Reed-Park → Reed
Get the template →
Get the rest of a hyphenated last name
Reed-Park → Park
Get the template →
Get a preferred name from parentheses
Ava (Avie) Reed → Avie
Get the template →
Fix "Dear ," when a first name is blank
(blank) → Dear colleague,
Take this route →