Remove a specified title from a name
Turn Dr. Ava Reed into Ava Reed when you need the name without the title.
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 name, as long as part 2. | "Dr. " |
| 2 | TRIM(B8)&" " | The title with a space after it. | "Dr. " |
| 3 | TRIM(MID(TRIM(A8),LEN(TRIM(B8))+2,LEN(TRIM(A8)))) | Keeps everything after the title and space. | "Ava Reed" |
| 4 | TRIM(A8) | The whole name, used when the title doesn't match. | Not used for row 8 |
| 5 | IF( … ) | Removes the title 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 dr. matches Dr.
=IF(LEFT(TRIM(A8),LEN(TRIM(B8))+1)=TRIM(B8)&" ",TRIM(MID(TRIM(A8),LEN(TRIM(B8))+2,LEN(TRIM(A8)))),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 with titles into column A of the Template tab and the title to remove into column B. Names fill in by themselves.
- Move them into your letter. Copy the results. Then use Paste Special and choose Values.
Before you send
Type the title exactly as it is in the name, period included. Dr won't remove Dr., so check those rows.
Route: Get names ready for the letter
Microsoft's help: MID function



