Negative numbers with both parentheses and dash in Excel

I have numbers in a large Excel sheet. The negative numbers are displayed as strings such as (-101.10) corresponding to -101.10. The positive numbers are displayed as usual, such as 101.10.

The problem is, Excel doesn't recognize the combination of both parentheses and the negative symbol.

How can I reformat these negative numbers so that Excel understands?

5

1 Answer

I’ll assume that you know where the (possibly malformed) numbers are.  For example, they might all be in Columns A and B, having been imported from some external source, while other columns have formulas, text, or numbers that you have entered.

Pick some area of the workbook that is the same size and shape.  In the example above, you would need to pick two columns that aren’t being used for anything else.  You could use Columns G and H, or X and Y, or you could go to another sheet.  Assuming that your data are in A and B, and G and H are available, enter the following in Cell G1:

=IF(AND(LEFT(A1,2)="(-",RIGHT(A1,1)=")"), IFERROR(VALUE(MID(A1,2,LEN(A1)-2)), "ERROR: "&A1), A1)

Drag/fill right to Column H and down to cover all your data.  Then copy and paste values back into Columns A and B.

Note that this will change (-number)to -number, but not affect parentheses in any other context.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like