Get a surname using a given name
Turn Mary Ann de la Cruz into de la Cruz, using the given name you already have.
What you'll make

The formula

| Number | Part | What it does | Result so far |
|---|---|---|---|
| 1 | LEFT(TRIM(A8),LEN(TRIM(B8))+1) | The start of the full name, as long as part 2. | "Ava " |
| 2 | TRIM(B8)&" " | The given name with a space after it. | "Ava " |
| 3 | TRIM(MID(TRIM(A8),LEN(TRIM(B8))+2,LEN(TRIM(A8)))) | Keeps everything after the given name and its space. | "Reed" |
| 4 | "Review name" | Shown when the start doesn't match. | Not used for row 8 |
| 5 | IF( … ) | Gives the surname only when parts 1 and 2 match. | "Reed" |
Read it left to right. Capitals don't matter when parts 1 and 2 are compared, so ava matches Ava.
=IF(LEFT(TRIM(A8),LEN(TRIM(B8))+1)=TRIM(B8)&" ",TRIM(MID(TRIM(A8),LEN(TRIM(B8))+2,LEN(TRIM(A8)))),"Review name")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 full names and the given names you know into the green columns of the Template tab. Surnames fill in by themselves.
- Move them into your letter. Copy the results. Then use Paste Special and choose Values.
Before you send
Type the whole given name. Mary alone would give Ann de la Cruz, so use Mary Ann.
Route: Get names ready for the letter
Microsoft's help: MID function
OTHER ROUTES YOU MIGHT LIKE

Get given names using a known surname
Mary Ann de la Cruz + de la Cruz → Mary Ann
Get the template →
Get the name from the first line of a cell
Ava Reed ¶ 12 Oak St → Ava Reed
Get the template →
Get a name after an Attn: label
Attn: Ava Reed → Ava Reed
Get the template →
Fix "Dear ," when a first name is blank
(blank) → Dear colleague,
Take this route →