There are one or more circular reference where a formula ошибка

Explanation 

Circular reference errors occur when a formula refers back to its own cell. For example, in the example shown, the formula in F7 is:

=F5+F6+F7

This creates a circular reference because the formula, entered in cell F7, refers to F7. This in turn throws off other formula results in D7, C11, and D11:

=F7 // formula in C7
=SUM(B7:C7) // formula in D7
=SUM(C5:C9) // formula in C11
=SUM(D5:D9) // formula in D11

Circular references can cause many problems (and a lot of confusion) because they may cause other formulas to return zero, or a different incorrect result.

The circular reference error message

When a circular reference occurs in a spreadsheet, you’ll see a warning like this:

«There are one or more circular references where a formula refers to its own cell either directly or indirectly. This might cause them to calculate incorrectly. Try removing or changing these references, or moving the formulas to different cells.»

Circular reference error message dialog

This warning will appear sporadically while editing, or when a worksheet is opened.

Finding and fixing circular references

To resolve circular references, you’ll need to find the cell(s) with incorrect cell references and adjust as needed. However, unlike other errors (#N/A, #VALUE!, etc.) circular references don’t appear directly in the cell. To find the source of a circular reference error, use the Error Checking menu on the Formulas tab of the ribbon.

Error checking menu on Formulas tab of ribbon

Select the Circular References item to see the source of circular references:

Show circular references in error checking menu

Below, the circular reference has been fixed and other formulas now return correct results:

Circular reference fixed, formulas show correct results again

You’ve entered a formula, but it’s not working. Instead, you’ve got this message about a “circular reference.” Millions of people have the same problem and it happens because your formula is trying to calculate itself. Here’s what it looks like:

A formula that will cause a circular reference

The formula =D1+D2+D3 breaks because it lives in cell D3, and it’s trying to calculate itself. To fix the problem, you can move the formula to another cell. Press Ctrl+X to cut the formula, select another cell, and press Ctrl+V to paste it.

Tips: 

  • At times, you may want to use circular references because they cause your functions to iterate. If this is the case, jump down to Learn more about iterative calculation.

  • Also, see Overview of formulas in Excel to learn more about writing formulas.

Another common mistake is using a function that includes a reference to itself; for example, cell F3 contains =SUM(A3:F3). Here’s an example:

Your browser does not support video. Install Microsoft Silverlight, Adobe Flash Player, or Internet Explorer 9.

You can also try one of these techniques:

  • If you just entered a formula, start with that cell and check to see if you refer to the cell itself. For example, cell A3 might contain the formula =(A1+A2)/A3. Formulas like =A1+1 (in cell A1) also cause circular reference errors.

While you’re looking, check for indirect references. They happen when you put a formula in cell A1, and it uses another formula in B1 that in turn refers back to cell A1. If this confuses you, imagine what it does to Excel.

  • If you can’t find the error, click the Formulas tab, click the arrow next to Error Checking, point to Circular References, and then click the first cell listed in the submenu.

    The Circular References command

  • Review the formula in the cell. If you can’t determine whether the cell is the cause of the circular reference, click the next cell in the Circular References submenu.

  • Continue to review and correct the circular references in the workbook by repeating steps any or all of the steps 1 through 3 until the status bar no longer displays «Circular References.»

Tips    

  • If you’re brand new to working with formulas, see Excel 2016 Essential Training at LinkedIn Learning.

  • The status bar in the lower-left corner displays Circular References and the cell address of one circular reference.

    If you have circular references in other worksheets, but not in the active worksheet, the status bar displays only “Circular References” with no cell addresses.

  • You can move between cells in a circular reference by double-clicking the tracer arrow. The arrow indicates the cell that affects the value of the currently selected cell. You show the tracer arrow by clicking Formulas, and then click either Trace Precedents or Trace Dependents.

    Tracing precedents

Learn about the circular reference warning message

The first time Excel finds a circular reference, it displays a warning message. Click OK or close the message window.

When you close the message, Excel displays either a zero or the last calculated value in the cell. And now you’re probably saying, «Hang on, a last calculated value?» Yes. In some cases, a formula can run successfully before it tries to calculate itself. For example, a formula that uses the IF function may work until a user enters an argument (a piece of data the formula needs to run properly) that causes the formula to calculate itself. When that happens, Excel retains the value from the last successful calculation.

If you suspect you have a circular reference in a cell that isn’t showing a zero, try this:

  • Click the formula in the formula bar, and then press Enter.

Important    In many cases, if you create additional formulas that contain circular references, Excel won’t display the warning message again. The following list shows some, but not all, the scenarios in which the warning message will appear:

  • You create the first instance of a circular reference in any open workbook

  • You remove all circular references in all open workbooks, and then create a new circular reference

  • You close all workbooks, create a new workbook, and then enter a formula that contains a circular reference

  • You open a workbook that contains a circular reference

  • While no other workbooks are open, you open a workbook and then create a circular reference

Learn about iterative calculation

At times, you may want to use circular references because they cause your functions to iterate—repeat until a specific numeric condition is met. This can slow your computer down, so iterative calculations are usually turned off in Excel.

Unless you’re familiar with iterative calculations, you probably won’t want to keep any circular references intact. If you do, you can enable iterative calculations, but you need to determine how many times the formula should recalculate. When you turn on iterative calculations without changing the values for maximum iterations or maximum change, Excel stops calculating after 100 iterations, or after all values in the circular reference change by less than 0.001 between iterations, whichever comes first. However, you can control the maximum number of iterations and the amount of acceptable change.

  1. Click File > Options > Formulas. If you’re using Excel for Mac, click the Excel menu, and then click Preferences > Calculation.

  2. In the Calculation options section, select the Enable iterative calculation check box. On the Mac, click Use iterative calculation.

  3. To set the maximum number of times that Excel will recalculate, type the number of iterations in the Maximum Iterations box. The higher the number of iterations, the more time that Excel needs to calculate a worksheet.

  4. In the Maximum Change box, type the smallest value required for iteration to continue. This is the smallest change in any calculated value. The smaller the number, the more precise the result and the more time that Excel needs to calculate a worksheet.

An iterative calculation can have three outcomes:

  • The solution converges, which means a stable end result is reached. This is the desirable condition.

  • The solution diverges, which means that from iteration to iteration, the difference between the current and the previous result increases.

  • The solution switches between two values. For example, after the first iteration the result is 1, after the next iteration the result is 10, after the next iteration the result is 1, and so on.

Top of Page

Need more help?

You can always ask an expert in the Excel Tech Community or get support in the Answers community.

Hands on a laptop

Tip: If you’re a small business owner looking for more information on how to get Microsoft 365 set up, visit Small business help & learning.

See also

Excel 2016 Essential Training

Overview of formulas in Excel

How to avoid broken formulas

Find and correct errors in formulas

Excel keyboard shortcuts and function keys

Excel functions (alphabetical)

Excel functions (by category)

A circular reference occurs when you end up having a formula in a cell – which in itself uses the cell reference (in which it’s been entered) for the calculation. If this statement seems a bit confusing, don’t worry by the end of this tutorial it will start to make sense.

In simple terms, a circular reference happens when a formula references back to its own cell directly or indirectly, creating an endless loop of calculations. This endless reference loop, if not stopped will keep changing the cell’s value every time.

Excel Circular References

For quick understanding, here’s an example.

In our example, there are a few numbers in column A and we are trying to calculate their sum using the SUM function in A7 cell. But inside the SUM function, we have passed the range as A1:A7.

Excel-Circular-References_Error_Message

Since the supplied range also includes A7 cell (in which the result needs to be populated) so it creates an endless loop as Excel just keeps on adding the new value in cell A7, which keeps on incrementing.

This triggers Excel’s circular reference warning that says, «There are one or more circular references where a formula refers to its own cell either directly or indirectly. This might cause them to calculate incorrectly. Try removing or changing these references, or moving the formulas to different cells.».

Keep in mind that this is not an error since it will not stop further calculations or ask the user to change them. It is a warning that warns the user that they could probably have incorrect calculations.

Direct and Indirect Circular References

Circular references can be categorized into two types –  1) Direct Circular References 2) Indirect Circular References. Let’s try to understand both of these first.

