Accuracy issue (presumably) with low numbers

willow-mouse

New Member
Joined
Aug 25, 2010
Messages
17
My colleague encountered a strange issue with a simple sum:
[TABLE="width: 173"]
<colgroup><col></colgroup><tbody>[TR]
[TD]22.05[/TD]
[/TR]
[TR]
[TD]-7.05[/TD]
[/TR]
[TR]
[TD]661.00[/TD]
[/TR]
[TR]
[TD]-232.00[/TD]
[/TR]
[TR]
[TD]-20.75[/TD]
[/TR]
[TR]
[TD]6.20[/TD]
[/TR]
[TR]
[TD]-427.85[/TD]
[/TR]
[TR]
[TD]-1.60[/TD]
[/TR]
[TR]
[TD]Sum:[/TD]
[/TR]
[TR]
[TD]-3.41949E-14[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 136"]
<colgroup><col></colgroup><tbody>[TR]
[TD="align: right"][/TD]
[/TR]
</tbody>[/TABLE]
If you reorder any of these it fixes it to zero sum:

[TABLE="width: 256"]
<colgroup><col width="64" span="4" style="width:48pt"> </colgroup><tbody>[TR]
[TD="class: xl67, width: 64"]-427.85[/TD]
[TD="class: xl67, width: 64"]661.00[/TD]
[TD="class: xl67, width: 64"]-1.60[/TD]
[TD="class: xl67, width: 64"]22.05[/TD]
[/TR]
[TR]
[TD="class: xl67"]-232.00[/TD]
[TD="class: xl67"]22.05[/TD]
[TD="class: xl67"]-7.05[/TD]
[TD="class: xl67"]-7.05[/TD]
[/TR]
[TR]
[TD="class: xl67"]-20.75[/TD]
[TD="class: xl67"]6.20[/TD]
[TD="class: xl67"]661.00[/TD]
[TD="class: xl67"]661.00[/TD]
[/TR]
[TR]
[TD="class: xl67"]-7.05[/TD]
[TD="class: xl67"]-1.60[/TD]
[TD="class: xl67"]-232.00[/TD]
[TD="class: xl67"]-232.00[/TD]
[/TR]
[TR]
[TD="class: xl67"]-1.60[/TD]
[TD="class: xl67"]-7.05[/TD]
[TD="class: xl67"]-20.75[/TD]
[TD="class: xl67"]-20.75[/TD]
[/TR]
[TR]
[TD="class: xl67"]6.20[/TD]
[TD="class: xl67"]-20.75[/TD]
[TD="class: xl67"]6.20[/TD]
[TD="class: xl67"]6.20[/TD]
[/TR]
[TR]
[TD="class: xl67"]22.05[/TD]
[TD="class: xl67"]-232.00[/TD]
[TD="class: xl67"]-427.85[/TD]
[TD="class: xl67"]-1.60[/TD]
[/TR]
[TR]
[TD="class: xl67"]661.00[/TD]
[TD="class: xl67"]-427.85[/TD]
[TD="class: xl67"]22.05[/TD]
[TD="class: xl67"]-427.85[/TD]
[/TR]
[TR]
[TD="class: xl66"]Sum:[/TD]
[TD="class: xl66"]Sum:[/TD]
[TD="class: xl66"]Sum:[/TD]
[TD="class: xl66"]Sum:[/TD]
[/TR]
[TR]
[TD="class: xl65"]0[/TD]
[TD="class: xl65"]0[/TD]
[TD="class: xl65"]0[/TD]
[TD="class: xl65"]0
[/TD]
[/TR]
</tbody>[/TABLE]


How is this happening with such simple maths?
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Last edited:
Upvote 0
Hi all (and apologies for the duplicate post - couldn't see this one after I posted so assumed it had not worked).

I'd assumed a floating point issue, but the reasons that were given on the MS help site wer for very small/large numbers, which these are not. They're all static numbers, so threw up an interesting question.

Thanks for the help!
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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