Remove extra spaces from names
Clean up spaces at the ends and doubled spaces in the middle.
What you'll make

The formula

| Number | Part | What it does | Result so far |
|---|---|---|---|
| 1 | A8 | The name from your export. | " Ava Reed " |
| 2 | TRIM( … ) | Removes spaces at the ends and turns doubled spaces into one. | "Ava Reed" |
TRIM keeps one space between words, so names stay readable.
=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 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
TRIM only fixes ordinary spaces. If a gap won't go away, it may be a different character, like a nonbreaking space.
Route: Get names ready for the letter
Microsoft's help: TRIM function
OTHER ROUTES YOU MIGHT LIKE

Copy finished names as text
Turns formula results into plain names
Get the template →
Replace nonbreaking spaces in names
Removes the hidden spaces TRIM misses
Get the template →
Change all-caps names to proper case
AVA REED → Ava Reed
Get the template →
Fix "Dear ," when a first name is blank
(blank) → Dear colleague,
Take this route →