Fix a Circular Reference
Excel warns about a circular reference or Google Sheets shows a circular dependency error, and a total that should be simple now shows 0 or refuses to calculate.
Excel & Google Sheets
This formula works in both Excel and Google Sheets.
How it works
A circular reference means a formula's answer depends on itself — the spreadsheet can't finish calculating because the result keeps changing the input. The classic case is putting =SUM(A2:A11) in cell A11: the range includes the total's own cell, so the sum feeds itself. The fix is to end the range one row earlier: =SUM(A2:A10). Loops can also be indirect — A1 refers to B1, which refers back to A1 — which is harder to spot by eye. Excel points you straight to the culprit under Formulas > Error Checking > Circular References, and Google Sheets names the offending cell in its error message. Excel's iterative calculation setting can silence the warning, but it's almost never the right fix — it makes the loop "converge" instead of removing it, hiding a structural mistake.
When to use it
Trace and break the loop whenever the circular warning appears — most often after extending a SUM range over its own total row, or copying formulas into a totals row.
Common mistakes
Got a file full of these?
Open it in your browser — every error cell gets highlighted with its fix. Nothing is uploaded.
Did this formula help?
Engine-verified against the sample data aboveLast reviewed 2026-07-08