How to find circular reference in excel

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.

Get live and free answers on Excel

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)

While working with Excel formulas, you may sometime see the following warning prompt.

Circular warning prompt in Excel

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!

What is Circular Reference in Excel?

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:

=SUM(A1: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).

How to Find Circular References in Excel?

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:

  1. Activate the worksheet that has the circular reference
  2. Click the Formulas tab
  3. In the Formula Editing group, click on the Error Checking drop-down icon (little downward pointing arrow at the right)Click on the error checking option in the Formulas tab
  4. Hover the cursor over the Circular References option. It will show you the cell that has a circular reference in the worksheetCircular reference options show the cell address that has the error
  5. Click on the cell address (that is displayed) and it will take you to that cell in the worksheet.

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.

Circular reference cell address in the status bar

There are a few things you need to know when working with circular references:

  1. In case the iterative calculation is enabled (covered later in this tutorial), the status bar will not show the circular reference cell address
  2. In case the circular reference is not in the active sheet (but in other sheets in the same workbook), it will only show Circular reference and not the cell address
  3. In case you get a circular reference warning prompt once and you dismiss it, it will not show the prompt again the next time.
  4. If you open a workbook that has the circular reference, it will show you the prompt as soon as the workbook opens.

How to Remove a Circular Reference in Excel?

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.

Circular reference trace dependent

  • The formulas in cell A6 is =SUM(A1:A5)+C6
  • The formula is cell C1 is =A6*0.1
  • The formula in cell C6 is =A6+C1

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:

  1. Select the cell that has the circular reference
  2. Click the Formulas tab
  3. Click on Trace PrecedentsTrace Precedents

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.

How to Enable/Disable Iterative Calculations in Excel

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:

  1. Click the File tab
  2. Click on Options. This will open the Excel Options dialog box
  3. Select Formula in the left paneClick Formulas in Excel options dilaog box
  4. In the Calculation options section, check the box ‘Enable iterative calculation’. Here you can specify the maximum iterations and maximum change valueEnabling Iterative calculation 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:

  • Maximum iterations: This is the maximum number of times you want Excel to calculate before giving you the final result. So if you specify this as 100, Excel will run the loop 100 times before giving you the final result.
  • Maximum Change: This is the maximum change, which if not achieved between iterations, the calculation would be stopped. By default, the value is .001. The lower this value, the more accurate would be the result.

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.

Note: When iterative calculations are enabled, Excel will not show you the circular reference warning prompt and will also now show it in the status bar.

Deliberately Using Circular References

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:

=IF(A2<>"",IF(B2<>"",B2,NOW()),"")

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).

Note: While there may be some cases where you can use circular reference, I find it best to avoid using it. Circular references can also take a toll on the performance of your workbook and can make it slow. In rare cases where you need it, I always prefer using VBA codes to get the work done.

I hope you found this tutorial useful!

Other Excel tutorials you may find useful:

  • #REF! Error in Excel; How to Fix the Reference Error!
  • Excel VBA Error Handling
  • Use IFERROR with VLOOKUP to Get Rid of #N/A Errors
  • How to Reference Another Sheet or Workbook in Excel (with Examples)
  • Absolute, Relative, and Mixed Cell References in Excel

Содержание

  • Что такое круговая ссылка в Excel?
  • Как найти круговые ссылки в Excel?
  • Как удалить круговую ссылку в Excel?
  • Как включить / отключить итерационные вычисления в Excel
  • Умышленное использование круговых ссылок

При работе с формулами Excel вы можете иногда увидеть следующее предупреждение.

Это приглашение сообщает вам, что на вашем листе есть циклическая ссылка, и это может привести к неправильному расчету по формулам. Он также просит вас решить эту проблему с циклическими ссылками и отсортировать ее.

В этом уроке я расскажу все, что вам нужно знать о круговой ссылке, а также как найти и удалить циклические ссылки в Excel.

Итак, приступим!

Проще говоря, циклическая ссылка возникает, когда вы в конечном итоге получаете формулу в ячейке, которая сама по себе использует ячейку (в которую она была введена) для вычисления.

