Improve Holiday Planner by using named ranges in an array?

mrbenn

New Member
Joined
Jul 9, 2014
Messages
14
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




2022 MALLUSK HOLIDAY PLANNER.xlsx
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAGAHAIAJAKALAMANAOAPAQARASATAUAVAWAXAYAZBABBBCBDBEBFBGBHBIBJBKBLBMBNBOBPBQBRBSBTBUBVBWBXBYBZCACBCCCDCECFCGCHCICJCKCLCMCNCOCPCQCRCSCTCUCVCWCXCYCZDADBDCDDDEDFDGDHDIDJDKDL
1Click on this row on the current month you are working on this shows the payroll month and not the calendar monthMALLUSK 2022JANUARYFEBRUARYMARCHAPRIL
2Employee nameStart/Leaver DateThursday 09 DecemberFriday 10 DecemberSaturday 11 DecemberMonday 13 DecemberTuesday 14 DecemberWednesday 15 DecemberThursday 16 DecemberFriday 17 DecemberSaturday 18 DecemberMonday 20 DecemberTuesday 21 DecemberWednesday 22 DecemberThursday 23 DecemberFriday 24 DecemberSaturday 25 DecemberMonday 27 DecemberTuesday 28 DecemberWednesday 29 DecemberThursday 30 DecemberFriday 31 DecemberSaturday 01 JanuaryMonday 03 JanuaryTuesday 04 JanuaryWednesday 05 JanuaryThursday 06 JanuaryFriday 07 JanuarySaturday 08 JanuaryMonday 10 JanuaryTuesday 11 JanuaryWednesday 12 JanuaryThursday 13 JanuaryFriday 14 JanuarySaturday 15 JanuaryMonday 17 JanuaryTuesday 18 JanuaryWednesday 19 JanuaryThursday 20 JanuaryFriday 21 JanuarySaturday 22 JanuaryMonday 24 JanuaryTuesday 25 JanuaryWednesday 26 JanuaryThursday 27 JanuaryFriday 28 JanuarySaturday 29 JanuaryMonday 31 JanuaryTuesday 01 FebruaryWednesday 02 FebruaryThursday 03 FebruaryFriday 04 FebruarySaturday 05 FebruaryMonday 07 FebruaryTuesday 08 FebruaryWednesday 09 FebruaryThursday 10 FebruaryFriday 11 FebruarySaturday 12 FebruaryMonday 14 FebruaryTuesday 15 FebruaryWednesday 16 FebruaryThursday 17 FebruaryFriday 18 FebruarySaturday 19 FebruaryMonday 21 FebruaryTuesday 22 FebruaryWednesday 23 FebruaryThursday 24 FebruaryFriday 25 FebruarySaturday 26 FebruaryMonday 28 FebruaryTuesday 01 MarchWednesday 02 MarchThursday 03 MarchFriday 04 MarchSaturday 05 MarchMonday 07 MarchTuesday 08 MarchWednesday 09 MarchThursday 10 MarchFriday 11 MarchSaturday 12 MarchMonday 14 MarchTuesday 15 MarchWednesday 16 MarchThursday 17 MarchFriday 18 MarchSaturday 19 MarchMonday 21 MarchTuesday 22 MarchWednesday 23 MarchThursday 24 MarchFriday 25 MarchSaturday 26 MarchMonday 28 MarchTuesday 29 MarchWednesday 30 MarchThursday 31 MarchFriday 01 AprilSaturday 02 AprilMonday 04 AprilTuesday 05 AprilWednesday 06 AprilThursday 07 AprilFriday 08 AprilSaturday 09 AprilMonday 11 AprilTuesday 12 AprilWednesday 13 AprilThursday 14 AprilFriday 15 AprilSaturday 16 AprilMonday 18 AprilTuesday 19 AprilWednesday 20 April
3TONY MCMASTER4Holiday1/2 HolidayBank HolidayBank HolidayHolidayHolidayHolidayBank HolidayHolidayHolidaySickSickSickSickSick443464Holiday4Bank HolidayBank Holiday
4WILLIE FINLAY41/2 Bank HolidayBank HolidayBank HolidayBank Holiday444Holiday4434Holiday644Bank HolidayBank Holiday
5STAN WATTERS4Holiday1/2 Bank HolidayBank HolidayBank HolidayBank Holiday4424444444Bank HolidayBank Holiday
6JIM MAXWELL41/2 Bank HolidayBank HolidayBank HolidayBank Holiday4Holiday4HolidayHoliday4444Bank HolidayBank Holiday
7STEPHEN BLAIR1/2 HolidayBank HolidayBank HolidayBank Holiday4Bank HolidayBank Holiday
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
2022 CALENDAR
Cell Formulas
RangeFormula
D2:DL2D2=IF(WEEKDAY(C2+1)=1,C2+2,C2+1)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
DK3:DK7Cell Value="OTHER"textNO
DK3:DK7Cell Valuecontains "S"textNO
DK3:DK7Cell Valuecontains "H"textNO
DJ3:DJ7Cell Value="OTHER"textNO
DJ3:DJ7Cell Valuecontains "S"textNO
DJ3:DJ7Cell Valuecontains "H"textNO
E3:MA9Expression=OR(WEEKDAY(E$2)=7,WEEKDAY(E$2)=1)textNO
E7:N7,V8:V9,S7:AA7Cell Value="OTHER"textNO
E7:N7,V8:V9,S7:AA7Cell Valuecontains "S"textNO
E7:N7,V8:V9,S7:AA7Cell Valuecontains "H"textNO
E3:AA3,V4:V9,E4:N6,S4:AA6,G5:G9,O4:R9,S3:S7,X3:X7Cell Value="OTHER"textNO
E3:AA3,V4:V9,E4:N6,S4:AA6,G5:G9,O4:R9,S3:S7,X3:X7Cell Valuecontains "S"textNO
E3:AA3,V4:V9,E4:N6,S4:AA6,G5:G9,O4:R9,S3:S7,X3:X7Cell Valuecontains "H"textNO
E8:N9,S8:U9,AB3:GX7,W8:GX9,GY3:LW9Cell Value="OTHER"textNO
E8:N9,S8:U9,AB3:GX7,W8:GX9,GY3:LW9Cell Valuecontains "S"textNO
E8:N9,S8:U9,AB3:GX7,W8:GX9,GY3:LW9Cell Valuecontains "H"textNO
Cells with Data Validation
CellAllowCriteria
A18Any value
A20:A25Any value
A9:A16Any value
A3:A7Any value
B1Any value
C10:DL25List='Team Annual Leave'!$B$11:$B$28
E3:DL9List='Team Annual Leave'!$B$11:$B$28





