New Tool Radar

AI for Data & Spreadsheets

How to Check Whether an Excel Total Differs Because of Rounding

Check whether a total in Excel differs because displayed values are rounded but stored values are not.

Schematic with three steps: Show the stored values with more decimals; Add the stored values and compare with; Decide whether to round the stored values.

A column of amounts can display as 10, 15 and 20 while the stored values are 10.4, 14.6 and 20.4, so the displayed values add to 45 and the real total is 45.4. The sheet looks wrong by 0.4 even though every number is correct. When a total is out by a small amount, compare the stored values before doubting the arithmetic.

What you need

  • Excel with the amounts and the total that looks wrong
  • The source figures for the amounts
  • A note of how many decimals the sheet displays

Step 1: Show the stored values with more decimals

Select the amount cells and increase the decimal places until the hidden decimals appear. Write down the stored values; they are what Excel actually adds.

Step 2: Add the stored values and compare with the total

Add the stored values, either by hand or with a SUM in a spare cell, and compare the result with the total in the sheet. If they agree, the gap is rounding, not an error.

Step 3: Decide whether to round the stored values or the display

If the report must show whole numbers that add exactly, apply ROUND to the stored values so the display and the total agree. If the decimals are real, keep them and add a note that the total uses unrounded values.

Worked example: synthetic three-amount list

The table below is a synthetic example. It shows the expected result of a rounding check; no workbook was opened.

Amount Displayed Stored
Item A 10 10.40
Item B 15 14.60
Item C 20 20.40
Sum of displayed 45 10 + 15 + 20
Sum of stored 45.40 10.40 + 14.60 + 20.40

Expected result (UNTESTED). the displayed values add to 45 but the stored values add to 45.40, so the sheet total of 45.40 is correct and the 0.40 gap is rounding in the display. This check was not run live; the table shows the expected result for the synthetic example.

Limits

  • Formatting a cell to fewer decimals does not change its stored value; only ROUND changes it.
  • Rounding each line and then summing can give a different total from rounding the sum; pick one rule and state it.
  • Currency conversions often produce the extra decimals that cause this gap.
  • A gap larger than half a unit per row is not rounding; look for a missing or wrong value.

Sources

See all