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
- Smartsheet Customer Resources
- 64.3K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 142 Just for fun
- 59 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!