Direct Circular Reference

A direct circular reference is pretty straightforward. The direct circular reference warning message shows up when the formula in a cell is referring to its own cell directly.

For example, see the data below.

Excel-Direct-Circular-References 02

  • The formula in cell B8 refers to itself. When the user applies a function such as a sum or manually uses the reference of B8, a direct circular reference warning is displayed.
  • Once the warning shows up, the user can click on OK, but it will only result in zero.

Excel-Direct-Circular-References_Output_03

This is an example of a direct circular reference in Excel.

Indirect Circular Reference

As the name suggests, an indirect circular reference takes place when a value in a formula refers to its cell, not directly but at some level. See the simple example below for a better understanding.

For creating an indirect circular reference example, we will have to write a chain of formulas using values starting from the first cell.

  • For example, the data is populated in a way where the diagonals are squares of the previous diagonals as you can see.

Excel-InDirect-Circular-References_04

  • Now the data is starting from A1 which has the value 10 and every other diagonal till D4 is dependent on A1. If the user uses a reference of any diagonal in A1, it will create a circular reference warning. Let’s try it out.
  • As seen in the screenshot below, Excel goes as far as creating a linked line showing the Precedents and Dependents.

Excel-InDirect-Circular-References_Connections_05

  • It results in a value of 0 since it is a circular reference issue.

