Edited for clarity and typos
See if this gets us close.
In order to compute and factor the days off this uses a helper column in Q2:Q11. There is a named range
DaysOfWk in S2:S8. Drop downs in O2:P11 are defined off that range. This formula in Q2:Q11 defines the days off string for NETWORKDAYS.INTL.Column R is the number of days worked in that period.
Row\Col |
O |
P |
Q |
R |
S |
1 |
Days off |
Days off |
|
|
|
2 |
Mon |
Tue |
1100000 |
15 |
Mon |
3 |
Tue |
Wed |
0110000 |
13 |
Tue |
4 |
Wed |
Thu |
0011000 |
14 |
Wed |
5 |
Thu |
Fri |
0001100 |
14 |
Thu |
6 |
Fri |
Sat |
0000110 |
16 |
Fri |
7 |
Sat |
Sun |
0000011 |
16 |
Sat |
8 |
Sun |
Mon |
1000001 |
16 |
Sun |
9 |
Mon |
Tue |
1100000 |
16 |
|
10 |
Tue |
Wed |
0110000 |
16 |
|
11 |
Wed |
Thu |
0011000 |
16 |
|
Then I made a copy of the original Sheet1. I filled in the blanks under ‘Trainer Availability’ to make this
formula easier to write. It is array-entered in C4 filled down and across to DR27. If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.
Then Conditionally Format as before. I only conditionally formatted Trainer 1-3, and left the rest as 1s and 0s.
Bookmarks