How to Fix Excel Returning Different Results Inside an IF Formula
Question details
The user needs to understand why Excel returns different results or extremely small negative values in similar IF formulas and how to correct these discrepancies.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Calculating data using IF statements where an exact zero is expected, but the output shows tiny decimal differences or inconsistent results.
- Observed behavior
- Excel displays a tiny negative value (e.g., -2.27374E-13) or zero inconsistently across similar formulas due to circular references or binary floating-point calculations.
Before making extensive changes to your workbook calculations, double-check your formula logic to ensure there are no accidental circular references causing the discrepancies.
Use the ROUND Function to Fix Floating-Point Precision
Wrap your arithmetic operations in a ROUND function to eliminate microscopic decimal discrepancies caused by binary floating-point calculations.
Excel stores decimal fractions as binary approximations. This can produce very small differences in calculations that should logically equal zero. Using explicit rounding resolves this without altering other cells.
Click on the cell containing the IF formula that is returning the tiny decimal value.
In the formula bar, wrap the calculation part of your IF statement with the ROUND function. For example, change =IF(B2+K2-E2=0, "Match", "No Match") to =IF(ROUND(B2+K2-E2, 4)=0, "Match", "No Match").
Press Enter to save the formula. The result should now evaluate correctly as zero or the expected exact number.

Check and Resolve Circular References
Ensure that your IF formula does not inadvertently refer to its own cell, which prevents Excel from calculating properly.
Enable Precision as Displayed (Advanced)
Change the workbook settings to force Excel to use only the displayed digits for calculations. This resolves precision issues globally but permanently alters data.
Solve Formula Errors Easily in WPS Spreadsheet
WPS Spreadsheet provides powerful calculation tools and built-in error checking to help you handle complex IF formulas and eliminate floating-point precision issues seamlessly.
- 1. Download and Install: Get WPS Office for free from the official website and open your spreadsheet document.
- 2. Locate the Formula Error: Click on the cell with the inconsistent IF formula result to view it in the formula bar.
- 3. Apply ROUND Function: Edit the formula to wrap your arithmetic calculation in a ROUND function, then press Enter to perfectly calculate the result.

Frequently Asked Questions
Why does Excel show numbers like -2.27374E-13 instead of zero?
This happens because of binary floating-point precision. Excel stores decimal fractions as binary approximations. When calculating these approximations, extremely small residual differences can occur instead of returning an exact zero.
What is a circular reference in an IF formula?
A circular reference occurs when a formula refers to its own cell, either directly or indirectly through other cells. This creates an infinite calculation loop, causing the formula to return zero or incorrect results.
Can I fix precision issues by changing the cell formatting?
No. Changing the cell format (like setting it to General or Currency) only changes how the number visually displays on the screen, not the underlying stored value. You must use the ROUND function to fix the actual arithmetic calculation.