Now, let’s try to see and understand how to find circular reference issues in excel.

How to Find Circular References in Excel

While you will get the circular reference warning when it occurs, however, you will still need to figure out in which cell the error has occurred. After knowing the exact cell location of the error it will be easier to handle and fix it.

These methods are particularly helpful when you are working with large datasets.

1) Error Checking drop-down in the Ribbon

Here’s how you can find circular references in Excel using the Ribbon.

  • Open the worksheet where the circular reference has occurred.
  • Go to the Formulas tab and click on the Error Checking drop-down menu.

Error_Checking_Circular-References_07

  • Select Circular References from the drop-down menu.
  • Here Excel will show you all the circular references that are in the worksheet.
  • Click on whichever circular reference you want and it will take you to that particular cell to solve the issue.

As you can see in the screenshot above, there are 4 circular references in the worksheet that we are using.

2) Using Status bar

Finding circular references using the status bar is very easy. If a circular reference exists in the worksheet, the user will be able to see it in the status bar below the worksheet names.

Circular-References_In_StatusBar_08

Note: It only shows the latest circular reference and the user can backtrack from there. As seen in the example below, there are two circular references notably in B8 and C8 but the status bar only shows C8.

Iterative Calculations

Iterative calculations are an interesting feature in Excel. What iterative calculations mean is that if the user keeps them disabled as they usually are, Excel returns a Circular Reference prompt and returns a 0 in the cell instead of the actual result. This is because it is an endless loop.

Now, the thing is that if you want to tell Excel to sit out and let you do your job without bothering you about those pesky circular reference warnings, you can enable Iterative Calculations and it will allow you to perform your calculations. Not only that, but it will also allow you to set a fixed number of maximum iterations.

If you wish to enable iterative calculations, you can set the number of iterations allowed. Hence, you can stop the circular reference infinite loops and can have a tiny bit of control over such calculations.

How to Enable/Disable Iterative Calculations in Excel

Now that we have established how iterative calculations work, let’s show you how you can enable or disable iterative calculations in Excel. Follow the below steps to enable or disable iterative calculations in excel.

  • Go to the File tab.
  • Click on Options.
  • The Excel Options dialog box will open. Click on Formulas from the left column.

Enable_Iterative_Calculations_09

  • Here, the option to Enable Iterative Calculation is available. Users can simply tick the box to enable. The user is also able to set maximum iterations and maximum change.
  • After enabling iterative calculation, you will see that the calculation will not result in 0 but will produce results in case of circular reference as you can see.

Circular-References_With_Iterative_Calculations_Enabled_10

Maximum Iterations & Maximum Change Parameters

The two parameters of the Iterative Calculations are:

Maximum iterations: This is the loop that Excel will run when it is calculating the final result. You can set this as you want. Remember that more iterations mean more processing for Excel which will in turn use more resources and processing power from the computer. It would also take more time.

Maximum change: The maximum change is the value that needs to be achieved in order for the iteration to move further. It is about the accuracy of the result. Make this value small as it will produce accurate results. The default Maximum Change is 0.001.

Deliberately Using Circular References

The deliberate use of Circular references is not a very good idea, though sometimes it can help you to get away with poorly developed logic or formulas. But doing this is not recommended at all. However, for educational purposes let’s try and understand how to get things working with deliberate circular references.

The first step is to enable Iterative Calculation in Excel. Once you have turned on Iterative Calculation and set your maximum iterations, you can start using circular references to your benefit.

Let us demonstrate that by using an example.

Let’s say that the user requires to manipulate the data in a way that two cells depend on each other for values causing a circular reference issue. Since the iterative calculation is enabled, there won’t be a prompt.

In the example below, the cells B4 and B5 depend on each other, creating a circular reference. Since the iterative calculation is enabled, there will not be an error or a 0 in the results. Instead, Excel will try calculating the results.

In the example, the Agent fee is 20% of the total earnings of the player. Since the total earning and agent fee are dependent on each other, it can still be calculated if iterative calculation is enabled.

Deliberate-use-of-Circular-References_11

To use it as we see fit, we must first apply our desired formula in the net earnings cell.

Deliberate-use-of-Circular-References_12

Now the Agent fee must be calculated which we are going to set at 20% of total earnings but the total earnings will then have to subtract the Agent fee from itself, hence the circular reference.

Deliberate-use-of-Circular-References_11

As you can see, it works perfectly.

Why Should We Avoid Using Circular References Deliberately?