Позвольте мне попытаться объяснить это на простом примере.

Предположим, у вас есть набор данных в ячейке A1: A5, и вы используете приведенную ниже формулу в ячейке A6:

= СУММ (A1: A6)

Это даст вам предупреждение о круговой ссылке.

Это потому, что вы хотите просуммировать значения в ячейке A1: A6, и результат должен быть в ячейке A6.

Это создает цикл, поскольку Excel просто продолжает добавлять новое значение в ячейку A6, которое продолжает меняться (следовательно, цикл циклической ссылки).

Как найти круговые ссылки в Excel?

Хотя предупреждение о циклической ссылке достаточно любезно, чтобы сообщить вам, что оно существует на вашем листе, оно не сообщает вам, где это происходит и какие ссылки на ячейки вызывают это.

Поэтому, если вы пытаетесь найти и обработать циклические ссылки на листе, вам нужно знать способ как-то их найти.

Ниже приведены шаги, чтобы найти циклическую ссылку в Excel:

  1. Активируйте рабочий лист с круговой ссылкой
  2. Перейдите на вкладку «Формулы».
  3. В группе «Редактирование формул» щелкните раскрывающийся значок «Проверка ошибок» (маленькая стрелка, направленная вниз, справа).
  4. Наведите курсор на опцию Циркулярные ссылки. Он покажет вам ячейку с круговой ссылкой на листе.
  5. Щелкните адрес ячейки (который отображается), и вы перейдете к этой ячейке на листе.

Решив проблему, вы можете снова выполнить те же действия, описанные выше, и он покажет больше ссылок на ячейки, которые имеют циклическую ссылку. Если его нет, вы не увидите ссылку на ячейку,

Еще один быстрый и простой способ найти круговую ссылку — это посмотреть на строку состояния. В левой его части будет отображаться текст Циркулярная ссылка вместе с адресом ячейки.

При работе с круговыми ссылками необходимо знать несколько вещей:

  1. Если включено итеративное вычисление (описанное далее в этом руководстве), в строке состояния не будет отображаться адрес ячейки с круговой ссылкой.
  2. В случае, если круговая ссылка отсутствует на активном листе (а на других листах в той же книге), будет отображаться только круговая ссылка, а не адрес ячейки.
  3. Если вы получили предупреждение о циклической ссылке один раз и отклонили его, в следующий раз оно больше не будет отображаться.
  4. Если вы откроете книгу с циклической ссылкой, она отобразит подсказку, как только откроется книга.

Как удалить круговую ссылку в Excel?

Как только вы определили, что на вашем листе есть циклические ссылки, пора их удалить (если вы не хотите, чтобы они были там по какой-либо причине).

К сожалению, это не так просто, как нажать клавишу удаления. Поскольку они зависят от формул, а каждая формула отличается, вам необходимо анализировать это в каждом конкретном случае.

Если проблема вызвана ошибкой ссылки на ячейку, вы можете просто исправить ее, изменив ссылку.

Но иногда все не так просто.

Круговая ссылка также может быть вызвана на основе нескольких ячеек, которые взаимодействуют друг с другом на многих уровнях.

Позвольте мне показать вам пример.

Ниже в ячейке C6 есть циклическая ссылка, но это не просто случай ссылки на самого себя. Он многоуровневый, где ячейки, которые он использует в вычислениях, также ссылаются друг на друга.

  • Формула в ячейке A6: = СУММ (A1: A5) + C6.
  • Формула: ячейка C1 = A6 * 0,1
  • Формула в ячейке C6: = A6 + C1.

В приведенном выше примере результат в ячейке C6 зависит от значений в ячейках A6 и C1, которые, в свою очередь, зависят от ячейки C6 (что вызывает ошибку циклической ссылки)

И снова я выбрал очень простой пример только для демонстрационных целей. На самом деле, это может быть довольно сложно понять, и, возможно, они находятся далеко на одном листе или даже разбросаны по нескольким листам.

