Get the second name line from a cell
Pull Noah Park out of a cell that holds Ava Reed and Noah Park.
Download Excel templateMicrosoft 365
What you'll make

The formula

| Number | Part | What it does | Result so far |
|---|---|---|---|
| 1 | A8 | Names on separate lines. ¶ marks a line break. | "Ava Reed¶Noah Park" |
| 2 | SUBSTITUTE( … ,CHAR(13),"") | Removes a hidden return left by some files. | "Ava Reed¶Noah Park" |
| 3 | TEXTAFTER( … ,CHAR(10)) | Drops the first line. | "Noah Park" |
| 4 | TEXTBEFORE( … &CHAR(10),CHAR(10)) | Keeps the second line, drops any later lines. | "Noah Park" |
| 5 | IFERROR( … ,"") | Shows nothing when there is no second line. | "Noah Park" |
Each bracket wraps the one above it, so Excel works from the inside out. The extra CHAR(10) lets a last line count too.
=IFERROR(TEXTBEFORE(TEXTAFTER(SUBSTITUTE(A8,CHAR(13),""),CHAR(10))&CHAR(10),CHAR(10)),"")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 cells with one name per line into the green column of the Template tab. Each second name fills in by itself.
- Move them into your letter. Copy the results. Then use Paste Special and choose Values.
Before you send
Only the second line comes back. If a cell has an empty second line, the result is blank, so check blank rows by hand.
Route: Get names ready for the letter
Microsoft's help: TEXTAFTER function
OTHER ROUTES YOU MIGHT LIKE

Get a surname starting with a particle
Ava de la Cruz + de la → de la Cruz
Get the template →
Keep the last two words of a name
Ava Reed Park → Reed Park
Get the template →
Keep the first two words of a name
Mary Ann Reed → Mary Ann
Get the template →
Fix "Dear ," when a first name is blank
(blank) → Dear colleague,
Take this route →