A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data
Thank you. That makes sense. I made the schedule today so it's in a similar format.
Shift schedule is 7 columns with start date manually entered. After that, from memory, I want to say i set the formula to: if (([previous cell]+3)<=date(2025,12,31),[previous cell]+3,"wrong year") because I like to leave indicators that I went to far. I also want to use the sheet every year, so this way I just need a quick find/replace in formulas 202x with 202x+1.
Now I'll just have check the shift, then generate once shift is determined. Please help with this one last problem in the formula. Can I set the randomly generated number to compare against a max date so I can search the entire index but not return a result greater than a quarter end date. This will let me minimize the formula changes as I move forward. Here is my attempt for the full formula.
=if([shift schedule]=1,if((INDEX(B$:B$,RANDBETWEEN(1,COUNTA(B$:B$)))<=(date(2025,3,31)),(INDEX(B$:B$,RANDBETWEEN(1,COUNTA(B$:B$))),[run again]),if([shift schedule]=2, etc... until iteration 7 is checked for shift schedule.
How do I set the "[run again]" and is the random determination check against the date in the correct syntax? I'm not at my office so i can't enter this formula to try to error check it at this time. I'm just brainstorming on my phone.
Also, i could use the randomly generated selection to calculate a quarter [roundup(month/3,0)] as an error check.
I know i keep asking more involved questions, but the hope is to generate one reusable formula and data set that only require minor modifications. Ultimately I will work to remove the required upkeep, but that will be much easier after I understand the formula.