Hi,
Computers work in binary, we work in decimals which results in
approximations by Excel and any computer.
Here is everything you need to know about this issue (and more):
http://support.microsoft.com/kb/78113/en-us
http://support.microsoft.com/kb/42980
http://support.microsoft.com/kb/214118
http://www.cpearson.com/excel/rounding.htm
http://docs.sun.com/source/806-3568/ncg_goldberg.html
there are innumerable solutions but you alreay have one.
--
If this helps, please click the Yes button
Cheers,
Shane Devenshire
"Sam" wrote:
> I have an error-checking formula in a spreadsheet:
> "If(Sum(A1:A30)<>D1,"ERROR","Balanced"), where A1:A30 are values that are
> entered from a source document, while D1 is the Total listed on the same
> source document. The purpose is to ensure that all component parts are
> correctly entered. All values are formatted as #,##0.00.
>
> There are random times whereby the sum of A1:A30 results in a number such as
> 25.0000000001 which does not equal the Total of 25 that had been entered
> into D1. Since the above formatting displays 25 for both values, the only way
> of combatting the issue is to use a Round function for the Sum.
>
> How can this happen when there is no division involved and all components
> are entered as dollars and cents?
>
> Excel version 2003.
>
> Your help is greatly appreciated,
>
> Sam