В таком случае есть один способ идентифицировать ячейки, которые вызывают циклическую ссылку, и затем обработать их.

Это можно сделать с помощью параметра «Отслеживать прецеденты».

Ниже приведены шаги по использованию прецедентов трассировки для поиска ячеек, которые передаются в ячейку с циклической ссылкой:

  1. Выберите ячейку с круговой ссылкой
  2. Перейдите на вкладку «Формулы».
  3. Нажмите на прецеденты трассировки

Приведенные выше шаги покажут вам синие стрелки, которые укажут, какие ячейки вводятся в формулу в выбранной ячейке. Таким образом, вы можете проверить формулы и ячейки и избавиться от циклической ссылки.

Если вы работаете со сложными финансовыми моделями, вполне возможно, что эти прецеденты также имеют несколько уровней глубины.

Это хорошо работает, если у вас есть все формулы, относящиеся к ячейкам на одном листе. Если это на нескольких листах, этот метод неэффективен.

Как включить / отключить итерационные вычисления в Excel

Когда у вас есть круговая ссылка в ячейке, сначала вы получаете предупреждение, как показано ниже, и если вы закроете это диалоговое окно, в качестве результата в ячейке вы получите 0.

Это связано с тем, что циклическая ссылка представляет собой бесконечный цикл, и Excel не хочет зацикливаться на нем. Таким образом, он возвращает 0.

Но в некоторых случаях вам может потребоваться активировать циклическую ссылку и выполнить пару итераций. В таком случае вместо бесконечного цикла вы можете решить, сколько раз цикл должен быть запущен.

Это называется итерационный расчет в Excel.

Ниже приведены шаги для включения и настройки итерационных вычислений в Excel:

  1. Перейдите на вкладку Файл.
  2. Щелкните Параметры. Откроется диалоговое окно «Параметры Excel».
  3. Выберите формулу на левой панели
  4. В разделе «Параметры расчета» установите флажок «Включить итерационный расчет». Здесь вы можете указать максимальное количество итераций и максимальное значение изменения

Вот и все! Вышеупомянутые шаги позволят выполнить итеративный расчет в Excel.

Позвольте мне также быстро объяснить два варианта итеративного расчета:

  • Максимальное количество итераций: Это максимальное количество раз, которое вы хотите, чтобы Excel вычислил, прежде чем выдает окончательный результат. Поэтому, если вы укажете это как 100, Excel выполнит цикл 100 раз, прежде чем выдаст вам окончательный результат.
  • Максимальное изменение: Это максимальное изменение, которое, если не достигнуто между итерациями, вычисление будет остановлено. По умолчанию это значение 0,001. Чем ниже это значение, тем точнее будет результат.

Помните, что чем больше раз выполняются итерации, тем больше времени и ресурсов у Excel уходит на это. Если вы сохраните максимальное количество итераций на высоком уровне, это может привести к замедлению работы Excel или сбою.

Примечание. Когда включены итеративные вычисления, Excel не будет отображать предупреждение о циклической ссылке, а также теперь будет отображать его в строке состояния.

Умышленное использование круговых ссылок

В большинстве случаев наличие круговой ссылки на вашем листе будет ошибкой. Вот почему Excel показывает подсказку: «Попробуйте удалить или изменить эти ссылки или переместить формулы в другие ячейки».

Но могут быть некоторые конкретные случаи, когда вам понадобится круговая ссылка, чтобы вы могли получить желаемый результат.

Один такой конкретный случай, о котором я уже писал, получение отметки времени в ячейке в ячейке в Excel.

Например, предположим, что вы хотите создать формулу, чтобы каждая запись производилась в ячейке в столбце A, а метка времени отображалась в столбце B (как показано ниже):

Хотя вы можете легко вставить метку времени, используя следующую формулу:

= ЕСЛИ (A2 ""; ЕСЛИ (B2 ""; B2, СЕЙЧАС ()), "")

Проблема с приведенной выше формулой заключается в том, что она обновит все временные метки, как только на листе будет внесено какое-либо изменение или если рабочий лист будет повторно открыт (поскольку формула СЕЙЧАС является изменчивой)

