Remove a repeated surname at the end
Turn Ava Reed Reed into Ava Reed, when you know the repeat is a mistake.
What you'll make

The formula

| Number | Part | What it does | Result so far |
|---|---|---|---|
| 1 | RIGHT(" "&TRIM(A8),2*LEN(TRIM(B8))+2) | The end of the name, as long as part 2. | " Reed Reed" |
| 2 | " "&TRIM(B8)&" "&TRIM(B8) | The surname twice, with a space before each. | " Reed Reed" |
| 3 | TRIM(LEFT(TRIM(A8),LEN(TRIM(A8))-LEN(TRIM(B8))-1)) | Keeps the name without its last surname. | "Ava Reed" |
| 4 | TRIM(A8) | The whole name, used when there is no repeat. | Not used for row 8 |
| 5 | IF( … ) | Drops one surname only when parts 1 and 2 match. | "Ava Reed" |
Read it left to right. Capitals don't matter when parts 1 and 2 are compared, so reed matches Reed.
=IF(RIGHT(" "&TRIM(A8),2*LEN(TRIM(B8))+2)=" "&TRIM(B8)&" "&TRIM(B8),TRIM(LEFT(TRIM(A8),LEN(TRIM(A8))-LEN(TRIM(B8))-1)),TRIM(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 names into column A of the Template tab and the repeated surname into column B. Clean names fill in by themselves.
- Move them into your letter. Copy the results. Then use Paste Special and choose Values.
Before you send
Only use this when you know the repeat is a mistake. Some real names repeat a word on purpose.
Route: Get names ready for the letter
Microsoft's help: RIGHT function
OTHER ROUTES YOU MIGHT LIKE

Uppercase only the first letter
o’Neill → O’Neill
Get the template →
Remove extra spaces from names
" Ava Reed " → Ava Reed
Get the template →
Copy finished names as text
Turns formula results into plain names
Get the template →
Fix "Dear ," when a first name is blank
(blank) → Dear colleague,
Take this route →