Using Circular References in Excel is not recommended at all. Deliberate use of circular references is a slippery method to make things work that eats up a lot of resources and processing power when being used with iterative calculations. It can often produce undesired or inaccurate results that can cause frustration when you have to fix a few of them.

How to fix Circular References in Excel

Fixing circular references in Excel is not possible with a single click. To handle circular references, you have to eliminate them one by one. You can trace it back to the source and remove the starting formula to fix it, or you can remove it one by one.

There are two tracing methods that will allow you to remove circular references by tracing relationships between formulas and cells.

To access the tracing methods, you have to follow the following steps:

  • Go to the Formulas tab in Excel
  • The Trace Precedents and Trace Dependents options are available there.

Trace Precedents_And_Trace Dependents_13

These tracing features can help the user in fixing circular references by providing a path connecting the references through a line that is drawn between cells that are responding to the circular references.

The two tracing options work as follows:

Trace Precedents

The trace precedents feature tracks back cells that the current cell depends on. These are the cells on which the current formula is dependent for the data that it needs. This option will draw lines that will tell which cells are affecting the active cell.

In the example below, the cells affecting B5 are B2, B3, and B4. Hence, when we click on Trace Precedents, it draws a line indicating B2, B3, and B5 cells leading to B5.

Trace Precedents_lines_14

Shortcut for Trace Precedents: ALT + T U T

Trace Dependents

The trace dependents feature tracks the cells that are dependent on the active cell, the cells that depend on the current cell for the data they need to produce results. This feature will draw lines to the cells that are dependent on the active cell.

In the example below, the cell being affected by B5 is B4. It is dependent on B5 for its value. Hence, when we use trace dependents, it draws a line from B5 to B4, indicating that B4 is dependent on B5.

Trace Dependents_Lines_15

Shortcut for Trace Dependents: ALT + T U D

So, this was all about circular references in Excel. Hopefully, by now, you have a good idea of how circular references work, how you can find/fix them, and how you can use them if you desire.

Top image for the lesson on how to fix a circular reference error in Excel by SpreadsheetClass.com

The circular reference error in Excel, is a very common error that can occur when using almost any formula. When you see the circular reference error displayed in your Excel spreadsheet, this means that your formula is referring to a range that contains the formula itself, or in other words when the formula input, is dependent on the output.

To fix the circular reference in Excel, make either of the following changes to your spreadsheet:

  1. Move your formula to another cell that is not contained within the range(s) that the formula refers to
  2. Or, adjust the reference in your formula so that it does not refer to a range that contains the formula itself

There are several different ways that a circular reference may display an error / warning in Excel:

  1. Some versions of Excel will display a pop up warning, that has a message like this: «There are one or more circular references where a formula refers to its own cell either directly or indirectly. This might cause them to calculate incorrectly. Try removing or changing these references, or moving the formulas to different cells»
  2. In some versions, the warning may say this «Careful, we found one or more circular references in your workbook that might cause your formula to calculate incorrectly. FYI: A circular reference can be a formula that refers to its own cell value, or refers to a cell dependent on its own cell value.
  3. In some versions of Excel (such as Excel online), the cell will sometimes not display a warning, and will simply calculate incorrectly, where the number «0» displays as the formula result
  4. In some cases, such as when using the FILTER function, a circular reference can cause an «Empty Array» warning / error

Since I used Excel Online to create these examples, most of my examples show the third error in the list above, where the cell shows the number 0. The error may appear differently on your version of Excel, but the cause of the error as well as the solution are the same across the board.

This article shows how to fix a circular reference error in Excel, but click here if you want to learn how to fix the circular dependency error in Google Sheets.

Circular reference errors can also occur when two formulas refer to the range that the other formula resides in, even if the formula does not refer to itself (i.e. its own location). In the same way that a single formula’s input cannot be dependent on data that is determined by its own output, two formulas cannot simultaneously be dependent on each other’s output. This can cause a confusing situation where one wrong formula causes two formula errors.

In this article I will go over several different examples of how you might experience this reference error in Excel, and I will also show you how to fix the error in each situation.

When a circular reference error occurs in your spreadsheet, the cell that contains the formula error will either display the number 0, or Excel may display a warning / error, or both.

Below are two examples of the circular reference warning that you might see:

Example 1 of the Excel Circular Reference warning

Example 2 of the Excel circular reference warning

When your formula is inside of the range that it is referring to, this means that the formula input is «dependent» on the output, which is not possible to calculate, and causes an error.

Question 1: Divide 10 by the answer to question 1.

This is impossible to solve because the output/answer cannot be known before the problem is actually solved.

Or in the case of two formulas that refer to each other’s output/location, here is another analogy. This is like being given the two following math problems:

Question 1: What is the answer to question 2?