Чтобы обойти эту проблему, вы можете использовать метод круговой ссылки. Используйте ту же формулу, но разрешите итеративный расчет.

Есть и другие случаи, когда желательна возможность использовать циклическую ссылку (вы можете найти здесь один пример).

Примечание. Хотя в некоторых случаях можно использовать круговую ссылку, я считаю, что лучше избегать ее использования. Циркулярные ссылки также могут сказаться на производительности вашей книги и замедлить ее. В редких случаях, когда вам это нужно, я всегда предпочитаю использовать коды VBA для выполнения работы.

Надеюсь, вы нашли этот урок полезным!

Другие учебники по Excel могут оказаться полезными:

  • # ССЫЛКА! Ошибка в Excel; Как исправить ошибку ссылки!
  • Обработка ошибок Excel VBA
  • Используйте ЕСЛИОШИБКА с функцией ВПР, чтобы избавиться от # ошибок Н / Д
  • Как сослаться на другой лист или книгу в Excel (с примерами)
  • Абсолютные, относительные и смешанные ссылки на ячейки в Excel

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.

Excel offers a wide and versatile set of formulae that ranges from basic to more advanced calculations. However, the higher the level of complexity, the more chances you will encounter a problem in your dataset.

If you have come across this error message, “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.”, then it is likely that you tried to apply a formula to its own cell.

By the end of this article, you will know how to locate and remove a circular reference in Excel effectively to quickly resolve any further issues you may encounter in your dataset.

What is a circular reference?

According to Microsoft, a circular reference occurs when “your formula is trying to calculate itself». In simpler words, the formula refers to the same cell where it’s located, creating a reference loop that keeps the formula working without completion. The examples below will show what a circular reference looks like in Excel.

Circular reference example(s)

If you select a cell and type in “=” sign followed by that same cell, it creates a circular reference. For example, “=E1”.

How To Find Circular References In Excel Circular reference example 1

How To Find Circular References In Excel — Circular reference example

As you can see below, Microsoft Excel prompts the circular reference error message. Click “OK” to proceed.

How To Find Circular References In Excel Circular reference message

How To Find Circular References In Excel — Circular reference message

Now, we’ll try with a less basic formula, also including the cell of the formula. For example, “=IF(E1=2, “YES”)”.

How To Find Circular References In Excel Circular reference example 2

How To Find Circular References In Excel — Circular reference example

As soon as you hit “Enter” you will get a “0” result instead of the error message. However, this is a way to let you know that there is something wrong with the formula. Now, let’s explore how to find circular references in Excel to fix them.

How to Recover Unsaved Excel Files?

If Excel crashed or you didn’t save your hard work, don’t panic! There are ways to retrieve your file. Here’s how to recover an unsaved Excel file.

READ MORE

How to Recover Unsaved Excel Files

How to find circular references in Excel?

To find a circular reference is easier than you think. You simply need to use the “Circular References” feature under the Formulas tab. This will help you locate any circular reference in your spreadsheet, so you can then proceed to remove or fix it, if possible.

  1. 1. Go to Formulas > Error Checking > Circular References. The cells containing a circular reference will appear as a list next to the menu.

How To Find Circular References In Excel Error Checking

How To Find Circular References In Excel — Error Checking

  1. 2. The circular reference is also displayed at the bottom of the active sheet, showing the cell where it’s located. Here, “E1”.

How To Find Circular References In Excel Circular reference active

How To Find Circular References In Excel — Circular reference active

Note that you may have circular references in sheets besides the active one. In this case, Excel won’t display the cell, only “Circular Reference”.

If you find that the “Circular References” function doesn’t work, you may need to disable the “Iterative Calculation” option. Although this function is usually disabled by default, you can check by going to File > Options > Formulas.

How To Find Circular References In Excel Iterative Calculations

How To Find Circular References In Excel — Iterative Calculations

