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


A1:
25201.0862309080000
A2:
23334.4417737846000
A3:
1866.6444571233500
Is Zero
Result 1:
A1-A2-A3 = 0.0000000000018
FALSE

Result 2:

A1-A3-A2 = 0.0000000000000
TRUE

Result 3:

A1-SUM(A2:A3) = 0.0000000000000
TRUE

<tbody>
</tbody>
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
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,215,425
Messages
6,124,827
Members
449,190
Latest member
rscraig11

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