Fix Excel Cells That Look Equal but Compare as Different
Question details
Compare calculated cells that display the same value but are treated as different.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A user compares calculated values with a formula or conditional formatting rule.
- Observed behavior
- Cells display identical values, but formulas or conditional formatting report a difference because of small internal decimal differences.
Identify the cells or formulas being compared and decide how many decimal places or what tolerance is appropriate. Check whether the values are calculated results, since number formatting can hide small differences without changing stored values.
Round calculated results to the required precision
Use rounding when the results should be compared at a fixed precision, such as two decimal places for currency.
Click the cell containing the calculation and select its formula in the formula bar.
Replace the formula with a rounded version, such as =ROUND(578358.34+582792.56,2) or =ROUND(B12-B14-B15-B16+C14+C15+C16,2). Change 2 to the number of decimal places you need.
Select the other calculated cell and apply ROUND at the same precision, then check the comparison or conditional formatting result.

Compare values within a tolerance
Use a tolerance when small differences are acceptable without changing the underlying calculations.
Compare Rounded Values in WPS Spreadsheet
Use ROUND or an ABS tolerance formula in WPS Spreadsheet to compare calculated values that appear equal on screen.
- 1. Open the workbook: Open WPS Spreadsheet and use Open to select your Excel workbook.
- 2. Round calculated values: Select a calculated cell and edit its formula in the formula bar, for example =ROUND(B12-B14-B15-B16+C14+C15+C16,2).
- 3. Compare within a tolerance: In an empty cell, enter =ABS(B18-C18)<0.001, replacing the references and tolerance as needed.
- 4. Save the workbook: Use Menu > Save As to save the updated workbook in the desired format.

Frequently Asked Questions
Why do two Excel cells look equal but compare as different?
Binary floating-point calculations can produce tiny differences that are hidden by the displayed number format. Use ROUND in the calculations or compare their difference with ABS.
Does showing two decimal places round the stored value?
No. Changing decimal places on the Home tab changes the display, not the underlying value. Use a formula such as =ROUND(A1,2) to calculate a rounded result.
How can I highlight values that differ by at least 0.001?
Select the target cells and go to Home > Conditional Formatting > New Rule. Choose a formula-based rule and enter =ABS(B18-C18)>=0.001, adjusting the references to match your selected range.
What tolerance should I use for comparing values?
Choose a tolerance based on the precision your task requires. For example, =ABS(B18-C18)<0.001 treats differences smaller than 0.001 as acceptable; a different task may need a smaller or larger threshold.




