Hey all,
Never really been one to understand VLOOKUP in this much detail, but need some help figuring out how to make this work. I have attached a screen shot with what I am kind of hoping to achieve. (also figured out XL2BB so there is a minisheet attached.
I am working on a digital roster, and this requires a daily sheet to be generated with who is working what shift.
In cell V7, is a data validation table with the 14 days of the roster from range G2:T2. When each date is selected I would like the shift names in column V, 0530PB,0530PL/S etc etc to have the name of whoever is rostered that shift to be entered next to the shift in column Y.
This is further complicated by the fact that there may, be a staff member in C9,C14,C19 etc etc who is being covered. Therefore if there is data in the cell below, would prefer if it if the name from the cell below is entered instead.
Hopefully this makes sense, what I am trying to achieve. Let me know if you have any questions.
Thanks for your help!
Hayden
Never really been one to understand VLOOKUP in this much detail, but need some help figuring out how to make this work. I have attached a screen shot with what I am kind of hoping to achieve. (also figured out XL2BB so there is a minisheet attached.
I am working on a digital roster, and this requires a daily sheet to be generated with who is working what shift.
In cell V7, is a data validation table with the 14 days of the roster from range G2:T2. When each date is selected I would like the shift names in column V, 0530PB,0530PL/S etc etc to have the name of whoever is rostered that shift to be entered next to the shift in column Y.
This is further complicated by the fact that there may, be a staff member in C9,C14,C19 etc etc who is being covered. Therefore if there is data in the cell below, would prefer if it if the name from the cell below is entered instead.
Hopefully this makes sense, what I am trying to achieve. Let me know if you have any questions.
Thanks for your help!
Hayden
DIGITAL ROSTER PROJECT 2024 (latest).xlsm | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | AA | AB | |||
1 | FORTNIGHT COMMENCING | PUBLISHED | SUNDAY | MONDAY | TUESDAY | WEDNESDAY | THURSDAY | FRIDAY | SATURDAY | SUNDAY | MONDAY | TUESDAY | WEDNESDAY | THURSDAY | FRIDAY | SATURDAY | ||||||||||||||
2 | 2-Jun | 3-Jun | 4-Jun | 5-Jun | 6-Jun | 7-Jun | 8-Jun | 9-Jun | 10-Jun | 11-Jun | 12-Jun | 13-Jun | 14-Jun | 15-Jun | ||||||||||||||||
3 | 02-June-2024 | DAO Name | Open Shifts | Open Shifts | Open Shifts | Open Shifts | Open Shifts | Open Shifts | Open Shifts | Open Shifts | Open Shifts | Open Shifts | Open Shifts | Open Shifts | Open Shifts | Open Shifts | ||||||||||||||
4 | #NAME? | #NAME? | #NAME? | #NAME? | #NAME? | #NAME? | #NAME? | #VALUE! | #NAME? | #NAME? | #VALUE! | #VALUE! | #VALUE! | #VALUE! | ||||||||||||||||
5 | ||||||||||||||||||||||||||||||
6 | ||||||||||||||||||||||||||||||
7 | Sunday, 2 June 2024 | |||||||||||||||||||||||||||||
8 | ||||||||||||||||||||||||||||||
9 | Line 1 | Rostered DAO | FEEGRADO. R | 9 | Shift | OFF | 1330BC | 1330PB | 1330CFD | 1330PL/S | EDO | OFF | OFF | 1330BC | 1330PB | 1330CFD | 1330PL/S | 1330NRN | OFF | |||||||||||
10 | Extension Pre | 0530PB | ||||||||||||||||||||||||||||
11 | Covered by DAO | Rostered Times | 13:30 | 13:30 | 13:30 | 13:30 | 13:30 | 13:30 | 13:30 | 13:30 | 13:30 | 0530PL/S | ||||||||||||||||||
12 | Remarks | 21:45 | 21:45 | 21:45 | 21:45 | 21:45 | 21:45 | 21:45 | 21:45 | 21:45 | 0530CFD | |||||||||||||||||||
13 | Leave | Extension Post | 0530NRN | |||||||||||||||||||||||||||
14 | Line 2 | Rostered DAO | RAUF. F | 10 | Shift | 0530NCC | 0530PL/S | OFF | OFF | 0530NRN | 0530BC | 0530PB | 0530NCC | 0530PL/S | OFF | OFF | 0530CFD | 0530PL/S | 0530BC | 0530NCC | ||||||||||
15 | Extension Pre | 0530BC | ||||||||||||||||||||||||||||
16 | Covered by DAO | Rostered Times | 5:30 | 5:30 | 5:30 | 5:30 | 5:30 | 5:30 | 5:30 | 5:30 | 5:30 | 5:30 | ||||||||||||||||||
17 | Remarks | 13:45 | 13:45 | 13:45 | 13:45 | 13:45 | 13:45 | 13:45 | 13:45 | 13:45 | 13:45 | 1330PB | ||||||||||||||||||
18 | Leave | Extension Post | 1330PL/S | |||||||||||||||||||||||||||
19 | Line 3 | Rostered DAO | SALEH. M | 9 | Shift | 2130PL/S | 2130BC | OFF | OFF | OFF | 2130PB | 2130NCC | 2130PL/S | 2130BC | 2130PB | EDO | OFF | 2130PL/S | 2130BC | 1330CFD | ||||||||||
20 | Extension Pre | 1330NRN | ||||||||||||||||||||||||||||
21 | Covered by DAO | Rostered Times | 21:30 | 21:30 | 21:30 | 21:30 | 21:30 | 21:30 | 21:30 | 21:30 | 21:30 | 1330NCC | ||||||||||||||||||
22 | Remarks | 5:45 | 5:45 | 5:45 | 5:45 | 5:45 | 5:45 | 5:45 | 5:45 | 5:45 | 1330BC | |||||||||||||||||||
23 | Leave | Extension Post | ||||||||||||||||||||||||||||
24 | Line 4 | Rostered DAO | RUBERTO. R | 10 | Shift | OFF | OFF | 1330CFD | 1330PL/S | 1330NRN | 1330BC | 1330PB | 1330NCC | 1330PL/S | OFF | OFF | 1330NRN | 1330BC | 1330PB | 2130PB | ||||||||||
25 | Extension Pre | 2130PL/S | ||||||||||||||||||||||||||||
26 | Covered by DAO | Rostered Times | 13:30 | 13:30 | 13:30 | 13:30 | 13:30 | 13:30 | 13:30 | 13:30 | 13:30 | 13:30 | 2130NCC | |||||||||||||||||
27 | Remarks | 21:45 | 21:45 | 21:45 | 21:45 | 21:45 | 21:45 | 21:45 | 21:45 | 21:45 | 21:45 | 2130BC | ||||||||||||||||||
28 | Leave | Extension Post | ||||||||||||||||||||||||||||
29 | Line 5 | Rostered DAO | MEACLEM. H | 9 | Shift | OFF | OFF | 2130PL/S | 2130BC | 2130PB | 2130NCC | 2130PL/S | OFF | 2130PL/S | 2130BC | 2130PB | 2130NCC | EDO | OFF | |||||||||||
30 | Extension Pre | |||||||||||||||||||||||||||||
31 | Covered by DAO | Rostered Times | 21:30 | 21:30 | 21:30 | 21:30 | 21:30 | 21:30 | 21:30 | 21:30 | 21:30 | |||||||||||||||||||
32 | Remarks | 5:45 | 5:45 | 5:45 | 5:45 | 5:45 | 5:45 | 5:45 | 5:45 | 5:45 | ||||||||||||||||||||
33 | Leave | Extension Post | ||||||||||||||||||||||||||||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
G2 | G2 | =IF(A3="","",A3) |
H2:T2 | H2 | =IF(G2="","",G2+1) |
G4,T4,M4:N4 | G4 | =_xlfn._xlws.FILTER(DATA!$AF$2:$AF$13,NOT(COUNTIF(G9:G108,DATA!$AF$2:$AF$13))) |
O4:S4,H4:L4 | H4 | =_xlfn._xlws.FILTER(DATA!$AG$2:$AG$15,NOT(COUNTIF(H9:H108,DATA!$AG$2:$AG$15))) |
C9,C29,C24,C19,C14 | C9 | =IF($A$3="","",VLOOKUP(CONCATENATE(VALUE($A$3),$A9),DATA!$C$2:$D$1567,2,0)) |
G31:T31,G26:T26,G21:T21,G16:T16,G11:T11 | G11 | =VLOOKUP(G9,DATA!$Z$3:$AB$38,2,FALSE) |
G32:T32,G27:T27,G22:T22,G17:T17,G12:T12 | G12 | =VLOOKUP(G9,DATA!$Z$3:$AB$38,3,FALSE) |
E9,E29,E24,E19,E14 | E9 | =COUNTIF(G9:T9,"*30*") |
Press CTRL+SHIFT+ENTER to enter array formulas. |
Cells with Conditional Formatting | ||||
---|---|---|---|---|
Cell | Condition | Cell Format | Stop If True | |
N9:O9 | Cell Value | duplicates | text | NO |
G10:T10,G13:T13,G15:T15,G18:T18,G20:T20,G23:T23,G25:T25,G28:T28,G30:T30,G33:T33,G35:T35,G38:T38,G40:T40,G43:T43,G45:T45,G48:T48,G50:T50,G53:T53,G55:T55,G58:T58,G60:T60,G63:T63,G65:T65,G68:T68,G70:T70,G73:T73,G75:T75,G78:T78,G80:T80,G83:T83,G85:T85,G88:T88 | Cell Value | ending with "?" | text | NO |
G30:T33 | Expression | =OR(G$29="PHC",G$29="LSL",G$29="A/L",G$29="B/OFF",G$29="B/EDO") | text | NO |
G25:T28 | Expression | =OR(G$24="PHC",G$24="LSL",G$24="A/L",G$24="B/OFF",G$24="B/EDO") | text | NO |
G20:T23 | Expression | =OR(G$19="PHC",G$19="LSL",G$19="A/L",G$19="B/OFF",G$19="B/EDO") | text | NO |
G15:T18 | Expression | =OR(G$14="PHC",G$14="LSL",G$14="A/L",G$14="B/OFF",G$14="B/EDO") | text | NO |
G10:T13 | Expression | =OR(G$9="PHC",G$9="LSL",G$9="A/L",G$9="B/OFF",G$9="B/EDO") | text | NO |
G29:T33 | Expression | =OR(G$29="SDO",G$29="STFN",G$29="CDO",G$29="CTFN") | text | NO |
G24:T28 | Expression | =OR(G$24="SDO",G$24="STFN",G$24="CDO",G$24="CTFN") | text | NO |
G19:T23 | Expression | =OR(G$19="SDO",G$19="STFN",G$19="CDO",G$19="CTFN") | text | NO |
G14:P18,Q14:T14 | Expression | =OR(G$14="SDO",G$14="STFN",G$14="CDO",G$14="CTFN") | text | NO |
Q9:T9,G9:P13 | Expression | =OR(G$9="SDO",G$9="STFN",G$9="CDO",G$9="CTFN") | text | NO |
H16:T16 | Expression | =TIME(HOUR(H16),MINUTE(H16),0)+TIME(12,0,0)<TIME(HOUR(G17),MINUTE(G17),0) | text | NO |
H16:T16 | Expression | =AND(TIME(HOUR(G17),MINUTE(G17),0)<TIME(7,0,0),TIME(HOUR(G17),MINUTE(G17),0)+TIME(12,0,0)>TIME(HOUR(H16),MINUTE(H16),0)) | text | NO |
H31:T31 | Expression | =TIME(HOUR(H31),MINUTE(H31),0)+TIME(12,0,0)<TIME(HOUR(G32),MINUTE(G32),0) | text | NO |
H31:T31 | Expression | =AND(TIME(HOUR(G32),MINUTE(G32),0)<TIME(7,0,0),TIME(HOUR(G32),MINUTE(G32),0)+TIME(12,0,0)>TIME(HOUR(H31),MINUTE(H31),0)) | text | NO |
H26:T26 | Expression | =TIME(HOUR(H26),MINUTE(H26),0)+TIME(12,0,0)<TIME(HOUR(G27),MINUTE(G27),0) | text | NO |
H26:T26 | Expression | =AND(TIME(HOUR(G27),MINUTE(G27),0)<TIME(7,0,0),TIME(HOUR(G27),MINUTE(G27),0)+TIME(12,0,0)>TIME(HOUR(H26),MINUTE(H26),0)) | text | NO |
H21:T21 | Expression | =TIME(HOUR(H21),MINUTE(H21),0)+TIME(12,0,0)<TIME(HOUR(G22),MINUTE(G22),0) | text | NO |
H21:T21 | Expression | =AND(TIME(HOUR(G22),MINUTE(G22),0)<TIME(7,0,0),TIME(HOUR(G22),MINUTE(G22),0)+TIME(12,0,0)>TIME(HOUR(H21),MINUTE(H21),0)) | text | NO |
G15:T15,G18:T18 | Cell | contains a blank value | text | NO |
H16:T16 | Expression | =TIME(HOUR(H16),MINUTE(H16),0)+TIME(12,0,0)<TIME(HOUR(G17),MINUTE(G17),0) | text | NO |
H16:T16 | Expression | =AND(TIME(HOUR(G17),MINUTE(G17),0)<TIME(7,0,0),TIME(HOUR(G17),MINUTE(G17),0)+TIME(12,0,0)>TIME(HOUR(H16),MINUTE(H16),0)) | text | NO |
H11:T11 | Expression | =TIME(HOUR(H11),MINUTE(H11),0)+TIME(12,0,0)<TIME(HOUR(G12),MINUTE(G12),0) | text | NO |
H11:T11 | Expression | =AND(TIME(HOUR(G12),MINUTE(G12),0)<TIME(7,0,0),TIME(HOUR(G12),MINUTE(G12),0)+TIME(12,0,0)>TIME(HOUR(H11),MINUTE(H11),0)) | text | NO |
G4:T4 | Cell | contains an error | text | NO |
C29 | Expression | =IF(C31<>"",TRUE) | text | NO |
C24 | Expression | =IF(C26<>"",TRUE) | text | NO |
C19 | Expression | =IF(C21<>"",TRUE) | text | NO |
C14 | Expression | =IF(C16<>"",TRUE) | text | NO |
G32:T32 | Expression | =IF(G$33<>"",TRUE) | text | NO |
G31:T31 | Expression | =IF(G$30<>"",TRUE) | text | NO |
G27:T27 | Expression | =IF(G$28<>"",TRUE) | text | NO |
G26:T26 | Expression | =IF(G$25<>"",TRUE) | text | NO |
G22:T22 | Expression | =IF(G$23<>"",TRUE) | text | NO |
G21:T21 | Expression | =IF(G$20<>"",TRUE) | text | NO |
G12:T12 | Expression | =IF(G$13<>"",TRUE) | text | NO |
G11:T11 | Expression | =IF(G$10<>"",TRUE) | text | NO |
G17:T17 | Expression | =IF(G$18<>"",TRUE) | text | NO |
G16:T16 | Expression | =IF(G$15<>"",TRUE) | text | NO |
G9:T108 | Cell Value | contains "EDO" | text | NO |
G9:T108 | Cell Value | contains "OFF" | text | NO |
C1 | Cell Value | contains "UNPUBLISHED" | text | NO |
C1 | Cell Value | contains "PUBLISHED" | text | NO |
C9 | Expression | =IF(C11<>"",TRUE) | text | NO |
G10:T10,G13:T13 | Cell | contains a blank value | text | NO |
Q15:T18 | Expression | =OR(Q$14="SDO",Q$14="STFN",Q$14="CDO",Q$14="CTFN") | text | NO |
Q10:T13 | Expression | =OR(Q$9="SDO",Q$9="STFN",Q$9="CDO",Q$9="CTFN") | text | NO |
G10:T10,G13:T13,G15:T15,G18:T18,G20:T20,G23:T23,G25:T25,G28:T28,G30:T30,G33:T33,G35:T35,G38:T38,G40:T40,G43:T43,G45:T45,G48:T48,G50:T50,G53:T53,G55:T55,G58:T58,G60:T60,G63:T63,G65:T65,G68:T68,G70:T70,G73:T73,G75:T75,G78:T78,G80:T80,G83:T83,G85:T85,G88:T88 | Cell | does not contain a blank value | text | NO |
Cells with Data Validation | ||
---|---|---|
Cell | Allow | Criteria |
V7:AA8 | List | =$G$2:$T$2 |
C13 | List | =DATA!$X$3:$X$8 |
C33 | List | =DATA!$X$3:$X$8 |
C28 | List | =DATA!$X$3:$X$8 |
C23 | List | =DATA!$X$3:$X$8 |
C18 | List | =DATA!$X$3:$X$8 |
G19:T19 | List | =DATA!$Z$3:$Z$31 |
G24:T24 | List | =DATA!$Z$3:$Z$31 |
G29:T29 | List | =DATA!$Z$3:$Z$31 |
G14:T14 | List | =DATA!$Z$3:$Z$31 |
G9:T9 | List | =DATA!$Z$3:$Z$31 |
C1:E2 | List | =DATA!$AD$3:$AD$4 |
A3:B8 | List | =DATA!$T$3:$T$69 |
C11:D11 | List | =DATA!$V$3:$V$25 |
C16:D16 | List | =DATA!$V$3:$V$25 |
C21:D21 | List | =DATA!$V$3:$V$25 |
C26:D26 | List | =DATA!$V$3:$V$25 |
C31:D31 | List | =DATA!$V$3:$V$25 |