As soon as you check the box 'Enable Iterative calculation', Excel will do a calculation of your model. After saving the file, if you open the file again you should no longer get the circular reference warning message. If you are troubleshooting your calculation, set Maximum Iterations to 1. When a cell use its own reference in formula, then it is called circular reference.We can fix circular reference by selecting File then Options then in Form. Remove all formula references but keep values in cells with copying and pasting. Please do as follows to remove all formula references but keep values in specified cells in Excel. Select the cells you need to remove all references, then press Ctrl + C keys, keep these cells selected, right click and select Values under Paste Options section. Because so many of you search on “circular reference,” we thought we should very clearly explain how to remove or fix your formula in Excel Help on Office.com. Sometimes the first step in resolving the issue is figuring out which cell contains the wayward formula–not an easy task when a worksheet can contain dozens of them. I have circular reference in my excel sheet A linking to other excel file B, when i change the date on the file B it updates the A file with the date match, retains the other dates values.Currently i am not able to perform sum on the file A since i want weekly total.
In this Article we will learn how to remove the circular references in an Excel file.
Let us understand what circular reference is. A circular reference happens and a formula directly of indirectly refers to its own cell. This causes the formula to use the result in the calculation and it runs in a loop and hence causes an error. When there are circular reference errors the Excel cannot do the other formula calculations automatically.
If you leave them in, Excel calculates each cell involved in the circular reference by using the results of the previous iteration. An iteration is a repeated recalculation until a specific numeric condition is met. By default, Excel stops calculating after 100 iterations or after all values in the circular reference change by less than 0.001 between iterations, unless you change the Excel option.
Lets create a circular reference now to look at it:
I wrote a value in cell A3 which is 10
In cell B3 I wrote a formula : = A3+B3 Now as we are already putting a formula in B3 and using the same in formula.
On clicking enter/tab it gives the following error:
On clicking ok it gives the wrong results = 0 and in the bottom it keeps showing warning:
Now we will learn how to remove the circular references.
How to enable / disable circular references in Excel
As noted earlier, iterative calculations are usually turned off in Excel be default (in this context, iteration is the repeated recalculation until a specific numeric condition is met). For circular formulas to work, you must enable iterative calculations in your Excel workbook.
In Excel 2019, Excel 2016, Excel 2013, and Excel 2010, click File > Options, go to Formulas, and select the Enable iterative calculation check box under the Calculation options section.
In Excel 2007, click Office button > Excel options > Formulas > Iteration area.
In Excel 2003 and earlier, the Iterative Calculation option resides under Menu > Tools > Options > Calculation tab. When you turn on iterative calculations, you must specify the following two options:
While working with Excel formulas, you may sometime see the following warning prompt.
This prompt tells you that there is a circular reference in your worksheet and this can lead or an incorrect calculation by the formulas. It also asks you to address this circular reference issue and sort it.
In this tutorial, I will cover all that you need to know about circular reference, and well as how to find and remove circular references in Excel.
So let’s get started!
In simple words, a circular reference happens when you end up having a formula in a cell – which in itself uses the cell (in which it’s been entered) for the calculation.
Let me try and explain this by a simple example.
Suppose you have the dataset in cell A1:A5 and you use the below formula in cell A6:
This will give you a circular reference warning.
This is because you want to sum the values in cell A1:A6, and the result should be in cell A6.
This creates a loop as Excel just keeps on adding the new value in cell A6, which keeps on changing (hence, a circular reference loop).
While the circular reference warning prompt is kind enough to tell you that it exists in your worksheet, it doesn’t tell you where it’s happening and what cell references are causing it.
So if you’re trying to find and handle circular references in the worksheet, you need to know a way to somehow find these.
Below are the steps to find a circular reference in Excel:
Once you have addressed the issue, you can again follow the same steps above and it will show more cell references that have the circular reference. If there is none, you will not see any cell reference,
Another quick and easy way to find the circular reference is by looking at the Status bar. On the left part of it, it will show you the text Circular Reference along with the cell address.
There are a few things you need to know when working with circular references:
Once you have identified that there are circular references in your sheet, it’s time to remove these (unless you want them to be there for a reason).
Unfortunately, it’s not as simple as hitting the delete key. Since these are dependent on formulas and every formula is different, you need to analyze this on a case-by-case basis.
In case it’s just a matter of having the cell reference causing the issue by mistake, you can simply correct by adjusting the reference.
But sometimes, it’s not that simple.
Circular reference can also be caused based on multiple cells that feed into each other at many levels.
Let me show you an example.
Below there is a circular reference in cell C6, but it’s not just a simple case of self-reference. It’s multi-level where the cells it uses in the calculations also reference each other.
In the above example, the result in cell C6 is dependent on the values in cell A6 and C1, which in turn are dependent on cell C6 (thus causing the circular reference error)
And again, I have chosen a really simple example just for demo purposes. In reality, these could be quite difficult to figure out and maybe far off in the same worksheet or even scattered across multiple worksheets.
In such a case, there is one way to identify the cells that are causing circular reference and then treat these.
It’s by using the Trace Precedents option.
Below are the steps to use trace precedents to find cells that are feeding to the cell that has the circular reference:
The above steps would show you blue arrows which will tell you what cells are feeding into the formula in the selected cell. This way, you can inspect the formulas and the cells and get rid of the circular reference.
In case you’re working with complex financial models, it may be possible that these precedents also go multiple levels deep.
This works well if you have all the formulas referring to cells in the same worksheet. If it’s in multiple worksheets, this method is not effective.
When you have a circular reference in a cell, first you get the warning prompt as shown below, and if you close this dialog box, it will give you 0 as the result in the cell.
This is because when there is a circular reference, it’s an endless loop and Excel doesn’t want to caught up in it. So it returns a 0.
But in some cases, you may actually want the circular reference to be active and do a couple of iterations. In such a case, instead of an infinite loop, and you can decide how many times the loop should be run.
This is called iterative calculation in Excel.
Below are the steps to enable and configure iterative calculations in Excel:
That’s it! The above steps would enable iterative calculation in Excel.
Let me also quickly explain the two options in the iterative calculation:
Remember that the more number of times the iterations run, the more time and resources it takes for Excel to do it. In case you keep the maximum iterations high, it may lead to your Excel slowing down or crashing.
In most cases, the presence of circular reference in your worksheet would be an error. And this is why Excel shows you a prompt which says – “Try removing or changing these references or moving the formulas to different cells.”
But there might be some specific cases where you need a circular reference so that you can get the desired result.
One such specific case I have already written about it getting the time stamp in a cell in a cell in Excel.
For example, suppose you want to create a formula so that every an entry is made in a cell in Column A, the timestamp appear in Column B (as shown below):
While you can insert easily insert a timestamp using the below formula:
The issue with the above formula is that it would update all the timestamps as soon as any change is made in the worksheet or if the worksheet is reopened (as the NOW formula is volatile)
To get around this issue, you can use a circular reference method. Use the same formula, but enable iterative calculation.
There are some other cases as well where having the ability to use circular reference is desired (you can find one example here).
I hope you found this tutorial useful!
Other Excel tutorials you may find useful: