Can someone please help me with a formula that grabs data from a prior period (actual) for future forecast months and years?
For example, I want 2025, 2026 and 2027 to be the same data as 2024. In my example, the switch over is currently on Feb 2025. Jan 2025 is actual but in Jan 2026 and Jan 2027, I want to use what is in Jan 2024, not Jan 2025.
| | | | | switch over is Feb 2025 | | | | | |
---|
| Actuals | Actuals | Actuals | Actuals | Forecast | Forecast | Forecast | Forecast | Forecast | Forecast | Forecast | Forecast |
| Jan 2024 | Feb 2024 | Mar 2024 | Jan 2025 | Feb 2025 | Mar 2025 | Jan 2026 | Feb 2026 | Mar 2026 | Jan 2027 | Feb 2027 | Mar 2027 |
Data | 555 | 666 | 777 | 12345 | 666 | 777 | 555 | 666 | 777 | 555 | 666 | 777 |
The formula I used is a LAG (see below) but Jan 25 is an actual month right now with the lag formula, Jan 26 and Jan 27 is pulling Jan 25 data. However, I want Jan 26 and Jan 27 to pull data from Jan 24 instead of Jan 25. And next month Feb 2025 will be an actuals month, and so i want Feb 26 and Feb 27 to pull Feb 2024 data and so on and so forth as switchover changes.
I imagine I need to add a Lookup to Data in the LAG formula but I don't know how to create the lookup to make it pull the prior year's actuals in future years. Can someone please help?
IF
ISACTUALVERSION()
THEN
DATA
ELSE
LAG(DATA, 12, 0)
Thank you!