automate reference to a row number

Hello, I have this formula that refers to the specific range of row numbers:
where 1348 and 1377 are the row numbers. I have to change it because I use this formula for different months and different individuals and I have about 12 000 rows in a single sheet.
Is there a way to automatically refer to a row number? (right now, I manually change those numbers when i copy and paste this formula to a different row range.
Thank you,
=IF(AND([Days Away]@row = 1, Adjacent@row = 1), (MAX(COLLECT([Date Only]$1348:[Date Only]$1377, [Date Only]$1348:[Date Only]$1377, <[Date Only]@row, Adjacent$1348:Adjacent$1377, 0)) + 1) + "-" + IF(MAX(COLLECT([Date Only]$1348:[Date Only]$1377, [Date Only]$1348:[Date Only]$1377, >[Date Only]@row, Adjacent$1348:Adjacent$1377, 0)) = 0, (MAX(COLLECT([Date Only]$1348:[Date Only]$1377, [Date Only]$1348:[Date Only]$1377, >=[Date Only]@row, Adjacent$1348:Adjacent$1377, 1))), MIN(COLLECT([Date Only]$1348:[Date Only]$1377, [Date Only]$1348:[Date Only]$1377, >[Date Only]@row, Adjacent$1348:Adjacent$1377, 0)) - 1), IF([Days Away]@row = 1, [Date Only]@row)) + ""
Answers
-
Yes! If you change the column type to "Auto Number" (screenshotted below), that did the trick for me!
-
thank you, @Almonto1. which column? I still need this formula for a specific display of the dates. TY
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 66.2K Get Help
- 431 Global Discussions
- 152 Industry Talk
- 490 Announcements
- 5.2K Ideas & Feature Requests
- 85 Brandfolder
- 155 Just for fun
- 74 Community Job Board
- 501 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 306 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!