Convert a math minus sign in amounts

Turn −1,234.50, typed with a math minus sign, into the number -1234.5.

What you'll make

In Excel: −1,234.50 with a math minus becomes -1234.5.

The formula

The formula, with a numbered bracket under each part.
NumberPartWhat it doesResult so far
1A8The amount as text, with a math minus sign (−)."−1,234.50"
2UNICHAR(8722)The math minus sign. It looks like a dash."−"
3SUBSTITUTE( … ,"-")Swaps it for the plain minus sign (-)."-1,234.50"
4NUMBERVALUE( … ,".",",")Reads it as a number. A period marks decimals.-1234.5

Each bracket wraps the one before it, so Excel works from the inside out. The amounts here are made-up.

=NUMBERVALUE(SUBSTITUTE(A8,UNICHAR(8722),"-"),".",",")

How to use it

Yellow bar at the top? Click Enable Editing.

  1. See it work. The Example tab shows 20 made-up examples with the formula already in.
  2. Use your own amounts. Paste amounts into the green column of the Template tab. The numbers fill in by themselves.
  3. Move them into your letter. Copy the results. Then use Paste Special and choose Values.

Before you send

This only works when a period marks decimals. Other dashes, like an en dash, still need a look.

Microsoft's help: UNICHAR function