2022 MALLUSK HOLIDAY PLANNER.xlsx
ABCDEFGHIK
58BRANCH/DEPTMALLUSK 2022
59DATES OF PERIOD24TH MARCH TO 20TH APRILMONTHAPRIL
60Deductions (Day)Overtime (Hrs)Leave (Day)Dates/Details of any deductionsAnnual Leave dates (applicable if sick dates)
61Employee NameStart/Leaver DateSickOtherOTAnnual Leave
62TONY MCMASTER0081
63WILLIE FINLAY0080
64STAN WATTERS0080
65JIM MAXWELL0080
66STEPHEN BLAIR0040
67
68
69
MONTHLY PAYROLL SHEETS
Cell Formulas
RangeFormula
B58B58='2022 CALENDAR'!$B$1
C62C62=COUNTIF('2022 CALENDAR'!$CO$3:$DL$3,"SICK")+COUNTIF('2022 CALENDAR'!$CO$3:$DL$3,"1/2 SICK")/2
D62D62=COUNTIF('2022 CALENDAR'!$CO$3:$DL$3,"Other - Unpaid give details")
E62E62=SUM('2022 CALENDAR'!$CO$3:$DL$3)
F62F62=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
C63C63=COUNTIF('2022 CALENDAR'!$CO$4:$DL$4,"SICK")+COUNTIF('2022 CALENDAR'!$CO$4:$DL$4,"1/2 SICK")/2
D63D63=COUNTIF('2022 CALENDAR'!$CO$4:$DL$4,"Other - Unpaid give details")
E63E63=SUM('2022 CALENDAR'!$CO$4:$DL$4)
F63F63=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
C64C64=COUNTIF('2022 CALENDAR'!$CO$5:$DL$5,"SICK")+COUNTIF('2022 CALENDAR'!$CO$5:$DL$5,"1/2 SICK")/2
D64D64=COUNTIF('2022 CALENDAR'!$CO$5:$DL$5,"Other - Unpaid give details")
E64E64=SUM('2022 CALENDAR'!$CO$5:$DL$5)
F64F64=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
C65C65=COUNTIF('2022 CALENDAR'!$CO$6:$DL$6,"SICK")+COUNTIF('2022 CALENDAR'!$CO$6:$DL$6,"1/2 SICK")/2
D65D65=COUNTIF('2022 CALENDAR'!$CO$6:$DL$6,"Other - Unpaid give details")
E65E65=SUM('2022 CALENDAR'!$CO$6:$DL$6)
F65F65=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
C66C66=COUNTIF('2022 CALENDAR'!$CO$7:$DL$7,"SICK")+COUNTIF('2022 CALENDAR'!$CO$7:$DL$7,"1/2 SICK")/2
D66D66=COUNTIF('2022 CALENDAR'!$CO$7:$DL$7,"Other - Unpaid give details")
E66E66=SUM('2022 CALENDAR'!$CO$7:$DL$7)
F66F66=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
A62A62='2022 CALENDAR'!$A$3
A63A63='2022 CALENDAR'!$A$4
A64A64='2022 CALENDAR'!$A$5
A65A65='2022 CALENDAR'!$A$6
A66A66='2022 CALENDAR'!$A$7
A67A67='2022 CALENDAR'!$A$8
A68A68='2022 CALENDAR'!$A$9
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN

Forum statistics

Threads
1,224,813
Messages
6,181,115
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top