Allen_Mead
New Member
- Joined
- May 31, 2019
- Messages
- 36
- Office Version
- 365
- Platform
- Windows
Hi, I need to calculate the number of CPD hours I have worked over the previous 24 months (or in fact any number of months) in a rolling period in total. This also needs to be split down into 2 12 month periods ie. the immediate previous 12 months and the 12 month period behand that. i.e. 31/12/2024 - 31/01/2024 and 31/12/2023 - 31/01/2023.
In the attached spreadsheet, there is a summary sheet with 3 summaries and a data tab.
Summary 1 will let me put in any number of months and will calculate the number of hours over that total period, perfect.
Summary 2 will let me calculate the previous 12 month period, perfect.
Summary 3 will let me calculate the previous 12 month period to Summary 2 but, there's an error somewhere as there are not 13 hours in this time period and this is getting me stuck.
Hopefully the above makes sense. More that welcome to adjust the summary page to something a little less clumsy. Data Tab information included in the second post on the thread.
In the attached spreadsheet, there is a summary sheet with 3 summaries and a data tab.
Summary 1 will let me put in any number of months and will calculate the number of hours over that total period, perfect.
Summary 2 will let me calculate the previous 12 month period, perfect.
Summary 3 will let me calculate the previous 12 month period to Summary 2 but, there's an error somewhere as there are not 13 hours in this time period and this is getting me stuck.
Hopefully the above makes sense. More that welcome to adjust the summary page to something a little less clumsy. Data Tab information included in the second post on the thread.
CPD Chart.xlsx | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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 | |||
1 | |||||||||||||||||||||||||||
2 | Summary 1 | Summary 2 | Summary 3 | ||||||||||||||||||||||||
3 | |||||||||||||||||||||||||||
4 | Get CPD hours for the last | 24 | Months | Get CPD hours for the last | 12 | Months | Get CPD hours for the previous | 24 | Months | ||||||||||||||||||
5 | |||||||||||||||||||||||||||
6 | Date Range | Date Range | Date Range | ||||||||||||||||||||||||
7 | |||||||||||||||||||||||||||
8 | Start | 31/01/2023 | Start | 31/01/2024 | Start | 31/01/2023 | |||||||||||||||||||||
9 | |||||||||||||||||||||||||||
10 | End | 31/12/2024 | End | 31/12/2024 | End | 31/12/2023 | |||||||||||||||||||||
11 | |||||||||||||||||||||||||||
12 | Number of CPD hours in a rolling 24 month period | 13 | Number of CPD hours in a rolling 12 month period | 3 | Number of CPD hours in a rolling 24 month period | 13 | |||||||||||||||||||||
13 | |||||||||||||||||||||||||||
14 | |||||||||||||||||||||||||||
15 | |||||||||||||||||||||||||||
16 | Total number of CPD hours | 20 | Total number of CPD hours | 0 | Total number of CPD hours | 0 | |||||||||||||||||||||
17 | |||||||||||||||||||||||||||
18 | |||||||||||||||||||||||||||
19 | |||||||||||||||||||||||||||
Summary |
Cell Formulas | ||
---|---|---|
Range | Formula | |
G8,W8,O8 | G8 | =EOMONTH(TODAY(),-(G4-1)) |
G10 | G10 | =EOMONTH(TODAY(),0) |
O10,W10 | O10 | =EOMONTH(TODAY(),-(O4-12)) |
E12,U12,M12 | E12 | ="Number of CPD hours in a rolling " & TEXT(G4,"##") &" month period" |
G12,W12,O12 | G12 | =SUM(XLOOKUP(G8,'CPD Data'!$C$2:$FB$2,'CPD Data'!$C$3:$FB$340,0):XLOOKUP(EOMONTH(TODAY(),0),'CPD Data'!$C$2:$FB$2,'CPD Data'!$C$3:$FB$340,0)) |
G16,W16,O16 | G16 | ='CPD Data'!B341 |