Cubist
Well-known Member
- Joined
- Oct 5, 2023
- Messages
- 1,910
- Office Version
- 365
- Platform
- Windows
- MacOS
I want to generate the end-of-month array given 2 inputs:
(1) the start date - The start date input can be any day of the month but I want the result array to always be end-of-month.
(2) The length of the array.
I need dynamic array so I don't need to manually copy down the formulas every time.
See the sample below:
(1) the start date - The start date input can be any day of the month but I want the result array to always be end-of-month.
(2) The length of the array.
I need dynamic array so I don't need to manually copy down the formulas every time.
See the sample below:
Book1 | ||||
---|---|---|---|---|
A | B | |||
1 | Start Date | 1/25/2022 | ||
2 | Length | 26 | ||
3 | ||||
4 | Output | 1/31/2022 | ||
5 | 2/1/2022 | |||
6 | 3/1/2022 | |||
7 | 4/1/2022 | |||
8 | 5/1/2022 | |||
9 | 6/1/2022 | |||
10 | 7/1/2022 | |||
11 | 8/1/2022 | |||
12 | 9/1/2022 | |||
13 | 10/1/2022 | |||
14 | 11/1/2022 | |||
15 | 12/1/2022 | |||
16 | 1/1/2023 | |||
17 | 2/1/2023 | |||
18 | 3/1/2023 | |||
19 | 4/1/2023 | |||
20 | 5/1/2023 | |||
21 | 6/1/2023 | |||
22 | 7/1/2023 | |||
23 | 8/1/2023 | |||
24 | 9/1/2023 | |||
25 | 10/1/2023 | |||
26 | 11/1/2023 | |||
27 | 12/1/2023 | |||
28 | 1/1/2024 | |||
29 | 2/1/2024 | |||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
B4 | B4 | =EOMONTH(B1,0) |
B5:B29 | B5 | =EOMONTH(B4,0)+1 |