Change nonstandard hyphens
Turn a look-alike dash in Reed‑Park into an ordinary hyphen, so names match and sort.
What you'll make

The formula

| Number | Part | What it does | Result so far |
|---|---|---|---|
| 1 | A8 | The name. ‐ ‑ and – only look like hyphens. | "Reed‐Park" |
| 2 | SUBSTITUTE( … 8208 … ) | Swaps the look-alike hyphen ‐ for an ordinary one. | "Reed-Park" |
| 3 | SUBSTITUTE( … 8209 … ) | Swaps the nonbreaking hyphen ‑ for an ordinary one. | "Reed-Park" |
| 4 | SUBSTITUTE( … 8211 … ) | Swaps the short dash – for an ordinary hyphen. | "Reed-Park" |
Each bracket wraps the one above it, so Excel works from the inside out.
=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A8,UNICHAR(8208),"-"),UNICHAR(8209),"-"),UNICHAR(8211),"-")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. Fixed names fill in by themselves.
- Move them into your letter. Copy the results. Then use Paste Special and choose Values.
Before you send
Long dashes (—) and minus signs (−) stay as they are. Fix those rows by hand before you send.
Route: Get names ready for the letter
Microsoft's help: SUBSTITUTE function



