Vkackley3300
New Member
- Joined
- Apr 27, 2020
- Messages
- 5
- Office Version
- 365
- Platform
- Windows
I have a worksheet where the user inputs a start date in cell B2 and then numbers of months in cells C5-C9 to create a calendar schedule as noted below. I have written formulas in cells A5 thru B9 to calculate start and end dates based on the user input.
I want to take this data and create a monthly calendar of sorts as I have noted in cells C13 thru C60. I have inputted the start date in cell C13. Beginning in cell C14, I would like a formula that will input the first day of the following month unless the date changes mid-month in cells B5-C9 in which case it will catch that and enter the day following the date change. I have manually changed the dates in cells C26, C39 and C52 to demonstrate what I am trying to do. From this, I can then calculate the number of days in each period as I have done in column D.
I want to take this data and create a monthly calendar of sorts as I have noted in cells C13 thru C60. I have inputted the start date in cell C13. Beginning in cell C14, I would like a formula that will input the first day of the following month unless the date changes mid-month in cells B5-C9 in which case it will catch that and enter the day following the date change. I have manually changed the dates in cells C26, C39 and C52 to demonstrate what I am trying to do. From this, I can then calculate the number of days in each period as I have done in column D.
HDR Financial Template 4.29.2020.xlsm | ||||||
---|---|---|---|---|---|---|
A | B | C | D | |||
1 | ||||||
2 | Start date: | 2/10/2020 | ||||
3 | ||||||
4 | Start | End | # Months | |||
5 | 2/10/2020 | 4/9/2020 | 2 | |||
6 | 4/10/2020 | 2/24/2021 | 10.5 | |||
7 | 2/25/2021 | 2/24/2022 | 12 | |||
8 | 2/25/2022 | 2/24/2023 | 12 | |||
9 | 2/25/2023 | 10/9/2023 | 7.5 | |||
10 | ||||||
11 | ||||||
12 | Period Start | Days in Period | ||||
13 | 2/10/2020 | 20 | ||||
14 | 3/1/2020 | 31 | ||||
15 | 4/1/2020 | 9 | ||||
16 | 4/10/2020 | 21 | ||||
17 | 5/1/2020 | 31 | ||||
18 | 6/1/2020 | 30 | ||||
19 | 7/1/2020 | 31 | ||||
20 | 8/1/2020 | 31 | ||||
21 | 9/1/2020 | 30 | ||||
22 | 10/1/2020 | 31 | ||||
23 | 11/1/2020 | 30 | ||||
24 | 12/1/2020 | 31 | ||||
25 | 1/1/2021 | 55 | ||||
26 | 2/25/2021 | 4 | ||||
27 | 3/1/2021 | 31 | ||||
28 | 4/1/2021 | 30 | ||||
29 | 5/1/2021 | 31 | ||||
30 | 6/1/2021 | 30 | ||||
31 | 7/1/2021 | 31 | ||||
32 | 8/1/2021 | 31 | ||||
33 | 9/1/2021 | 30 | ||||
34 | 10/1/2021 | 31 | ||||
35 | 11/1/2021 | 30 | ||||
36 | 12/1/2021 | 31 | ||||
37 | 1/1/2022 | 31 | ||||
38 | 2/1/2022 | 24 | ||||
39 | 2/25/2022 | 4 | ||||
40 | 3/1/2022 | 31 | ||||
41 | 4/1/2022 | 30 | ||||
42 | 5/1/2022 | 31 | ||||
43 | 6/1/2022 | 30 | ||||
44 | 7/1/2022 | 31 | ||||
45 | 8/1/2022 | 31 | ||||
46 | 9/1/2022 | 30 | ||||
47 | 10/1/2022 | 31 | ||||
48 | 11/1/2022 | 30 | ||||
49 | 12/1/2022 | 31 | ||||
50 | 1/1/2023 | 31 | ||||
51 | 2/1/2023 | 24 | ||||
52 | 2/25/2023 | 4 | ||||
53 | 3/1/2023 | 31 | ||||
54 | 4/1/2023 | 30 | ||||
55 | 5/1/2023 | 31 | ||||
56 | 6/1/2023 | 30 | ||||
57 | 7/1/2023 | 31 | ||||
58 | 8/1/2023 | 31 | ||||
59 | 9/1/2023 | 30 | ||||
60 | 10/1/2023 | 8 | ||||
61 | ||||||
Sheet3 (2) |
Cell Formulas | ||
---|---|---|
Range | Formula | |
A5 | A5 | =B2 |
B5:B9 | B5 | =EDATE(A5,C5)+MOD(C5,1)*30-1 |
A6:A9 | A6 | =B5+1 |
C13 | C13 | =A5 |
C53:C60,C40:C51,C27:C38,C17:C25,C14:C15 | C14 | =DATE(YEAR(C13),MONTH(C13)+1,1) |
D13:D60 | D13 | =IF(ISBLANK(C14),B$9-C13,C14-C13) |