Calendar Help

Liverlee

Board Regular
Joined
Nov 8, 2018
Messages
73
Office Version
  1. 2019
Platform
  1. Windows
On row 2 – I’d like to group all the cells for each month, January 2020, feb 2020, march 2020, I can’t click and drag as there are a different number of cells for each month, some consisting of 31 days, some 30, some 28 etc & for it be formatted as month and year.

Book1
BCDEFGHIJKLMNOPQRST
301/01/202002/01/202003/01/202004/01/202005/01/202006/01/202007/01/202008/01/202009/01/202010/01/202011/01/202012/01/202013/01/202014/01/202015/01/202016/01/2020
4NameTeam01/01/202002/01/202003/01/202004/01/202005/01/202006/01/202007/01/202008/01/202009/01/202010/01/202011/01/202012/01/202013/01/202014/01/202015/01/202016/01/2020
5joeTLT6Annual LeaveMeetingMeeting
6maryTLT2Annual LeaveAnnual Leave
7anneT2NWDNWD
8joanT2Annual LeaveAnnual LeaveAnnual Leave
9NicolaT2
10kellyATT2Annual LeaveAnnual Leave
11sandraATT2NWDNWD
12nikATT2Annual LeaveAnnual Leave
13maryTLT3Annual LeaveAnnual LeaveAnnual LeaveAnnual LeaveAnnual Leave
14sueT3
15maryT3
16paulT3Annual LeaveAnnual LeaveAnnual Leave
17jenT3
18steveT3Annual Leave
19gary TLT4NWDNWD
20martyT4
21sueT4Annual Leave
22emm T4
23eveT1Annual LeaveNWDAnnual LeaveNWD
24lisaT1
25 Team Total200870030112003232
261
27Group Totals - Number of Staff
28Team Leaders440220000011001122
29Team 120110010001000000
30dean70440020100001010
31mark60120000000002211
32gary 40100000001000010
33Admin Team330220000100000010
34Team Total 200770030102003231
Calendar
Cell Formulas
RangeFormula
F3:T4F3=E3+1
D25:T25D25=SUBTOTAL(103,D5:D$24)
C28C28=SUMPRODUCT(SUBTOTAL(3,OFFSET(C5:C24,ROW(C5:C24)-MIN(ROW(C5:C24)),,1)),ISNUMBER(SEARCH("TL",C5:C24))+0)
D28D28=SUMPRODUCT(SUBTOTAL(3,OFFSET(C5:C25,ROW(C5:C25)-MIN(ROW(C5:C25)),,1)),ISNUMBER(SEARCH("TL",C5:C25))+0)
E28:T28E28=COUNTIFS($C$5:$C$24,"TL",E$5:E$24,"annual Leave")+COUNTIFS($C$5:$C$24,"TL",E$5:E$24,"NWD")+COUNTIFS($C$5:$C$24,"TL",E$5:E$24,"MEETING")+COUNTIFS($C$5:$C$24,"TL",E$5:E$24,"TRAINING")+COUNTIFS($C$5:$C$24,"TL",E$5:E$24,"OTHER")
D29D29=SUMPRODUCT(SUBTOTAL(3,OFFSET(D5:D25,ROW(D6:D25)-MIN(ROW(D6:D25)),,1)),ISNUMBER(SEARCH("T1",D6:D25))+0)
E29:T29E29=COUNTIFS($D$5:$D$24,"T1",E$5:E$24,"annual Leave")+COUNTIFS($D$5:$D$24,"T1",E$5:E$24,"NWD")+COUNTIFS($D$5:$D$24,"T1",E$5:E$24,"MEETING")+COUNTIFS($D$5:$D$24,"T1",E$5:E$24,"TRAINING")+COUNTIFS($D$5:$D$24,"T1",E$5:E$24,"OTHER")
D30D30=SUMPRODUCT(SUBTOTAL(3,OFFSET(D6:D26,ROW(D6:D26)-MIN(ROW(D6:D26)),,1)),ISNUMBER(SEARCH("T2",D6:D26))+0)
E30:T30E30=COUNTIFS($D$5:$D$24,"T2",E$5:E$24,"annual Leave")+COUNTIFS($D$5:$D$24,"T2",E$5:E$24,"NWD")+COUNTIFS($D$5:$D$24,"T2",E$5:E$24,"MEETING")+COUNTIFS($D$5:$D$24,"T2",E$5:E$24,"TRAINING")+COUNTIFS($D$5:$D$24,"T2",E$5:E$24,"OTHER")
D31D31=SUMPRODUCT(SUBTOTAL(3,OFFSET(D6:D28,ROW(D13:D28)-MIN(ROW(D13:D28)),,1)),ISNUMBER(SEARCH("T3",D13:D28))+0)
E31:T31E31=COUNTIFS($D$5:$D$24,"T3",E$5:E$24,"annual Leave")+COUNTIFS($D$5:$D$24,"T3",E$5:E$24,"NWD")+COUNTIFS($D$5:$D$24,"T3",E$5:E$24,"MEETING")+COUNTIFS($D$5:$D$24,"T3",E$5:E$24,"TRAINING")+COUNTIFS($D$5:$D$24,"T3",E$5:E$24,"OTHER")
D32D32=SUMPRODUCT(SUBTOTAL(3,OFFSET(D13:D29,ROW(D19:D29)-MIN(ROW(D19:D29)),,1)),ISNUMBER(SEARCH("T4",D19:D29))+0)
E32:T32E32=COUNTIFS($D$5:$D$24,"T4",E$5:E$24,"annual Leave")+COUNTIFS($D$5:$D$24,"T4",E$5:E$24,"NWD")+COUNTIFS($D$5:$D$24,"T4",E$5:E$24,"MEETING")+COUNTIFS($D$5:$D$24,"T4",E$5:E$24,"OTHER")
D33D33=SUMPRODUCT(SUBTOTAL(3,OFFSET(C5:C24,ROW(C5:C24)-MIN(ROW(C5:C24)),,1)),ISNUMBER(SEARCH("AT",C5:C24))+0)
E33:T33E33=COUNTIFS($C$5:$C$24,"AT",E$5:E$24,"annual Leave")+COUNTIFS($C$5:$C$24,"AT",E$5:E$24,"NWD")+COUNTIFS($C$5:$C$24,"AT",E$5:E$24,"MEETING")+COUNTIFS($C$5:$C$24,"AT",E$5:E$24,"TRAINING")+COUNTIFS($C$5:$C$24,"AT",E$5:E$24,"OTHER")
D34D34=D29+D30+D31+D32+1
E34:T34E34=SUM(E29:E32)
C33C33=SUMPRODUCT(SUBTOTAL(3,OFFSET(C5:C24,ROW(C5:C24)-MIN(ROW(C5:C24)),,1)),ISNUMBER(SEARCH("AT",C5:C24))+0)
Named Ranges
NameRefers ToCells
_1_JAN_2020=Calendar!$E$3:$AI$34F3:T4, E25:T25, E28:T34
_FilterDatabase=Calendar!$B$4:$D$24D25, C28:T28, D29:T32, C33:T33
Cells with Conditional Formatting
CellConditionCell FormatStop If True
E28:NR28Other TypeIcon setNO
E23:AS23,AU23:NR23Cell Valuecontains "Meeting"textNO
E23:AS23,AU23:NR23Cell Valuecontains "Other"textNO
E23:AS23,AU23:NR23Cell Valuecontains "Annual Leave"textNO
E23:AS23,AU23:NR23Cell Valuecontains "Training"textNO
E23:AS23,AU23:NR23Cell Valuecontains "NWD"textNO
E23:AS23,AU23:NR23Expression=MATCH(E$4,'BH Dates'!$B$3:$B$11,0)textNO
E23:AS23,AU23:NR23Expression=WEEKDAY(E$4)=7textNO
E23:AS23,AU23:NR23Expression=WEEKDAY(E$4)=1textNO
E18:AS18,AU18:NR18Cell Valuecontains "Meeting"textNO
E18:AS18,AU18:NR18Cell Valuecontains "Other"textNO
E18:AS18,AU18:NR18Cell Valuecontains "Annual Leave"textNO
E18:AS18,AU18:NR18Cell Valuecontains "Training"textNO
E18:AS18,AU18:NR18Cell Valuecontains "NWD"textNO
E18:AS18,AU18:NR18Expression=MATCH(E$4,'BH Dates'!$B$3:$B$11,0)textNO
E18:AS18,AU18:NR18Expression=WEEKDAY(E$4)=7textNO
E18:AS18,AU18:NR18Expression=WEEKDAY(E$4)=1textNO
E30:NR31Other TypeIcon setNO
E33:NR33Other TypeIcon setNO
E24:NR24,E5:NR5,E19:NR20,E6:AS17,AU6:NR17,AT6:AT18,E21:AS22,AU21:NR22,AT21:AT23Cell Valuecontains "Meeting"textNO
E24:NR24,E5:NR5,E19:NR20,E6:AS17,AU6:NR17,AT6:AT18,E21:AS22,AU21:NR22,AT21:AT23Cell Valuecontains "Other"textNO
E24:NR24,E5:NR5,E19:NR20,E6:AS17,AU6:NR17,AT6:AT18,E21:AS22,AU21:NR22,AT21:AT23Cell Valuecontains "Annual Leave"textNO
E24:NR24,E5:NR5,E19:NR20,E6:AS17,AU6:NR17,AT6:AT18,E21:AS22,AU21:NR22,AT21:AT23Cell Valuecontains "Training"textNO
E24:NR24,E5:NR5,E19:NR20,E6:AS17,AU6:NR17,AT6:AT18,E21:AS22,AU21:NR22,AT21:AT23Cell Valuecontains "NWD"textNO
E24:NR24,E5:NR5,E19:NR20,E6:AS17,AU6:NR17,AT6:AT18,E21:AS22,AU21:NR22,AT21:AT23Expression=MATCH(E$4,'BH Dates'!$B$3:$B$11,0)textNO
E24:NR24,E5:NR5,E19:NR20,E6:AS17,AU6:NR17,AT6:AT18,E21:AS22,AU21:NR22,AT21:AT23Expression=WEEKDAY(E$4)=7textNO
E24:NR24,E5:NR5,E19:NR20,E6:AS17,AU6:NR17,AT6:AT18,E21:AS22,AU21:NR22,AT21:AT23Expression=WEEKDAY(E$4)=1textNO
E32:NR32Other TypeIcon setNO
Cells with Data Validation
CellAllowCriteria
E5ListAnnual Leave, Meeting, Training, Non Work Day, Other
E24:NR24,E6:E23,F5:NR23ListAnnual Leave, Meeting, Training, NWD, Other
 
Last edited by a moderator:

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney

Forum statistics

Threads
1,214,904
Messages
6,122,169
Members
449,070
Latest member
webster33

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