Change nonstandard hyphens

Turn a look-alike dash in Reed‑Park into an ordinary hyphen, so names match and sort.

What you'll make

In Excel: Reed‑Park becomes Reed-Park.

The formula

The formula, with a numbered bracket under each part.
NumberPartWhat it doesResult so far
1A8The name. ‐ ‑ and – only look like hyphens."Reed‐Park"
2SUBSTITUTE( … 8208 … )Swaps the look-alike hyphen ‐ for an ordinary one."Reed-Park"
3SUBSTITUTE( … 8209 … )Swaps the nonbreaking hyphen ‑ for an ordinary one."Reed-Park"
4SUBSTITUTE( … 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.

  1. See it work. The Example tab shows 20 made-up names with the formula already in.
  2. Use your own names. Paste names into the green column of the Template tab. Fixed names fill in by themselves.
  3. 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