Cubist
Well-known Member
- Joined
- Oct 5, 2023
- Messages
- 2,263
- Office Version
- 365
- Platform
- Windows
- MacOS
I have a data set with a maximum of 36 months, but can be shorter. I'm trying to create a dynamic report. The current period is the most recent 12 months, the prior period is the prior 12 months, and prior-1 is the oldest 12 months.
TIA
TIA
sample.xlsx | |||||||||
---|---|---|---|---|---|---|---|---|---|
M | N | O | P | Q | R | S | |||
1 | Data | Summary | |||||||
2 | Month | Amount | Month | Current Period | Prior Period | Prior -1 Period | |||
3 | 12/31/21 | $219.80 | February | $81.92 | |||||
4 | 1/31/22 | $440.77 | March | $100.91 | |||||
5 | 2/28/22 | $81.92 | April | $220.03 | |||||
6 | 3/31/22 | $100.91 | May | $473.23 | |||||
7 | 4/30/22 | $220.03 | June | $384.50 | |||||
8 | 5/31/22 | $473.23 | July | $413.65 | |||||
9 | 6/30/22 | $384.50 | August | $328.10 | |||||
10 | 7/31/22 | $413.65 | September | $390.76 | |||||
11 | 8/31/22 | $328.10 | October | $259.99 | |||||
12 | 9/30/22 | $390.76 | November | $275.12 | |||||
13 | 10/31/22 | $259.99 | December | $372.04 | $219.80 | ||||
14 | 11/30/22 | $275.12 | January | $308.25 | $440.77 | ||||
15 | 12/31/22 | 372.0418 | |||||||
16 | 1/31/23 | $308.25 | |||||||
17 | 1/0/00 | #DIV/0! | |||||||
18 | 1/0/00 | #DIV/0! | |||||||
19 | 1/0/00 | #DIV/0! | |||||||
20 | 1/0/00 | #DIV/0! | |||||||
21 | 1/0/00 | #DIV/0! | |||||||
22 | 1/0/00 | #DIV/0! | |||||||
23 | 1/0/00 | #DIV/0! | |||||||
24 | 1/0/00 | #DIV/0! | |||||||
25 | 1/0/00 | #DIV/0! | |||||||
26 | 1/0/00 | #DIV/0! | |||||||
27 | 1/0/00 | #DIV/0! | |||||||
28 | 1/0/00 | #DIV/0! | |||||||
29 | 1/0/00 | #DIV/0! | |||||||
30 | 1/0/00 | #DIV/0! | |||||||
31 | 1/0/00 | #DIV/0! | |||||||
32 | 1/0/00 | #DIV/0! | |||||||
33 | 1/0/00 | #DIV/0! | |||||||
34 | 1/0/00 | #DIV/0! | |||||||
35 | 1/0/00 | #DIV/0! | |||||||
36 | 1/0/00 | #DIV/0! | |||||||
37 | 1/0/00 | #DIV/0! | |||||||
38 | 1/0/00 | #DIV/0! | |||||||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
P3:P14 | P3 | =TEXT(TAKE(FILTER(M3:M38,M3:M38>0),-12),"mmmm") |
Dynamic array formulas. |