Question 2: What is the answer to question 1?

Again, this cannot be solved. The answer to each question is dependent on the other, which makes your mind run in circles… hence the phrase «circular reference».

Don’t let this make you feel confused, because that’s the point is that this logic causes an error. All you need to know is why it happens, and how to fix it.

So let’s go over some actual examples of resolving this circular reference error in your Excel spreadsheet.

Let’s take a look at the most simple example of the circular reference error.

Below, the image shows a formula that simply refers to a single cell. However, the problem is that the cell that formula is referring to, is the cell that the formula is entered into (the formula in cell A1, is referring to cell A1).

As you can see, this has caused a circular reference error.

The following formula causes an error, when entered into cell A1:

=A1

Simple example of fixing a circular reference in Excel- part 1 before correction- Wrong cell reference

To fix the error, we can either move the formula to another cell, or change the reference in the formula so that it refers to another cell.

In this case we will change the cell reference to cell B1.

As you can see in the image below, this adjustment has fixed the circular reference error.

The following formula has been adjusted and resolves the error:

=B1

Simple example of fixing a circular reference error in Excel- part 2 after correction

Now, cell A1 displays the text that is in cell B1.

Fixing circular reference when summing

A common situation where you might experience the circular reference error, is when you are summing in Excel. This will happen most often when your SUM formula is in the same column that it refers to, and when the formula reference captures the entire column.

The image below shows a simple SUM formula, that attempts to sum the numbers in cells A1 through A5.

But as you can see, the SUM formula refers to the range A1:A10. Since the SUM formula is entered into a cell within column A (A6), and the range A1:A10 contains cell A6 (where the formula is), this causes a circular reference error.

The following formula causes an error when entered anywhere in column A:

=SUM(A1:A10)

Example of fixing a circular reference in Excel- part 1 with incorrect SUM reference

To fix this error, we will adjust the reference in the formula so that it only sums the values in the cells above it.

So rather than trying to sum the entire column, we will designate an ending row in the reference (a row that is above the sum formula).

To do this, simply change the sum range to A1:A5.

This fixes the circular reference error, as shown in the image below.

The following formula has been adjusted and resolves the error:

=SUM(A1:A5)

Example of fixing a circular reference in Excel- part 2 after reference correction (SUM)

Now the SUM formula in the image above, successfully sums cells A1 through A5. (1+2+3+4+5=15)

Fixing circular reference when filtering

In the last example we had to adjust the rows in the formula reference to fix the circular reference error, but let’s take a look at an example where we will adjust the columns in the reference to resolve the error.

In this example, let’s say that we have a list of school supplies and their prices entered into a spreadsheet, and we want to filter the data with a formula so that a list of items costing more than $1 is displayed.

As you can see in the image below, the FILTER formula has a circular reference error. This is being caused by the reference to the source range, which is one column too wide (considering where the filter formula has been placed).

If the formula refers to the range A2:D, which contains column D, the formula cannot be placed in column D.

The following formula causes an error when entered into cell D2:

=FILTER(A2:D10,C2:C10>1)

Example of fixing a circular reference in Excel- part 1- School supplies incorrectly filtered by price (Overlapping filter range)

To fix the error that is shown in the image above, change the range that refers to the source data from A2:D10, to A2:C10.

After making this adjustment, the error is fixed, and the FILTER formula works properly.

The following formula has been adjusted and resolves the error:

=FILTER(A2:C10,C2:C10>1)

Example of fixing a circular reference in Excel part 2- School supplies correctly filtered (Filter range fixed)

Now the school supplies are being filtered to display a list of items that cost more than $1.

This content was originally created and written by SpreadsheetClass.com

Fixing circular reference with if/then statement

Now let’s take a look at a more complex example, that could happen to anyone who uses formulas in their spreadsheets. In this example, there are two different formulas that are interacting, and because one of them was set up incorrectly, both are displaying an error, due to the fact that each are referring to (dependent on) each other.

(For more explanation on why this happens, see the top of this article)

When an error happens like the one that is shown in the image below, it can sometimes be hard to determine which formula has the mistake, because of the double error that it causes. As in any troubleshooting scenario… the best thing to do is to start from the beginning, and trace your way through the data/system until you find the mistake.

So here is the scenario in this example: Column A indicates the completion of a task with 1’s and 0’s. The formulas in column B were intended to refer to the data in column A, and to display the text «Yes» or «No», depending on if each cell in column A had a number 1 or a number 0. Then, column C refers to the cells in column B, and displays the words «Complete» or » Not Complete», depending on whether each cell in column B says yes or no.

In short, if cell A3 contains the number 1, then cell B3 should say «Yes», and cell C3 should say «Complete».