In “Calculation options” you should see the “Enable iterative calculations” box disabled. If you enable this feature, Excel will recalculate the formula as many times as necessary. This will definitely affect the correct functioning of your workbook. However, you can always specify how many times Excel should recalculate in “Maximum Iterations”.

Now that you know how to identify a circular reference in Excel, let’s see how you can remove circular references in your Excel file.

How to remove circular references in Excel?

Unfortunately, there is no button or feature to get rid of circular references in Excel at the same time. If your dataset is large and complex, sometimes you can’t find a circular reference in Excel as easily as shown previously. To do so, you’ll need to trace relationships between formulas and cells. This is how you can trace relationships to fix circular references.

  1. 1. Go to Formulas > Trace Precedents. This will display which cell is providing the data to the formula. Below, the blue arrow shows that cell F1, the precedent cell, is part of the formula in cell E1.

How To Find Circular References In Excel Trace Precedents

How To Find Circular References In Excel — Trace Precedents

  1. 2. Select “Trace Dependents” to display the cells that contain the formula referencing the selected cell. Here, E1 is dependent on F1.

How To Find Circular References In Excel Trace Dependents

How To Find Circular References In Excel — Trace Dependents

  1. 3. To find out exactly how each cell is referencing another in the formula, select “Show Formulas” from the “Formulas” tab. Now you can identify the formula issues.

How To Find Circular References In Excel Show Formulas

How To Find Circular References In Excel — Show Formulas

  1. 4. As you can see within the formulas, these two cells are completely dependent on each other, causing this circular reference. Now you can pinpoint which cell references you need to alter within the formula in order to break this cycle. The most common way to do this is by turning at least one of the dependent cells into a static value (if possible). In this example, I can substitute my E1 reference with the static value of “5” to avoid a circular reference.

How To Find Circular References In Excel Static value

How To Find Circular References In Excel — Static value

  1. 5. To continue working on your spreadsheet as normal, you can click “Remove Arrows” on the same “Formulas” tab. You have the option of removing them altogether, or according to the type of trace, as shown below.

How To Find Circular References In Excel Remove arrows

How To Find Circular References In Excel — Remove arrows

In a few clicks, you’ve seen how to trace the cell relationships within a circular reference and how to fix it by substituting a cell reference with a static value. 

Please note: There are many circumstances where you are purposefully creating a circular reference within your Excel. In this case, it’s best to reduce the number of circular references within a single worksheet in order to reduce loading times.

Want to Boost Your Team’s Productivity and Efficiency?

Transform the way your team collaborates with Confluence, a remote-friendly workspace designed to bring knowledge and collaboration together. Say goodbye to scattered information and disjointed communication, and embrace a platform that empowers your team to accomplish more, together.

Key Features and Benefits:

  • Centralized Knowledge: Access your team’s collective wisdom with ease.
  • Collaborative Workspace: Foster engagement with flexible project tools.
  • Seamless Communication: Connect your entire organization effortlessly.
  • Preserve Ideas: Capture insights without losing them in chats or notifications.
  • Comprehensive Platform: Manage all content in one organized location.
  • Open Teamwork: Empower employees to contribute, share, and grow.
  • Superior Integrations: Sync with tools like Slack, Jira, Trello, and more.

Limited-Time Offer: Sign up for Confluence today and claim your forever-free plan, revolutionizing your team’s collaboration experience.

Conclusion

If you want to avoid Excel from entering an endless loop and slowing down all calculations overall, having a full understanding of what a circular reference is and how to fix it is as crucial as it is useful.

This article has explained the concept of “circular reference”. You have also seen how to find circular references and remove them in Excel in just a few steps. Interested in learning more about formulas in Excel? Take a look at some of our latest blog posts:

  • Excel INDIRECT Function: Formula and Examples
  • How to VLOOKUP in Excel with Two Spreadsheets?
  • How to Calculate IRR in Excel? (IRR Function & Formula)

Like this post? Please share to your friends:
  • How to do pages numbers in word
  • How to find a word in word file
  • How to find a word in word document
  • How to do page of page numbers in word
  • How to find a word and replace it in word