Norman Harker said:
As an alternative to rounding your individual figures or the rather
drastic "Precision as displayed" route you can use an array formula to
calculate the sum based upon the current formatting:
Assume data in A1:A10 and assume that all are currently formatted to
two decimal places:
=SUM(ROUND(A1:A10,2))
Entered as an array formula by pressing and holding down Ctrl + Shift
and then pressing Enter.
....
This is a classic error. Almost always the sum of unrounded but formatted
numbers is correct, and it's the unrounded but formatted numbers themselves
that contain the errors. Example: consider the sum of
10.666... formatted as 10.67
10.666... formatted as 10.67
10.666... formatted as 10.67
--------- -----
32.000... =SUM(A1:A3) 32.01 =SUM(ROUND(A1:A3,2))
So if the OP cares about these pennies, then the sum of the unrounded values
is the CORRECT sum. The sum of rounded values passes the rounding error from
the individual values to the sum.
If you're dealing with entered numeric constants, then a macro may be needed
to cleanse the data. Otherwise, it's easy enough to add a correction term to
one of the individual values.