But the problem is that the formula in cell B3… instead of referring to the 1’s and 0’s in column A, the sheet’s creator made a mistake, and referred to column C (which in turn is referring back to it). This creates a circular reference error, in BOTH formulas, even though technically only one of the formulas was set up incorrectly.

This type of mix up is common when using lots of formulas in your sheets, and especially when you have been creating all day and are tired.

To fix this formula, which will fix both of the circular reference errors, follow the instructions listed below the image.

The following formula causes an error when entered into cell B3, due to another formula in cell C3 that refers to cell B3:

=IF(C3=»Complete»,»Yes»,»No»)

Example of fixing an Excel circular reference Part 1- One wrong formula causing two errors

In this case, to fix the error, it is more than just a matter of changing the reference in the formula, because the whole formula was written incorrectly by mistake. So remember that the formulas in column B, should display the word «Yes» in each row/cell if there is a number 1 in the adjacent cells in column A  (and the word «No» if there is a 0 in the adjacent cell).

The corrected logic for the formula in cell B3, is as follows: If cell A3 equals 1, then display the word «Yes», and if not, then display the word «No».

The following formula has been adjusted and resolves the error:

=IF(A3=1,»Yes»,»No»)

An example of fixing an Excel circular reference part 2- Formula correction that fixes two formulas

Now both of the formulas are working properly, and both of the circular reference errors have been fixed at the same time, by correcting one formula.

Now, column B refers to column A, and then column B refers to column C, as it should be. The formulas are no longer simultaneously dependent on each other’s output.

Fix the circular reference error when referring to another tab

One more very common way of running into the circular reference error, is when you are referring to another tab in your formula, and you forget to include the tab name in your reference.

The data below shows a list of clothing items and their sizes listed in a spreadsheet. We want to filter the data by using a formula in another tab, to only show items that have the size «Medium».

Example of fixing a circular reference when filtering from another tab in Excel- Tab with source data

The picture below shows a FILTER formula that is entered in cell A2, on a different tab than the one that holds the source data shown above.

The problem is that the tab name was left out when the formula was entered.

Since the source range is A2:B14 and the formula is in cell A2, this means that the formula is referring to itself. Or in other words, the cell that the formula is entered in, is within the range that the formula refers to. This causes a circular reference error.

The following formula causes an error when entered into cell A2:

=filter(A2:B14,B2:B14=»Medium»)

Example of "Empty Array" message when filter formula has a circular reference in Excel (Empty arrays are not supported error)

To fix this error, simply add the tab name to the references in the filter formula.

The reference to the source range will be ‘Another Tab’!A2:B14 (Apostrophes must be added before and after the tab name reference, when there is a space in the tab name).

The following formula has been adjusted and resolves the error:

=filter(‘Another Tab’!A2:B14,’Another Tab’!B2:B14=»Medium»)

Example of fixing a circular reference in Excel spreadsheet Part 2- Included tab name in filter formula when filtering from another tab (Fixed circular reference, and fixed empty array)

After adding the tab name to the references in the FILTER formula, the circular reference error goes away, and the formula filters properly, displaying a list of clothing items that are «Medium».

Now you know how to easily fix this error whenever it pops up in your spreadsheet!

Top image for the lesson on how to fix a circular reference error in Excel by SpreadsheetClass.com

The circular reference error in Excel, is a very common error that can occur when using almost any formula. When you see the circular reference error displayed in your Excel spreadsheet, this means that your formula is referring to a range that contains the formula itself, or in other words when the formula input, is dependent on the output.

To fix the circular reference in Excel, make either of the following changes to your spreadsheet:

  1. Move your formula to another cell that is not contained within the range(s) that the formula refers to
  2. Or, adjust the reference in your formula so that it does not refer to a range that contains the formula itself

There are several different ways that a circular reference may display an error / warning in Excel:

  1. Some versions of Excel will display a pop up warning, that has a message like this: «There are one or more circular references where a formula refers to its own cell either directly or indirectly. This might cause them to calculate incorrectly. Try removing or changing these references, or moving the formulas to different cells»
  2. In some versions, the warning may say this «Careful, we found one or more circular references in your workbook that might cause your formula to calculate incorrectly. FYI: A circular reference can be a formula that refers to its own cell value, or refers to a cell dependent on its own cell value.
  3. In some versions of Excel (such as Excel online), the cell will sometimes not display a warning, and will simply calculate incorrectly, where the number «0» displays as the formula result
  4. In some cases, such as when using the FILTER function, a circular reference can cause an «Empty Array» warning / error

Since I used Excel Online to create these examples, most of my examples show the third error in the list above, where the cell shows the number 0. The error may appear differently on your version of Excel, but the cause of the error as well as the solution are the same across the board.

