Hello Smartsheet Community,
I have a need to INDEX / COLLECT dates from multiple different sheets with individual users. The goal is to look at various schedules for a list of users and deconflict dates that overlap on all of the schedules that a user is found. I can't do this with a report, as the assigned user is a multi-select drop down, which can't be grouped by individual user. Wouldn't that be easy…
It's possible I made it more complicated than it needs to be, but essentially I made a helper sheet that sums the counts of instances that a user's name appears in each schedule, then I apply an auto number column which explodes that count by user and applies a RANKEQ them. Next step is to INDEX / COLLECT the dates with the row index of the RANKEQ to pull the first date where the user's name appears in the schedule, and so forth. Works fine until the first schedule reaches it's max index.
Basically RANKEQ does not reset when the schedule has reached it's limit and moves to the next schedule to look for corresponding INDEX / COLLECT name and date referencing the rank. Hopefully this illustrates my issue:
User A - 20 assignments across all schedules.
Schedule 1 has 10 instances of User A, RANKEQ 1-10
Schedule 2 has 10 instances of User A, RANKEQ 11-20
The INDEX / COLLECT index, set to reference the RANKEQ for Schedule 2 begins at 11, so it results in an invalid value as there is no row index greater than 10. I need the RANKEQ to reset back to 1 when the schedule has reached it's max index, but this results in a circular reference since the rank isn't able to look at any count or reference from the cross sheet count.
I feel like I almost have the answer, but a fresh set of eyes or ideas would be very helpful. If anyone has the time, have at it!