Calculation Issues

Fix Excel SUM Comparisons That Return FALSE Due to Rounding

Rana GarciaRana Garcia Nov 18, 2026 870 views

Question details

A user needs to compare an Excel SUM result with a manually entered total despite hidden floating-point precision differences.

Fix Excel SUM Comparisons That Return FALSE Due to Rounding
Product
Microsoft Excel
Device & OS
not provided
Scenario
A manually entered total is compared with the sum of values that have up to two decimal places.
Observed behavior
The displayed values appear equal, but the comparison returns FALSE.
Before you start

Identify the cells in the SUM range and the cell containing the manual total. Decide how many decimal places the comparison should use; the examples below use two.

Solution 1Recommended

Round the SUM result before comparing it

Use ROUND to remove insignificant precision differences at the decimal place needed for the comparison.

Excel may store and calculate decimal values with tiny floating-point differences. Formatting cells to show two decimal places changes their display, not the underlying values.

1
Round the calculated total

Select the cell containing the SUM formula and replace it with =ROUND(SUM(B2:C2),2), adjusting B2:C2 to your range.

2
Compare the values

In the comparison cell, enter =ROUND(SUM(B2:C2),2)=D2, replacing D2 with the cell containing the manual total.

3
Round both sides if needed

If the manual total may also contain extra decimal places, use =ROUND(SUM(B2:C2),2)=ROUND(D2,2) in the comparison cell.

Round the SUM result before comparing it
Choose the appropriate precision: Change 2 to the number of decimal places your comparison requires. Rounding both sides compares the values at that precision rather than checking for exact equality.
Calculate with WPS Spreadsheet

Compare rounded totals in WPS Spreadsheet

Use SUM and ROUND in WPS Spreadsheet to compare a calculated total with a manually entered value at the precision you need.

  1. 1. Open the workbook: Open WPS Spreadsheet, select Open, and choose your Excel workbook.
  2. 2. Find the values: Locate the cells to add, such as B2:C2, and the cell with the manual total, such as D2.
  3. 3. Enter the comparison: Select the comparison cell and enter =ROUND(SUM(B2:C2),2)=ROUND(D2,2), adjusting the cell references and decimal places as needed.
  4. 4. Check the result: Press Enter and check whether the comparison cell displays TRUE or FALSE.
Round SUM results before comparing totals.Open and edit Microsoft Excel XLSX and XLS files.Use familiar spreadsheet formulas and cell references.
microsoft office alternative - wps office

Frequently Asked Questions

Why does Excel show FALSE when both totals look the same?

The displayed values may hide small differences in the underlying numbers. Excel compares those underlying values, not just the displayed decimal places.

Does changing the number format fix the comparison?

No. Changing the decimal places displayed through the cell's number format does not change the stored value. Use ROUND in the formula to compare at a chosen precision.

Should I round both values in the comparison?

Round both sides if either value may contain extra decimal places. For example, use =ROUND(SUM(B2:C2),2)=ROUND(D2,2).

How do I compare totals to three decimal places?

Change the second argument of each ROUND function to 3, as in =ROUND(SUM(B2:C2),3)=ROUND(D2,3).