Cell References

How to Fix a Circular Reference in Excel

Excel flags a circular reference when a formula refers back to its own cell. Find the loop, remove it, and learn when iteration is the right choice.

On this page
  1. What a circular reference is
  2. What Excel shows
  3. Find every circular reference
  4. Common causes
  5. Fix the loop
  6. When a loop is intended
  7. Check the fix

What a circular reference is

A formula refers back to its own cell, either directly or through other cells. The simplest case is a total that includes itself. If A10 holds =SUM(A1:A10), Excel would need the value of A10 to work out A10, so there is no stable answer.

A loop can also run through several cells. If A1 holds =B1+1 and B1 holds =A1*2, each depends on the other.

What Excel shows

  • A warning when you enter the formula or open the workbook, saying there is a circular reference.
  • The status bar at the bottom of the window shows the words Circular References, followed by the address of one cell in the loop.
  • The cell often shows 0 or an old value instead of a result.

Find every circular reference

The status bar shows one address at a time. To see the full list, go to Formulas > Error Checking, open the drop-down, and choose Circular References. The list shows each cell in the loop, and selecting one takes you to it.

Fix each one, then check the status bar again.

Common causes

  1. A total that includes itself, such as =SUM(A1:A10) typed into A10.
  2. Two cells that depend on each other, as in the A1 and B1 example above.
  3. A running total that refers to its own cell, such as =C2+B2 typed into C2.
  4. A total filled into the range it adds up. The copy includes its own cell.

Fix the loop

  • Remove the self-reference. Put the total in a cell outside the range it adds, such as A11 for =SUM(A1:A10).
  • Use only the rows above. For a running total, enter =SUM($B$2:B2) in C2 and fill it down. Each row adds from the top of the list down to itself, and no cell refers to its own result.
  • Decide which cell is the input. For a two-cell loop, keep the value in one cell and make the other formula depend on it only.

When a loop is intended

Some models, such as certain interest calculations, use a loop on purpose. Excel can calculate these when iterative calculation is turned on under File > Options > Formulas. The settings there include a maximum number of iterations and a maximum change.

Be careful with this setting. While it is on, Excel stops warning you about circular references, so an accidental loop can go unnoticed. Turn it on only for a workbook that needs it, and check the results carefully.

Check the fix

After your changes, the status bar should no longer show Circular References, and the affected cells should update when their inputs change. If a cell still looks wrong, use how to trace precedents in excel to see which cells feed it. Evaluate Formula can also help you check each part of a calculation once the loop is gone.

The complete guide to cell references

Cell References in Excel Explained
Read the guide

Keep exploring

Guides from other topics

All topics →