swearingen
Civil/Environmental
- Feb 15, 2006
- 663
The order of operations that Excel uses in its formulas is incorrect for numbers raised to a power with a negative sign in front. Examples:
Excel: -5^2 = 25, but it should equal -25.
What's funny is when you type it like this:
-5^2 + 5^2 --> Excel outputs 50 when it should be 0.
Common sense tells you that it should be the same as:
5^2 - 5^2 which obviously equals 0 and Excel agrees, here.
I discovered this problem with Excel when creating a large spreadsheet and it took me two hours to find out why my formulas weren't working. Microsoft even admits that it did it on purpose in its Knowledge Base.
My advice: use parentheses like it's going out of style!
Excel: -5^2 = 25, but it should equal -25.
What's funny is when you type it like this:
-5^2 + 5^2 --> Excel outputs 50 when it should be 0.
Common sense tells you that it should be the same as:
5^2 - 5^2 which obviously equals 0 and Excel agrees, here.
I discovered this problem with Excel when creating a large spreadsheet and it took me two hours to find out why my formulas weren't working. Microsoft even admits that it did it on purpose in its Knowledge Base.
My advice: use parentheses like it's going out of style!