Hey All,
Ok so I know what I want to do but I'm having issues coming up with the logic for the formulas.
Ok so I have dates and on those dates there is a type of shift being a single, double, triple, or quad shift. These shifts are scheduled out a month at a time and are every six days. So what I have the sheet doing is finding the six largest date values and finding what kind of shift it is. I use 6 because that is the most shifts you can have in 1 month. I will add in a function to only pull the date if it is the same month later. Ok so once it has pulled the type of shift what I want it to do is then In a column put the date as many times as the type of shift it is. So if it is a single it would put the date once then it would go to the next shift or a triple would put it down three times and then go to the next one. From there I will pull the data from the assignment sheet to find the shift and fill in the persons name.
My main issue is that the logic running down the date column for all the possibilities I'm have trouple figuring it out. There is a good chance there is an easier way to do it than a ton of nested ifs and if so that would be awesome. I put a column next to it showing desired outcome. If possible it would be even better if it could go in ascending order rather than descending but I wasn't sure if that would be possible.
Any help anyone can give me would be awesome. Thanks.
Jeremy
Logic Help.xlsx
Bookmarks