Hi Everyone
I wonder if anyone can help me with this. I'm trying to create a schedule which auto populates cells based on a "Start Time" cell. The idea is that for multiple running shows, I can see what time the overlaps are at a glance.
Though it seems to work, I'm not sure if the method I've used is the easiest way to do this or if anyone can suggest a better way?
The main challenge I'm facing is that depending on the start times, the shows may run in to the next day (e.g. a show that starts at 22:00 and lasts 5 hours doesn't finish until 03:00 the next day) and I'd like the cells to populate to reflect that. However, I don't want to have the days running across consecutively, I'd like be displayed as they are in the example below so I can see the full week. Can anyone suggest how I could incorporate this into the formula?
I wonder if anyone can help me with this. I'm trying to create a schedule which auto populates cells based on a "Start Time" cell. The idea is that for multiple running shows, I can see what time the overlaps are at a glance.
Though it seems to work, I'm not sure if the method I've used is the easiest way to do this or if anyone can suggest a better way?
The main challenge I'm facing is that depending on the start times, the shows may run in to the next day (e.g. a show that starts at 22:00 and lasts 5 hours doesn't finish until 03:00 the next day) and I'd like the cells to populate to reflect that. However, I don't want to have the days running across consecutively, I'd like be displayed as they are in the example below so I can see the full week. Can anyone suggest how I could incorporate this into the formula?
Book1 | |||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | AA | AB | AC | ||||
1 | Wed | 14/09/2022 | Start time | Length (hrs) | 00:00 | 01:00 | 02:00 | 03:00 | 04:00 | 05:00 | 06:00 | 07:00 | 08:00 | 09:00 | 10:00 | 11:00 | 12:00 | 13:00 | 14:00 | 15:00 | 16:00 | 17:00 | 18:00 | 19:00 | 20:00 | 21:00 | 22:00 | 23:00 | |||
2 | Show 1 | 04:00 | 5 | -1 | -1 | -1 | -1 | 1 | 1 | 1 | 1 | 1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | ||||
3 | Show 2 | 01:00 | 4 | -1 | 1 | 1 | 1 | 1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | ||||
4 | Show 3 | 07:00 | 5 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | 1 | 1 | 1 | 1 | 1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | ||||
5 | Show 4 | 04:00 | 3 | -1 | -1 | -1 | -1 | 1 | 1 | 1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | ||||
6 | |||||||||||||||||||||||||||||||
7 | Thu | 15/09/2022 | Start time | Length (hrs) | 00:00 | 01:00 | 02:00 | 03:00 | 04:00 | 05:00 | 06:00 | 07:00 | 08:00 | 09:00 | 10:00 | 11:00 | 12:00 | 13:00 | 14:00 | 15:00 | 16:00 | 17:00 | 18:00 | 19:00 | 20:00 | 21:00 | 22:00 | 23:00 | |||
8 | Show 1 | 14:00 | 8 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | -1 | -1 | ||||
9 | Show 2 | 01:00 | 4 | -1 | 1 | 1 | 1 | 1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | ||||
10 | Show 3 | 05:00 | 5 | -1 | -1 | -1 | -1 | -1 | 1 | 1 | 1 | 1 | 1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | ||||
11 | Show 4 | 03:00 | 3 | -1 | -1 | -1 | 1 | 1 | 1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | ||||
12 | |||||||||||||||||||||||||||||||
13 | |||||||||||||||||||||||||||||||
14 | |||||||||||||||||||||||||||||||
Schedule |
Cell Formulas | ||
---|---|---|
Range | Formula | |
A1,A7 | A1 | =TEXT(B1,"ddd") |
F2:F5 | F2 | =IF($F$1=$C2,1,-1) |
G2:G5 | G2 | =IF($G$1=$C2,1,IF(COUNTIF($F2:F2,F2)<$E2,F2,-1)) |
H2:H5 | H2 | =IF($H$1=$C2,1,IF(COUNTIF($F2:G2,G2)<$E2,G2,-1)) |
I2:I5 | I2 | =IF($I$1=$C2,1,IF(COUNTIF($F2:H2,H2)<$E2,H2,-1)) |
J2:J5 | J2 | =IF($J$1=$C2,1,IF(COUNTIF($F2:I2,I2)<$E2,I2,-1)) |
K2:K5 | K2 | =IF($K$1=$C2,1,IF(COUNTIF($F2:J2,J2)<$E2,J2,-1)) |
L2:L5 | L2 | =IF($L$1=$C2,1,IF(COUNTIF($F2:K2,K2)<$E2,K2,-1)) |
M2:M5 | M2 | =IF($M$1=$C2,1,IF(COUNTIF($F2:L2,L2)<$E2,L2,-1)) |
N2:N5 | N2 | =IF($N$1=$C2,1,IF(COUNTIF($F2:M2,M2)<$E2,M2,-1)) |
O2:O5 | O2 | =IF($O$1=$C2,1,IF(COUNTIF($F2:N2,N2)<$E2,N2,-1)) |
P2:P5 | P2 | =IF($P$1=$C2,1,IF(COUNTIF($F2:O2,O2)<$E2,O2,-1)) |
Q2:Q5 | Q2 | =IF($Q$1=$C2,1,IF(COUNTIF($F2:P2,P2)<$E2,P2,-1)) |
R2:R5 | R2 | =IF($R$1=$C2,1,IF(COUNTIF($F2:Q2,Q2)<$E2,Q2,-1)) |
S2:S5 | S2 | =IF($S$1=$C2,1,IF(COUNTIF($F2:R2,R2)<$E2,R2,-1)) |
T2:T5 | T2 | =IF($T$1=$C2,1,IF(COUNTIF($F2:S2,S2)<$E2,S2,-1)) |
U2:U5 | U2 | =IF($U$1=$C2,1,IF(COUNTIF($F2:T2,T2)<$E2,T2,-1)) |
V2:V5 | V2 | =IF($V$1=$C2,1,IF(COUNTIF($F2:U2,U2)<$E2,U2,-1)) |
W2:W5 | W2 | =IF($W$1=$C2,1,IF(COUNTIF($F2:V2,V2)<$E2,V2,-1)) |
X2:X5 | X2 | =IF($X$1=$C2,1,IF(COUNTIF($F2:W2,W2)<$E2,W2,-1)) |
Y2:Y5 | Y2 | =IF($Y$1=$C2,1,IF(COUNTIF($F2:X2,X2)<$E2,X2,-1)) |
Z2:Z5 | Z2 | =IF($Z$1=$C2,1,IF(COUNTIF($F2:Y2,Y2)<$E2,Y2,-1)) |
AA2:AA5 | AA2 | =IF($AA$1=$C2,1,IF(COUNTIF($F2:Z2,Z2)<$E2,Z2,-1)) |
AB2:AB5 | AB2 | =IF($AB$1=$C2,1,IF(COUNTIF($F2:AA2,AA2)<$E2,AA2,-1)) |
AC2:AC5 | AC2 | =IF($AC$1=$C2,1,IF(COUNTIF($F2:AB2,AB2)<$E2,AB2,-1)) |
B7 | B7 | =B1+1 |
F8:F11 | F8 | =IF($F$7=C8,1,-1) |
G8:G10 | G8 | =IF($G$7=$C8,1,IF(COUNTIF($F8:F8,F8)<$E8,F8,-1)) |
H8:AC8 | H8 | =IF(H7=$C8,1,IF(COUNTIF($F8:G8,G8)<$E8,G8,-1)) |
H9:AC9 | H9 | =IF(H7=$C9,1,IF(COUNTIF($F9:G9,G9)<$E9,G9,-1)) |
H10:AC10 | H10 | =IF(H7=$C10,1,IF(COUNTIF($F10:G10,G10)<$E10,G10,-1)) |
G11:AC11 | G11 | =IF(G7=$C11,1,IF(COUNTIF($F11:F11,F11)<$E11,F11,-1)) |
Cells with Conditional Formatting | ||||
---|---|---|---|---|
Cell | Condition | Cell Format | Stop If True | |
F8:AC11 | Cell Value | =1 | text | NO |
F8:AC11 | Cell Value | =-1 | text | NO |
F2:AC5 | Cell Value | =1 | text | NO |
F2:AC5 | Cell Value | =-1 | text | NO |
Cells with Data Validation | ||
---|---|---|
Cell | Allow | Criteria |
C2:C5 | List | =$AE$2:$AE$25 |
C8:C11 | List | =$AE$2:$AE$25 |