This article shows how to fix a circular reference error in Excel, but click here if you want to learn how to fix the circular dependency error in Google Sheets.

Circular reference errors can also occur when two formulas refer to the range that the other formula resides in, even if the formula does not refer to itself (i.e. its own location). In the same way that a single formula’s input cannot be dependent on data that is determined by its own output, two formulas cannot simultaneously be dependent on each other’s output. This can cause a confusing situation where one wrong formula causes two formula errors.

In this article I will go over several different examples of how you might experience this reference error in Excel, and I will also show you how to fix the error in each situation.

When a circular reference error occurs in your spreadsheet, the cell that contains the formula error will either display the number 0, or Excel may display a warning / error, or both.

Below are two examples of the circular reference warning that you might see:

Example 1 of the Excel Circular Reference warning

Example 2 of the Excel circular reference warning

When your formula is inside of the range that it is referring to, this means that the formula input is «dependent» on the output, which is not possible to calculate, and causes an error.

Question 1: Divide 10 by the answer to question 1.

This is impossible to solve because the output/answer cannot be known before the problem is actually solved.

Or in the case of two formulas that refer to each other’s output/location, here is another analogy. This is like being given the two following math problems:

Question 1: What is the answer to question 2?

Question 2: What is the answer to question 1?

Again, this cannot be solved. The answer to each question is dependent on the other, which makes your mind run in circles… hence the phrase «circular reference».

Don’t let this make you feel confused, because that’s the point is that this logic causes an error. All you need to know is why it happens, and how to fix it.

So let’s go over some actual examples of resolving this circular reference error in your Excel spreadsheet.

Let’s take a look at the most simple example of the circular reference error.

Below, the image shows a formula that simply refers to a single cell. However, the problem is that the cell that formula is referring to, is the cell that the formula is entered into (the formula in cell A1, is referring to cell A1).

As you can see, this has caused a circular reference error.

The following formula causes an error, when entered into cell A1:

=A1

Simple example of fixing a circular reference in Excel- part 1 before correction- Wrong cell reference

To fix the error, we can either move the formula to another cell, or change the reference in the formula so that it refers to another cell.

In this case we will change the cell reference to cell B1.

As you can see in the image below, this adjustment has fixed the circular reference error.

The following formula has been adjusted and resolves the error:

=B1

Simple example of fixing a circular reference error in Excel- part 2 after correction

Now, cell A1 displays the text that is in cell B1.

Fixing circular reference when summing

A common situation where you might experience the circular reference error, is when you are summing in Excel. This will happen most often when your SUM formula is in the same column that it refers to, and when the formula reference captures the entire column.

The image below shows a simple SUM formula, that attempts to sum the numbers in cells A1 through A5.

But as you can see, the SUM formula refers to the range A1:A10. Since the SUM formula is entered into a cell within column A (A6), and the range A1:A10 contains cell A6 (where the formula is), this causes a circular reference error.

The following formula causes an error when entered anywhere in column A:

=SUM(A1:A10)

Example of fixing a circular reference in Excel- part 1 with incorrect SUM reference

To fix this error, we will adjust the reference in the formula so that it only sums the values in the cells above it.

So rather than trying to sum the entire column, we will designate an ending row in the reference (a row that is above the sum formula).

To do this, simply change the sum range to A1:A5.

This fixes the circular reference error, as shown in the image below.

The following formula has been adjusted and resolves the error:

=SUM(A1:A5)

Example of fixing a circular reference in Excel- part 2 after reference correction (SUM)

Now the SUM formula in the image above, successfully sums cells A1 through A5. (1+2+3+4+5=15)

Fixing circular reference when filtering

In the last example we had to adjust the rows in the formula reference to fix the circular reference error, but let’s take a look at an example where we will adjust the columns in the reference to resolve the error.

In this example, let’s say that we have a list of school supplies and their prices entered into a spreadsheet, and we want to filter the data with a formula so that a list of items costing more than $1 is displayed.

As you can see in the image below, the FILTER formula has a circular reference error. This is being caused by the reference to the source range, which is one column too wide (considering where the filter formula has been placed).

If the formula refers to the range A2:D, which contains column D, the formula cannot be placed in column D.

The following formula causes an error when entered into cell D2:

=FILTER(A2:D10,C2:C10>1)

Example of fixing a circular reference in Excel- part 1- School supplies incorrectly filtered by price (Overlapping filter range)

To fix the error that is shown in the image above, change the range that refers to the source data from A2:D10, to A2:C10.

After making this adjustment, the error is fixed, and the FILTER formula works properly.

The following formula has been adjusted and resolves the error:

=FILTER(A2:C10,C2:C10>1)

