Replace tabs between name parts
Turn a tab between Ava and Reed into a space, so the name reads Ava Reed.
What you'll make

The formula

| Number | Part | What it does | Result so far |
|---|---|---|---|
| 1 | A8 | The name. Each » is a hidden tab. | "Ava»Reed" |
| 2 | CHAR(9) | The tab character, which TRIM can't remove. | » |
| 3 | " " | An ordinary space. | " " |
| 4 | SUBSTITUTE( … ) | Swaps every tab for an ordinary space. | "Ava Reed" |
| 5 | TRIM( … ) | Removes extra spaces at the ends and between. | "Ava Reed" |
SUBSTITUTE works first, then TRIM tidies up.
=TRIM(SUBSTITUTE(A8,CHAR(9)," "))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 the green column of the Template tab. Clean names fill in by themselves.
- Move them into your letter. Copy the results. Then use Paste Special and choose Values.
Before you send
This fixes tabs only. Line breaks and other hidden characters need a different fix. Check the names before you send.
Route: Get names ready for the letter
Microsoft's help: SUBSTITUTE function



