Fix SUM Returning Zero for INDIRECT and COUNTIF Results in Excel
Question details
The user needs to determine why SUM returns zero when adding results generated with INDIRECT and COUNTIF.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A worksheet uses INDIRECT and COUNTIF formulas to generate values that are added with SUM.
- Observed behavior
- SUM returns zero, possibly because the workbook contains a circular reference.
Identify the SUM cell and the cells it includes. Check the INDIRECT references to see which cells or ranges they resolve to, including references on other sheets.
Find and resolve circular references in Excel
Use this method if a formula may depend on its own result, directly or through other cells.
Open the workbook and select Formulas > Error Checking > Circular References. Select any listed cell to inspect it.
Review the listed cell and the SUM, INDIRECT, and COUNTIF formulas it depends on. Check whether an INDIRECT reference points back to the formula cell or to a cell that depends on it.
Edit the formula or referenced range in the formula bar so the calculation no longer depends on its own result. Repeat the circular reference check until unintended references are resolved.
If the circular calculation is intentional, open File > Options > Formulas and select Enable iterative calculation. Review the maximum iterations and maximum change settings, then select OK.
Select Formulas > Calculate Now and check whether the SUM result is correct.

Check calculation settings and numeric values
Use these checks if no unintended circular reference is found or SUM still returns zero.
Work with spreadsheet formulas in WPS Office
WPS Office is a free, lightweight alternative with a familiar spreadsheet interface and support for Excel files, making it easy to move your workbook to another office suite. It does not change Excel's calculation settings or fix an Excel-specific issue.

Frequently Asked Questions
How do I find a circular reference in Excel?
Select Formulas > Error Checking > Circular References, then select a listed cell to inspect its formula. Repeat the check after correcting each unintended loop.
Should I enable iterative calculation when SUM returns zero?
Enable it only if the workbook intentionally uses a circular calculation. In Excel, go to File > Options > Formulas > Enable iterative calculation and verify that the results converge as expected.
Can SUM ignore values that look like numbers?
Yes. SUM can ignore numeric text in referenced cells. Test a source cell with =ISNUMBER(A1), replacing A1 with the relevant cell, and correct the source value or formula if needed.
Why might an INDIRECT formula be involved in a circular reference?
INDIRECT can resolve to a range that includes the formula itself or another cell that depends on it. Inspect the reference text and trace the resulting range through the calculation chain.