Example of fixing a circular reference in Excel part 2- School supplies correctly filtered (Filter range fixed)

Now the school supplies are being filtered to display a list of items that cost more than $1.

This content was originally created and written by SpreadsheetClass.com

Fixing circular reference with if/then statement

Now let’s take a look at a more complex example, that could happen to anyone who uses formulas in their spreadsheets. In this example, there are two different formulas that are interacting, and because one of them was set up incorrectly, both are displaying an error, due to the fact that each are referring to (dependent on) each other.

(For more explanation on why this happens, see the top of this article)

When an error happens like the one that is shown in the image below, it can sometimes be hard to determine which formula has the mistake, because of the double error that it causes. As in any troubleshooting scenario… the best thing to do is to start from the beginning, and trace your way through the data/system until you find the mistake.

So here is the scenario in this example: Column A indicates the completion of a task with 1’s and 0’s. The formulas in column B were intended to refer to the data in column A, and to display the text «Yes» or «No», depending on if each cell in column A had a number 1 or a number 0. Then, column C refers to the cells in column B, and displays the words «Complete» or » Not Complete», depending on whether each cell in column B says yes or no.

In short, if cell A3 contains the number 1, then cell B3 should say «Yes», and cell C3 should say «Complete».

But the problem is that the formula in cell B3… instead of referring to the 1’s and 0’s in column A, the sheet’s creator made a mistake, and referred to column C (which in turn is referring back to it). This creates a circular reference error, in BOTH formulas, even though technically only one of the formulas was set up incorrectly.

This type of mix up is common when using lots of formulas in your sheets, and especially when you have been creating all day and are tired.

To fix this formula, which will fix both of the circular reference errors, follow the instructions listed below the image.

The following formula causes an error when entered into cell B3, due to another formula in cell C3 that refers to cell B3:

=IF(C3=»Complete»,»Yes»,»No»)

Example of fixing an Excel circular reference Part 1- One wrong formula causing two errors

In this case, to fix the error, it is more than just a matter of changing the reference in the formula, because the whole formula was written incorrectly by mistake. So remember that the formulas in column B, should display the word «Yes» in each row/cell if there is a number 1 in the adjacent cells in column A  (and the word «No» if there is a 0 in the adjacent cell).

The corrected logic for the formula in cell B3, is as follows: If cell A3 equals 1, then display the word «Yes», and if not, then display the word «No».

The following formula has been adjusted and resolves the error:

=IF(A3=1,»Yes»,»No»)

An example of fixing an Excel circular reference part 2- Formula correction that fixes two formulas

Now both of the formulas are working properly, and both of the circular reference errors have been fixed at the same time, by correcting one formula.

Now, column B refers to column A, and then column B refers to column C, as it should be. The formulas are no longer simultaneously dependent on each other’s output.

Fix the circular reference error when referring to another tab

One more very common way of running into the circular reference error, is when you are referring to another tab in your formula, and you forget to include the tab name in your reference.

The data below shows a list of clothing items and their sizes listed in a spreadsheet. We want to filter the data by using a formula in another tab, to only show items that have the size «Medium».

Example of fixing a circular reference when filtering from another tab in Excel- Tab with source data

The picture below shows a FILTER formula that is entered in cell A2, on a different tab than the one that holds the source data shown above.

The problem is that the tab name was left out when the formula was entered.

Since the source range is A2:B14 and the formula is in cell A2, this means that the formula is referring to itself. Or in other words, the cell that the formula is entered in, is within the range that the formula refers to. This causes a circular reference error.

The following formula causes an error when entered into cell A2:

=filter(A2:B14,B2:B14=»Medium»)

Example of "Empty Array" message when filter formula has a circular reference in Excel (Empty arrays are not supported error)

To fix this error, simply add the tab name to the references in the filter formula.

The reference to the source range will be ‘Another Tab’!A2:B14 (Apostrophes must be added before and after the tab name reference, when there is a space in the tab name).

The following formula has been adjusted and resolves the error:

=filter(‘Another Tab’!A2:B14,’Another Tab’!B2:B14=»Medium»)

Example of fixing a circular reference in Excel spreadsheet Part 2- Included tab name in filter formula when filtering from another tab (Fixed circular reference, and fixed empty array)

After adding the tab name to the references in the FILTER formula, the circular reference error goes away, and the formula filters properly, displaying a list of clothing items that are «Medium».

Now you know how to easily fix this error whenever it pops up in your spreadsheet!

Возможно, вам также будет интересно:

  • There are no task sequences available for this computer ошибка
  • There are boys in the house где ошибка
  • There are a book on the table исправить ошибку
  • Then js обработка ошибок
  • Themida ошибка что это

  • Понравилась статья? Поделить с друзьями:
    0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии