Excel - unable to find cell circular reference error

%3CLINGO-SUB%20id%3D%22lingo-sub-2706702%22%20slang%3D%22en-US%22%3EExcel%20-%20unable%20to%20find%20cell%20circular%20reference%20error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2706702%22%20slang%3D%22en-US%22%3E%3CP%3ECan%20anyone%20assist%20in%20showing%20us%20how%20to%20find%20a%20cell%20reference%20circular%20error%20in%20a%20workbook%20with%20over%20120%20sheets%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ethanks%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2706702%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2707224%22%20slang%3D%22en-US%22%3ERe%3A%20Excel%20-%20unable%20to%20find%20cell%20circular%20reference%20error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2707224%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1143379%22%20target%3D%22_blank%22%3E%40Cam12345%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBelow%20are%20the%20steps%20to%20find%20a%20circular%20reference%20in%20Excel%3A%3C%2FP%3E%3COL%3E%3CLI%3EActivate%20the%20worksheet%20that%20has%20the%20circular%20reference%3C%2FLI%3E%3CLI%3EClick%20the%20Formulas%20tab%3C%2FLI%3E%3CLI%3EIn%20the%20Formula%20Editing%20group%2C%20click%20on%20the%20Error%20Checking%20drop-down%20icon%20(little%20downward%20pointing%20arrow%20at%20the%20right)%3C%2FLI%3E%3CLI%3E%26nbsp%3B%3C%2FLI%3E%3CLI%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22JulianoPetrukio_0-1630500108181.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F307291iA2F1F4BDA3B489A1%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22JulianoPetrukio_0-1630500108181.png%22%20alt%3D%22JulianoPetrukio_0-1630500108181.png%22%20%2F%3E%3C%2FSPAN%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLI%3E%3CLI%3EHover%20the%20cursor%20over%20the%20Circular%20References%20option.%20It%20will%20show%20you%20the%20cell%20that%20has%20a%20circular%20reference%20in%20the%20worksheet%3C%2FLI%3E%3CLI%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22JulianoPetrukio_1-1630500107582.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F307292i89E7624013EE4E70%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22JulianoPetrukio_1-1630500107582.png%22%20alt%3D%22JulianoPetrukio_1-1630500107582.png%22%20%2F%3E%3C%2FSPAN%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLI%3E%3CLI%3EClick%20on%20the%20cell%20address%20(that%20is%20displayed)%20and%20it%20will%20take%20you%20to%20that%20cell%20in%20the%20worksheet.%3C%2FLI%3E%3C%2FOL%3E%3CDIV%20class%3D%22adthrive-ad%20adthrive-content%20adthrive-content-1%20adthrive-ad-cls%22%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3C%2FDIV%3E%3CP%3EOnce%20you%20have%20addressed%20the%20issue%2C%20you%20can%20again%20follow%20the%20same%20steps%20above%20and%20it%20will%20show%20more%20cell%20references%20that%20have%20the%20circular%20reference.%20If%20there%20is%20none%2C%20you%20will%20not%20see%20any%20cell%20reference%2C%3C%2FP%3E%3CP%3EAnother%20quick%20and%20easy%20way%20to%20find%20the%20circular%20reference%20is%20by%20looking%20at%20the%20Status%20bar.%20On%20the%20left%20part%20of%20it%2C%20it%20will%20show%20you%20the%20text%20Circular%20Reference%20along%20with%20the%20cell%20address.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22JulianoPetrukio_2-1630500108142.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F307293i118F52085C827520%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22JulianoPetrukio_2-1630500108142.png%22%20alt%3D%22JulianoPetrukio_2-1630500108142.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThere%20are%20a%20few%20things%20you%20need%20to%20know%20when%20working%20with%20circular%20references%3A%3C%2FP%3E%3COL%3E%3CLI%3EIn%20case%20the%20iterative%20calculation%20is%20enabled%20(covered%20later%20in%20this%20tutorial)%2C%20the%20status%20bar%20will%20not%20show%20the%20circular%20reference%20cell%20address%3C%2FLI%3E%3CLI%3EIn%20case%20the%20circular%20reference%20is%20not%20in%20the%20active%20sheet%20(but%20in%20other%20sheets%20in%20the%20same%20workbook)%2C%20it%20will%20only%20show%20Circular%20reference%20and%20not%20the%20cell%20address%3C%2FLI%3E%3CLI%3EIn%20case%20you%20get%20a%20circular%20reference%20warning%20prompt%20once%20and%20you%20dismiss%20it%2C%20it%20will%20not%20show%20the%20prompt%20again%20the%20next%20time.%3C%2FLI%3E%3CLI%3EIf%20you%20open%20a%20workbook%20that%20has%20the%20circular%20reference%2C%20it%20will%20show%20you%20the%20prompt%20as%20soon%20as%20the%20workbook%20opens.%3C%2FLI%3E%3C%2FOL%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20title%3D%22Circular%20Reference%22%20href%3D%22https%3A%2F%2Fsupport.microsoft.com%2Fen-us%2Foffice%2Fremove-or-allow-a-circular-reference-8540bd0f-6e97-4483-bcf7-1b49cd50d123%3Fui%3Den-us%26amp%3Brs%3Den-us%26amp%3Bad%3Dus%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3ERemoving%20or%20Allowing%20Circular%20Reference%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20code%20below%20identify%20the%20first%20circular%20reference%20on%20each%20worksheet%20and%20backcolor%20it%20in%20red.%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-visual-basic%22%3E%3CCODE%3ESub%20ShowCircularReference()%0A%20%20%20%20Dim%20wb%20As%20Workbook%0A%20%20%20%20Dim%20ws%20As%20Worksheet%0A%0A%20%20%20%20Set%20wb%20%3D%20ActiveWorkbook%0A%20%20%20%20%0A%20%20%20%20For%20Each%20ws%20In%20wb.Worksheets%0A%20%20%20%20%0A%20%20%20%20%20%20%20%20ws.Select%0A%20%20%20%20%20%20%20%20ws.CircularReference.Select%0A%20%20%20%20%20%20%20%20Selection.Interior.Color%20%3D%20vbRed%0A%20%20%20%20%20%20%20%20%0A%20%20%20%20Next%20ws%0A%20%20%20%20%0A%20%20%20%20%0AEnd%20Sub%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Visitor

Can anyone assist in showing us how to find a cell reference circular error in a workbook with over 120 sheets?

 

thanks

 

1 Reply

@Cam12345 

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)
  4.  
  5. JulianoPetrukio_0-1630500108181.png

     

  6. Hover the cursor over the Circular References option. It will show you the cell that has a circular reference in the worksheet
  7. JulianoPetrukio_1-1630500107582.png

     

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

JulianoPetrukio_2-1630500108142.png

 

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.

 

Removing or Allowing Circular Reference 

 

The code below identify the first circular reference on each worksheet and backcolor it in red.

Sub ShowCircularReference()
    Dim wb As Workbook
    Dim ws As Worksheet

    Set wb = ActiveWorkbook
    
    For Each ws In wb.Worksheets
    
        ws.Select
        ws.CircularReference.Select
        Selection.Interior.Color = vbRed
        
    Next ws
    
    
End Sub