Excel Calculation Issue

azbasketcat

New Member
Joined
Feb 20, 2010
Messages
30
I have an interesting issue I just found in one of my Excel workbooks, I was hoping one of the brilliant minds on Mr. Excel could shed some light on this.

I have three values in A1, A2 and A3. All three of these values were derived from formulas in another worksheet, but I pasted the values in a blank workbook and was able to replicate the issue. Essentially, A2 was derived from subtracting A3 from A1. I am trying to understand why Result 1 does not equal zero, even though it should as proven by Results 2 and 3.

Ultimately, I can deal with this by using Round(), but was curious if anyone has any thoughts. Thanks - Randy


[TABLE="width: 445"]
<tbody>[TR]
[TD]A1:
[/TD]
[TD="align: right"]25201.0862309080000
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A2:
[/TD]
[TD="align: right"]23334.4417737846000
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A3:
[/TD]
[TD="align: right"]1866.6444571233500
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Is Zero
[/TD]
[/TR]
[TR]
[TD]Result 1:
[/TD]
[TD="align: right"]A1-A2-A3 = 0.0000000000018
[/TD]
[TD][/TD]
[TD="align: center"]FALSE
[/TD]
[/TR]
[TR]
[TD]
Result 2:

[/TD]
[TD="align: right"]A1-A3-A2 = 0.0000000000000
[/TD]
[TD][/TD]
[TD="align: center"]TRUE
[/TD]
[/TR]
[TR]
[TD]
Result 3:

[/TD]
[TD="align: right"]A1-SUM(A2:A3) = 0.0000000000000
[/TD]
[TD][/TD]
[TD="align: center"]TRUE
[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Excel carries many decimal places depending on how 'exact' the math is. Depending on how you perform your calculation, excel (and other programming languages), pick up numbers after about 8-10 decimal places. For instance, 0.2 is exact while 0.2 = 2/10 is an approximation.
 
Upvote 0

Forum statistics

Threads
1,223,214
Messages
6,170,771
Members
452,353
Latest member
strainu

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top