I have a holiday planner to work with - not mine originally but the job do not want to make any significant changes (all "used to this one")
In the range I have pasted below there are "Months" defined by merged cells. In the second xl2bb paste is the section that shows the formulas being used to lookup. In the event that they year changes or another person is added the formulas need re-examined or re-done completely. My idea is to have named ranges so that the formula can refer to the name and the named range and it will do the calculations based on that. It would mean that all I would need to change would be the definition of the named range each time? I don't know if this is even possible but I would love an expert to have a look and give their opinion. I can upload the full spreadsheet to Onedrive etc if anyone needs
In the range I have pasted below there are "Months" defined by merged cells. In the second xl2bb paste is the section that shows the formulas being used to lookup. In the event that they year changes or another person is added the formulas need re-examined or re-done completely. My idea is to have named ranges so that the formula can refer to the name and the named range and it will do the calculations based on that. It would mean that all I would need to change would be the definition of the named range each time? I don't know if this is even possible but I would love an expert to have a look and give their opinion. I can upload the full spreadsheet to Onedrive etc if anyone needs
Cell Formulas | ||
---|---|---|
Range | Formula | |
D2:DL2 | D2 | =IF(WEEKDAY(C2+1)=1,C2+2,C2+1) |
Cells with Conditional Formatting | ||||
---|---|---|---|---|
Cell | Condition | Cell Format | Stop If True | |
DK3:DK7 | Cell Value | ="OTHER" | text | NO |
DK3:DK7 | Cell Value | contains "S" | text | NO |
DK3:DK7 | Cell Value | contains "H" | text | NO |
DJ3:DJ7 | Cell Value | ="OTHER" | text | NO |
DJ3:DJ7 | Cell Value | contains "S" | text | NO |
DJ3:DJ7 | Cell Value | contains "H" | text | NO |
E3:MA9 | Expression | =OR(WEEKDAY(E$2)=7,WEEKDAY(E$2)=1) | text | NO |
E7:N7,V8:V9,S7:AA7 | Cell Value | ="OTHER" | text | NO |
E7:N7,V8:V9,S7:AA7 | Cell Value | contains "S" | text | NO |
E7:N7,V8:V9,S7:AA7 | Cell Value | contains "H" | text | NO |
E3:AA3,V4:V9,E4:N6,S4:AA6,G5:G9,O4:R9,S3:S7,X3:X7 | Cell Value | ="OTHER" | text | NO |
E3:AA3,V4:V9,E4:N6,S4:AA6,G5:G9,O4:R9,S3:S7,X3:X7 | Cell Value | contains "S" | text | NO |
E3:AA3,V4:V9,E4:N6,S4:AA6,G5:G9,O4:R9,S3:S7,X3:X7 | Cell Value | contains "H" | text | NO |
E8:N9,S8:U9,AB3:GX7,W8:GX9,GY3:LW9 | Cell Value | ="OTHER" | text | NO |
E8:N9,S8:U9,AB3:GX7,W8:GX9,GY3:LW9 | Cell Value | contains "S" | text | NO |
E8:N9,S8:U9,AB3:GX7,W8:GX9,GY3:LW9 | Cell Value | contains "H" | text | NO |
Cells with Data Validation | ||
---|---|---|
Cell | Allow | Criteria |
A18 | Any value | |
A20:A25 | Any value | |
A9:A16 | Any value | |
A3:A7 | Any value | |
B1 | Any value | |
C10:DL25 | List | ='Team Annual Leave'!$B$11:$B$28 |
E3:DL9 | List | ='Team Annual Leave'!$B$11:$B$28 |
2022 MALLUSK HOLIDAY PLANNER.xlsx | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | K | ||||
58 | BRANCH/DEPT | MALLUSK 2022 | |||||||||||
59 | DATES OF PERIOD | 24TH MARCH TO 20TH APRIL | MONTH | APRIL | |||||||||
60 | Deductions (Day) | Overtime (Hrs) | Leave (Day) | Dates/Details of any deductions | Annual Leave dates (applicable if sick dates) | ||||||||
61 | Employee Name | Start/Leaver Date | Sick | Other | OT | Annual Leave | |||||||
62 | TONY MCMASTER | 0 | 0 | 8 | 1 | ||||||||
63 | WILLIE FINLAY | 0 | 0 | 8 | 0 | ||||||||
64 | STAN WATTERS | 0 | 0 | 8 | 0 | ||||||||
65 | JIM MAXWELL | 0 | 0 | 8 | 0 | ||||||||
66 | STEPHEN BLAIR | 0 | 0 | 4 | 0 | ||||||||
67 | |||||||||||||
68 | |||||||||||||
69 | |||||||||||||
MONTHLY PAYROLL SHEETS |
Cell Formulas | ||
---|---|---|
Range | Formula | |
B58 | B58 | ='2022 CALENDAR'!$B$1 |
C62 | C62 | =COUNTIF('2022 CALENDAR'!$CO$3:$DL$3,"SICK")+COUNTIF('2022 CALENDAR'!$CO$3:$DL$3,"1/2 SICK")/2 |
D62 | D62 | =COUNTIF('2022 CALENDAR'!$CO$3:$DL$3,"Other - Unpaid give details") |
E62 | E62 | =SUM('2022 CALENDAR'!$CO$3:$DL$3) |
F62 | F62 | =COUNTIF('2022 CALENDAR'!$CO$3:$DL$3,"Holiday")+COUNTIF('2022 CALENDAR'!$CO$3:$DL$3,"Unplanned Holiday")+COUNTIF('2022 CALENDAR'!$CO$3:$DL$3,"1/2 Holiday")/2 |
C63 | C63 | =COUNTIF('2022 CALENDAR'!$CO$4:$DL$4,"SICK")+COUNTIF('2022 CALENDAR'!$CO$4:$DL$4,"1/2 SICK")/2 |
D63 | D63 | =COUNTIF('2022 CALENDAR'!$CO$4:$DL$4,"Other - Unpaid give details") |
E63 | E63 | =SUM('2022 CALENDAR'!$CO$4:$DL$4) |
F63 | F63 | =COUNTIF('2022 CALENDAR'!$CO$4:$DL$4,"Holiday")+COUNTIF('2022 CALENDAR'!$CO$4:$DL$4,"Unplanned Holiday")+COUNTIF('2022 CALENDAR'!$CO$4:$DL$4,"1/2 Holiday")/2 |
C64 | C64 | =COUNTIF('2022 CALENDAR'!$CO$5:$DL$5,"SICK")+COUNTIF('2022 CALENDAR'!$CO$5:$DL$5,"1/2 SICK")/2 |
D64 | D64 | =COUNTIF('2022 CALENDAR'!$CO$5:$DL$5,"Other - Unpaid give details") |
E64 | E64 | =SUM('2022 CALENDAR'!$CO$5:$DL$5) |
F64 | F64 | =COUNTIF('2022 CALENDAR'!$CO$5:$DL$5,"Holiday")+COUNTIF('2022 CALENDAR'!$CO$5:$DL$5,"Unplanned Holiday")+COUNTIF('2022 CALENDAR'!$CO$5:$DL$5,"1/2 Holiday")/2 |
C65 | C65 | =COUNTIF('2022 CALENDAR'!$CO$6:$DL$6,"SICK")+COUNTIF('2022 CALENDAR'!$CO$6:$DL$6,"1/2 SICK")/2 |
D65 | D65 | =COUNTIF('2022 CALENDAR'!$CO$6:$DL$6,"Other - Unpaid give details") |
E65 | E65 | =SUM('2022 CALENDAR'!$CO$6:$DL$6) |
F65 | F65 | =COUNTIF('2022 CALENDAR'!$CO$6:$DL$6,"Holiday")+COUNTIF('2022 CALENDAR'!$CO$6:$DL$6,"Unplanned Holiday")+COUNTIF('2022 CALENDAR'!$CO$6:$DL$6,"1/2 Holiday")/2 |
C66 | C66 | =COUNTIF('2022 CALENDAR'!$CO$7:$DL$7,"SICK")+COUNTIF('2022 CALENDAR'!$CO$7:$DL$7,"1/2 SICK")/2 |
D66 | D66 | =COUNTIF('2022 CALENDAR'!$CO$7:$DL$7,"Other - Unpaid give details") |
E66 | E66 | =SUM('2022 CALENDAR'!$CO$7:$DL$7) |
F66 | F66 | =COUNTIF('2022 CALENDAR'!$CO$7:$DL$7,"Holiday")+COUNTIF('2022 CALENDAR'!$CO$7:$DL$7,"Unplanned Holiday")+COUNTIF('2022 CALENDAR'!$CO$7:$DL$7,"1/2 Holiday")/2 |
A62 | A62 | ='2022 CALENDAR'!$A$3 |
A63 | A63 | ='2022 CALENDAR'!$A$4 |
A64 | A64 | ='2022 CALENDAR'!$A$5 |
A65 | A65 | ='2022 CALENDAR'!$A$6 |
A66 | A66 | ='2022 CALENDAR'!$A$7 |
A67 | A67 | ='2022 CALENDAR'!$A$8 |
A68 | A68 | ='2022 CALENDAR'!$A$9 |