May 22 2021 08:28 AM
Hello, I am working on creating a user friendly schedule rotating schedule.
I am trying to see how I can create a formula or a way to indicate when I am missing a "rotation"
For example, in the following image. I am missing "DU" and "C".
Any way I can do this?
The numbers next to the Key is how many should be on the hour. I hope this makes sense.
Thanks for all your help!
May 22 2021 09:23 AM
Why is C missing? It appears to be in row 4.
May 22 2021 09:35 AM
May 22 2021 10:02 AM
Would it be possible to fill all the colored cells with the appropriate letter? Otherwise, you'd need complicated VBA code!
May 22 2021 10:08 AM
May 22 2021 10:40 AM
I meant only the colored cells, for example RG not only in cell AL5, but also in AM5 to AO5.
May 22 2021 11:48 AM
Here is an illustration of what I meant. The formula in AL29, confirmed with Ctrl+Shift+Enter, is
=TEXTJOIN(",",TRUE,IF(AO21:AO26,AL21:AL26,""))
May 22 2021 01:03 PM
As variant
with
=TEXTJOIN(", ",1,
IF(COUNTIFS(AL$3:AO$20,AL$25:AL$30)<$AM$25:$AM$30,
AL$25:AL$30,
""))
May 22 2021 01:56 PM
I suspect that the coloring matters, and that the MP in AN8 (with AN8:AO8 colored) and in AL17 (with AL17:AM17 colored) count as 2 * 0.5 = 1
May 23 2021 11:26 AM
May 23 2021 11:30 AM
It might help if you attached a sample workbook without sensitive/proprietary data.
May 23 2021 11:37 AM
This is the sample of the schedule.
The only ones that are truly important to know that are covered are the ones that are in the picture in the initial post.
May 23 2021 12:36 PM
The screenshot in your first post had numbers next to the legend keys.
May 23 2021 02:34 PM
SolutionSee the attached version.
May 24 2021 01:54 PM
It's worth to mention on which version of Excel you are. Most probably you need to use array formulas (Ctrl+Shift+Enter)
Anyway, @Hans Vogelaar formula shall work.
May 29 2021 09:21 AM