Excel Circular References: How to Find and Fix Them
In this article
To fix a circular reference in Excel, go to the Formulas tab, click the arrow next to Error Checking, hover over Circular References, and select the cell listed to jump directly to the error. A circular reference occurs when a formula refers to its own cell, either directly or indirectly, creating an endless loop that prevents Excel from calculating a final result.
What You'll Need
- A computer with Microsoft Excel installed (Windows or macOS).
- The workbook containing the circular reference warning.
- Basic knowledge of how to read a formula in the formula bar.
Step-by-Step
- Identify the Warning: When you open a file or enter a formula that creates a loop, Excel usually displays a warning popup stating "There are one or more circular references." Note that if the circular reference is on a different sheet than the one you are currently viewing, the popup may appear, but the status bar at the bottom of the window is where the specific cell address is often listed.
- Locate the Error via the Menu: If you closed the warning popup and need to find the error, navigate to the top ribbon. Click on the Formulas tab. In the Formula Auditing group, find the Error Checking button. Click the small drop-down arrow attached to this button. Hover your mouse over Circular References. A fly-out menu will appear listing the specific cell addresses (e.g., $C$10) that are causing the loop. Click on the cell reference to be taken directly to that cell.
- Analyze the Formula: Once you have jumped to the problematic cell, look at the formula bar. Look for the cell's own address within the formula. For example, if you are in cell A1 and the formula is
=A1+B1, the reference to A1 is the cause of the circularity. - Trace Indirect References: Sometimes a circular reference is not direct. For instance, Cell A1 might refer to Cell B1, and Cell B1 might refer back to Cell A1. In this case, the Error Checking menu will point you to one of these. To visualize the path, go to the Formulas tab and use the Trace Precedents and Trace Dependents buttons. This will draw blue arrows on your sheet showing exactly where the data is flowing.
- Correct the Logic: Change the formula so it no longer refers to itself. If you were trying to sum a column, ensure the SUM range does not include the cell where the total is being displayed. For example, if your total is in cell A10, your formula should be
=SUM(A1:A9), not=SUM(A1:A10). - Verify the Fix: Once you press Enter, check the bottom-left status bar of the Excel window. The text "Circular References: [Cell Address]" should disappear. If it still appears, there may be multiple circular references in the workbook; repeat the process until the status bar is clear.
Common Mistakes
One of the most frequent mistakes is the "Accidental Range Inclusion." This happens when a user drags a formula down a column and accidentally includes the cell containing the formula in a SUM or AVERAGE range. For example, if you are calculating a running total in column C and your formula in C5 is =SUM(C1:C5), you have created a loop because C5 is trying to calculate itself based on its own current value.
Another common error is the "Hidden Loop." This occurs in complex workbooks with multiple sheets. You might have a formula on Sheet1 that refers to Sheet2, which in turn refers back to Sheet1. Because the loop spans different tabs, it is harder to spot visually. Users often mistake these for software glitches when they are actually logical errors in the spreadsheet design.
Some users attempt to "fix" the problem by simply ignoring the warning popup. This is a mistake because circular references can cause Excel to stop calculating other formulas in the workbook, leading to outdated or incorrect data across your entire project without you realizing it.
Tips
To prevent these errors, always build your summary cells (totals, averages, counts) outside the range of the data they are calculating. For instance, if your data is in rows 1 through 100, place your total in row 101 or in a separate header section at the top of the sheet.
Use named ranges to make formulas easier to read. Instead of =SUM(A1:A50), naming that range "SalesData" and using =SUM(SalesData) makes it immediately obvious if you accidentally include the total cell in that named range.
If you are intentionally creating a circular reference—which is rare but sometimes necessary for complex financial modeling or engineering calculations—you must enable Iterative Calculation. Go to File > Options > Formulas and check the box for "Enable iterative calculation." You can then set the "Maximum Iterations" (how many times Excel recalculates) and "Maximum Change" (the precision threshold) to control when the loop stops.
Troubleshooting
If the Error Checking menu is greyed out or does not show any cells, but you still see a circular reference warning, check if you have multiple workbooks open. Excel sometimes reports circular references from any open file in the status bar. Close all other workbooks to isolate the problem to the current file.
If you cannot find the loop using the Trace Precedents tool, it may be because the reference is inside a named formula or a complex array. Try searching the workbook for the specific cell address mentioned in the status bar using the Find and Replace (Ctrl+F) tool, ensuring that the "Look in" dropdown is set to "Formulas."
If the workbook becomes unresponsive or freezes due to a massive loop, try opening the file in Safe Mode. Hold the Ctrl key while launching Excel, or open the file and immediately disable automatic calculations by going to Formulas > Calculation Options > Manual. This prevents Excel from trying to solve the loop the moment the file opens, allowing you to delete the offending formula safely.
Frequently Asked Questions
Why does Excel say I have a circular reference when I don't see one?
This usually happens because the reference is indirect. Cell A refers to B, B refers to C, and C refers back to A. You won't see the loop in a single cell's formula, but the chain creates a circle. Use the Trace Precedents tool to follow the chain.
Can a circular reference happen across different sheets?
Yes. If Sheet1 Cell A1 refers to Sheet2 Cell B1, and Sheet2 Cell B1 refers back to Sheet1 Cell A1, Excel will flag this as a circular reference. The status bar will usually tell you which sheet the error is located on.
Will a circular reference delete my data?
No, it will not delete your data, but it will stop the formulas from calculating correctly. The cells involved in the loop will often display a zero or the last calculated value, which can lead to incorrect reporting if not fixed.
Is it ever okay to have a circular reference?
Only in very specific advanced scenarios, such as calculating interest on a loan where the interest depends on the balance and the balance depends on the interest. In these cases, you must enable Iterative Calculation in the Excel options menu.
How do I stop the circular reference warning from appearing?
The only way to stop the warning is to either fix the formula loop or enable Iterative Calculation. Simply closing the popup does not solve the underlying logic error and the warning will return every time the sheet recalculates.
Does this happen in Excel Online or Google Sheets?
Yes, the concept is the same across all spreadsheet software. While the menu paths differ, any formula that refers back to itself will trigger a circular reference error or a "Circular Dependency" warning.