kyddrivers
Board Regular
- Joined
- Mar 22, 2013
- Messages
- 64
- Office Version
- 365
- Platform
- Windows
I have three large complex workbooks that do some heavy lifting. I am now getting an error when calculating: Microsoft Excel cannot calculate a formula. There is a circular reference in an open workbook, but the references that cause it cannot be listed for you. Try editing the last formula you entered or removing it with the Undo command.
When I look at error checking Circular reference is greyed out.
The lower left-hand corner says circular references: XXX, sometimes pointing to an empty cell.
I do not have enable iterative calculations checked.
Here is a simple example:
Circular reference in A258. The formula in A258 is =EOMONTH(TODAY(),9)+1. This returns 3/1/2024. This is working as expected.
Here is a complex example that I am trying to understand:
Circular reference in AB19. The formula in AB19 is: =XLOOKUP(MAX(Calls!$H$162:$H$165), Calls!$H$162:$H$165, Calls!$G$162:$G$165). This returns the date from CallsH162:165 with the max number in CallsG162:165
The formula in Calls!$H$162 is =SUM(OFFSET(INDEX($A162:$A192, MATCH(G162,$A162:$A192,1)),0,3):OFFSET(INDEX($A162:$A192, MATCH(G162,$A162:$A192,1)),7,3)).
This looks at the date in G162 and finds it in the list of days in A162:A192, moves over three columns, creates a range, and sums the range.
The Formula in G162 is =A162-DAY(A162)+8-WEEKDAY(A162-DAY(A162)). This returns 12/3/2023, the first Sunday of the month
The Formula in G163 is =G162+7. This returns 12/10/2023
The Formula in G164 is =G163+7. This returns 12/17/2023
The Formula in G165 is =G164+7. This returns 12/24/2023
The Formula in A162 is =EOMONTH(TODAY(),6)+1. This returns 12/1/2023
The formula in A163 is =IF(A162="","",IF(MONTH(A162+1)<>MONTH(A162),0, A162+1)). This returns 12/2/2023 and continues through the end of the month.
The only commonality it seems is the EOMonth function?!?
Questions, comments, ideas, suggestions?
Thanks in advance!
When I look at error checking Circular reference is greyed out.
The lower left-hand corner says circular references: XXX, sometimes pointing to an empty cell.
I do not have enable iterative calculations checked.
Here is a simple example:
Circular reference in A258. The formula in A258 is =EOMONTH(TODAY(),9)+1. This returns 3/1/2024. This is working as expected.
Here is a complex example that I am trying to understand:
Circular reference in AB19. The formula in AB19 is: =XLOOKUP(MAX(Calls!$H$162:$H$165), Calls!$H$162:$H$165, Calls!$G$162:$G$165). This returns the date from CallsH162:165 with the max number in CallsG162:165
The formula in Calls!$H$162 is =SUM(OFFSET(INDEX($A162:$A192, MATCH(G162,$A162:$A192,1)),0,3):OFFSET(INDEX($A162:$A192, MATCH(G162,$A162:$A192,1)),7,3)).
This looks at the date in G162 and finds it in the list of days in A162:A192, moves over three columns, creates a range, and sums the range.
The Formula in G162 is =A162-DAY(A162)+8-WEEKDAY(A162-DAY(A162)). This returns 12/3/2023, the first Sunday of the month
The Formula in G163 is =G162+7. This returns 12/10/2023
The Formula in G164 is =G163+7. This returns 12/17/2023
The Formula in G165 is =G164+7. This returns 12/24/2023
The Formula in A162 is =EOMONTH(TODAY(),6)+1. This returns 12/1/2023
The formula in A163 is =IF(A162="","",IF(MONTH(A162+1)<>MONTH(A162),0, A162+1)). This returns 12/2/2023 and continues through the end of the month.
The only commonality it seems is the EOMonth function?!?
Questions, comments, ideas, suggestions?
Thanks in advance!