Read parentheses as a negative amount

Turn accounting text like ($1,234.50) into the number -1234.5.

What you'll make

In Excel: ($1,234.50) becomes -1234.5.

The formula

The formula, with a numbered bracket under each part.
NumberPartWhat it doesResult so far
1IF( … )Gives -1 when the amount starts with a bracket, otherwise 1.-1
2SUBSTITUTE( … )Takes out the $ sign and both brackets."1,234.50"
3NUMBERVALUE( … ,".",",")Reads it as a number. A period marks decimals.1234.5

Parts 2 and 3 work from the inside out. The * multiplies part 3 by part 1, so ($1,234.50) gives -1234.5. The amounts are made-up.

=IF(LEFT(TRIM(A8),1)="(",-1,1)*NUMBERVALUE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(TRIM(A8),"$",""),"(",""),")",""),".",",")

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 like ($1,234.50) 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

A minus sign inside brackets, like (-$40.00), comes out positive. Check those first.

Microsoft's help: NUMBERVALUE function