Confused On Circular Reference

valleyHemenway

New Member
Joined
Nov 17, 2022
Messages
11
Office Version
  1. 365
Platform
  1. MacOS
Hello,
My goal is to write a formula I can use in a table that creates an "ID" number sequence down the table. I skip some rows depending on values in other columns. So the first row will always have ID 1 and then it might be a few rows before I would expect ID 2 to show up and then eventually 3 and so on.

I do not want to use any specific references (A3). I have what seems to to be a workable formula, but it also acts like there is a circular reference. I have to click into any cell and press ENTER or press F9 before the values change to what they are supposed to be. There is no circular reference error in Excel, and I don't see how my formula creates one. I am stumped.

Does anyone know if I am actually creating a circular reference? Can anyone come up with a different way of creating my "auto-numbering" feature?

Thanks so much!

test.xlsx
CDEFG
3
4Column1Column2Column3
510
6 A
7 B
8 C
910
10 A
11 B
1210
13 A
1410
1510
1610
17 A
18 B
1910
2010
21 A
2210
23 A
24 B
25
Sheet1
Cell Formulas
RangeFormula
D5:D24D5=IF(ISTEXT([@Column2]), "", MAX(INDIRECT(ADDRESS(ROW(Table1[#Headers]),COLUMN([Column1])) & ":" & ADDRESS(ROW()-1,COLUMN([Column1]))))+1)
 
My formula is not reliable. I'm not sure how to write a lambda-type of function in a table without scanning the whole column, making it inefficient.

jaeiow, thanks for contributing! I am not able to use the second one as one of the rules I have for this workbook is I can't use specific cell references in my formulas. I am not sure why, but that is one of the rules. Another one is no macros. Another one is getting all Conditional Formatting approved before use (which now makes more sense ;) ).

What makes your first formula not reliable? Anyway, I appreciate the time and energy!
 
Upvote 0

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Thanks for the wonderful explanation! I do have a couple conditional formatting rows setup in the main excel sheet, but since it is also happening on my test file which doesn't, I think it likely has something to do with either Excel for Mac or Excel for Mac on M1. Either way, while not super ideal, the OFFSET option is working and is not causing the issue I was seeing before. After I reload and test again, I will report back. I will also see if I can test it on a Windows computer with Excel and see how that performs.
Appreciate the feedback and do let us know if you find out any more with your further testing.
 
Upvote 0

Forum statistics

Threads
1,215,427
Messages
6,124,831
Members
449,190
Latest member
rscraig11

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top