SOLVED

Creating a discrepancy for schedule

%3CLINGO-SUB%20id%3D%22lingo-sub-2377929%22%20slang%3D%22en-US%22%3ECreating%20a%20discrepancy%20for%20schedule%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2377929%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%20I%20am%20working%20on%20creating%20a%20user%20friendly%20schedule%20rotating%20schedule.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20trying%20to%20see%20how%20I%20can%20create%20a%20formula%20or%20a%20way%20to%20indicate%20when%20I%20am%20missing%20a%20%22rotation%22%3C%2FP%3E%3CP%3EFor%20example%2C%20in%20the%20following%20image.%20I%20am%20missing%20%22DU%22%20and%20%22C%22.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20way%20I%20can%20do%20this%3F%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Capture.PNG%22%20style%3D%22width%3A%20130px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F282841iA604E52513FDCB83%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Capture.PNG%22%20alt%3D%22Capture.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20numbers%20next%20to%20the%20Key%20is%20how%20many%20should%20be%20on%20the%20hour.%20I%20hope%20this%20makes%20sense.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20for%20all%20your%20help!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2377929%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2378056%22%20slang%3D%22en-US%22%3ERe%3A%20Creating%20a%20discrepancy%20for%20schedule%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2378056%22%20slang%3D%22en-US%22%3EI%20meant%20to%20take%20it%20off%20as%20an%20example.%20But%20in%20this%20case%20it%20would%20only%20be%20the%20DU%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2378075%22%20slang%3D%22en-US%22%3ERe%3A%20Creating%20a%20discrepancy%20for%20schedule%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2378075%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F684459%22%20target%3D%22_blank%22%3E%40mvargas%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWould%20it%20be%20possible%20to%20fill%20all%20the%20colored%20cells%20with%20the%20appropriate%20letter%3F%20Otherwise%2C%20you'd%20need%20complicated%20VBA%20code!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2378091%22%20slang%3D%22en-US%22%3ERe%3A%20Creating%20a%20discrepancy%20for%20schedule%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2378091%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F127945%22%20target%3D%22_blank%22%3E%40Hans%20Vogelaar%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENo%20because%20not%20every%20spot%20has%20to%20be%20filled%2C%20it%20is%20an%20hourly%20schedule.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2378122%22%20slang%3D%22en-US%22%3ERe%3A%20Creating%20a%20discrepancy%20for%20schedule%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2378122%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F684459%22%20target%3D%22_blank%22%3E%40mvargas%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20meant%20only%20the%20colored%20cells%2C%20for%20example%20RG%20not%20only%20in%20cell%20AL5%2C%20but%20also%20in%20AM5%20to%20AO5.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2378134%22%20slang%3D%22en-US%22%3ERe%3A%20Creating%20a%20discrepancy%20for%20schedule%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2378134%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F684459%22%20target%3D%22_blank%22%3E%40mvargas%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHere%20is%20an%20illustration%20of%20what%20I%20meant.%20The%20formula%20in%20AL29%2C%20confirmed%20with%20Ctrl%2BShift%2BEnter%2C%20is%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3DTEXTJOIN(%22%2C%22%2CTRUE%2CIF(AO21%3AAO26%2CAL21%3AAL26%2C%22%22))%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22S0440.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F282851i662E1F69454AA562%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22S0440.png%22%20alt%3D%22S0440.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%E2%80%83%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2378176%22%20slang%3D%22en-US%22%3ERe%3A%20Creating%20a%20discrepancy%20for%20schedule%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2378176%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F684459%22%20target%3D%22_blank%22%3E%40mvargas%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAs%20variant%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22image.png%22%20style%3D%22width%3A%20206px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F282858iEE87BE2D90FB6218%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22image.png%22%20alt%3D%22image.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3Ewith%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-excel%22%3E%3CCODE%3E%3DTEXTJOIN(%22%2C%20%22%2C1%2C%0A%20%20IF(COUNTIFS(AL%243%3AAO%2420%2CAL%2425%3AAL%2430)%26lt%3B%24AM%2425%3A%24AM%2430%2C%0A%20%20%20%20%20AL%2425%3AAL%2430%2C%0A%20%20%20%20%20%22%22))%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2378227%22%20slang%3D%22en-US%22%3ERe%3A%20Creating%20a%20discrepancy%20for%20schedule%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2378227%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F521%22%20target%3D%22_blank%22%3E%40Sergei%20Baklan%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20suspect%20that%20the%20coloring%20matters%2C%20and%20that%20the%20MP%20in%20AN8%20(with%20AN8%3AAO8%20colored)%20and%20in%20AL17%20(with%20AL17%3AAM17%20colored)%20count%20as%202%20*%200.5%20%3D%201%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2378280%22%20slang%3D%22en-US%22%3ERe%3A%20Creating%20a%20discrepancy%20for%20schedule%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2378280%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F127945%22%20target%3D%22_blank%22%3E%40Hans%20Vogelaar%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EOh%2C%20yes%2C%20I%20missed%20that%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2379342%22%20slang%3D%22en-US%22%3ERe%3A%20Creating%20a%20discrepancy%20for%20schedule%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2379342%22%20slang%3D%22en-US%22%3ENeither%20seemed%20to%20work%20when%20I%20applied%20it.%20Should%20I%20be%20applying%20something%20elsewhere%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2379345%22%20slang%3D%22en-US%22%3ERe%3A%20Creating%20a%20discrepancy%20for%20schedule%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2379345%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F684459%22%20target%3D%22_blank%22%3E%40mvargas%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIt%20might%20help%20if%20you%20attached%20a%20sample%20workbook%20without%20sensitive%2Fproprietary%20data.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2378055%22%20slang%3D%22en-US%22%3ERe%3A%20Creating%20a%20discrepancy%20for%20schedule%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2378055%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F684459%22%20target%3D%22_blank%22%3E%40mvargas%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWhy%20is%20C%20missing%3F%20It%20appears%20to%20be%20in%20row%204.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

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?Capture.PNG

 

The numbers next to the Key is how many should be on the hour. I hope this makes sense. 

 

Thanks for all your help!

16 Replies

@mvargas 

Why is C missing? It appears to be in row 4.

I meant to take it off as an example. But in this case it would only be the DU

@mvargas 

Would it be possible to fill all the colored cells with the appropriate letter? Otherwise, you'd need complicated VBA code!

@Hans Vogelaar 

No because not every spot has to be filled, it is an hourly schedule. 

 

@mvargas 

I meant only the colored cells, for example RG not only in cell AL5, but also in AM5 to AO5.

@mvargas 

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,""))

 

S0440.png

@mvargas 

As variant

image.png

with

=TEXTJOIN(", ",1,
  IF(COUNTIFS(AL$3:AO$20,AL$25:AL$30)<$AM$25:$AM$30,
     AL$25:AL$30,
     ""))

@Sergei Baklan 

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

@Hans Vogelaar 

Oh, yes, I missed that

Neither seemed to work when I applied it. Should I be applying something elsewhere?

@mvargas 

It might help if you attached a sample workbook without sensitive/proprietary data.

@Hans Vogelaar 

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. 

 

 

@mvargas 

The screenshot in your first post had numbers next to the legend keys.

best response confirmed by mvargas (Occasional Contributor)
Solution

@mvargas 

See the attached version.

@mvargas 

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.

Thank you for all your help! It worked!