Change curly apostrophes to straight

Turn Zoë O’Neill into Zoë O'Neill so names match and sort the same way.

What you'll make

In Excel: O’Neill becomes O'Neill.

The formula

The formula, with a numbered bracket under each part.
NumberPartWhat it doesResult so far
1A8The name. ’ and ‘ are curly, ' is straight."Ava Reed"
2UNICHAR(8217)The curly apostrophe ’, as in O’Neill.’
3SUBSTITUTE( … ,"'")Swaps each ’ for a straight '."Ava Reed"
4UNICHAR(8216)The other curly apostrophe ‘, facing the other way.‘
5SUBSTITUTE( … ,"'")Swaps each ‘ for a straight ' too."Ava Reed"

Each bracket wraps the one above it, so Excel works from the inside out. Names with no apostrophe stay the same.

=SUBSTITUTE(SUBSTITUTE(A8,UNICHAR(8217),"'"),UNICHAR(8216),"'")

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

Only curly apostrophes change. Curly quotation marks like “ and ” stay as they are, so check names that have them.

Route: Get names ready for the letter

Microsoft's help: SUBSTITUTE function