Forecast Trend formula needed

ShanaVT

Board Regular
Joined
May 12, 2010
Messages
86
I am building a forecasting model that will allow for multiple ways to trend actuals data forward and I am looking for a formula to help me do that automatically where I don't have to adjust the formula every month. Below is the example data. I will have 2 full years of actuals up to the current month in the first set of columns (I used 6 month years for this example to simplify). And then in the next set of columns you will see for FY19 the 2 months of actuals that have come in for Months 1 & 2 are reflected. In the row with "3 Month Avg" I want Months 3-6 to calculate the average of the last 3 months (so FY18 Month 6, FY19 Month 1 & FY19 Month 2). But I want to formula to know which 3 months to use based on the last month of Actuals we have (so in this case FY19 Month 2) so that when Actuals for Month 3 come in it will automatically change the go forward formula to be an avg of FY19 Months 1-3 for the remaining Months of the year. I also want to do the same thing for a 6 month avg. Ideally it would be in the same formula with an IF statement so I can use a drop-down and choose which method I want. Hopefully this makes sense and someone out there will be able to help! Thanks in advance!

[TABLE="width: 1456"]
<colgroup><col span="7"><col><col span="7"><col><col span="7"></colgroup><tbody>[TR]
[TD]Actuals[/TD]
[TD]Actuals[/TD]
[TD]Actuals[/TD]
[TD]Actuals[/TD]
[TD]Actuals[/TD]
[TD]Actuals[/TD]
[TD]Actuals[/TD]
[TD]Actuals[/TD]
[TD]Actuals[/TD]
[TD]Actuals[/TD]
[TD]Actuals[/TD]
[TD]Actuals[/TD]
[TD]Actuals[/TD]
[TD]Actuals[/TD]
[TD][/TD]
[TD][/TD]
[TD]Actuals[/TD]
[TD]Actuals[/TD]
[TD]Actuals[/TD]
[TD]Forecast[/TD]
[TD]Forecast[/TD]
[TD]Forecast[/TD]
[TD]Forecast[/TD]
[/TR]
[TR]
[TD]FY18[/TD]
[TD]FY18[/TD]
[TD]FY18[/TD]
[TD]FY18[/TD]
[TD]FY18[/TD]
[TD]FY18[/TD]
[TD]FY18[/TD]
[TD]FY19[/TD]
[TD]FY19[/TD]
[TD]FY19[/TD]
[TD]FY19[/TD]
[TD]FY19[/TD]
[TD]FY19[/TD]
[TD]FY19[/TD]
[TD][/TD]
[TD][/TD]
[TD]FY19[/TD]
[TD]FY19[/TD]
[TD]FY19[/TD]
[TD]FY19[/TD]
[TD]FY19[/TD]
[TD]FY19[/TD]
[TD]FY19[/TD]
[/TR]
[TR]
[TD]Month 1[/TD]
[TD]Month 2[/TD]
[TD]Month 3[/TD]
[TD]Month 4[/TD]
[TD]Month 5[/TD]
[TD]Month 6[/TD]
[TD]Total[/TD]
[TD]Month 1[/TD]
[TD]Month 2[/TD]
[TD]Month 3[/TD]
[TD]Month 4[/TD]
[TD]Month 5[/TD]
[TD]Month 6[/TD]
[TD]Total Yr[/TD]
[TD][/TD]
[TD]Drop-down[/TD]
[TD]Month 1[/TD]
[TD]Month 2[/TD]
[TD]Month 3[/TD]
[TD]Month 4[/TD]
[TD]Month 5[/TD]
[TD]Month 6[/TD]
[TD]Total Yr[/TD]
[/TR]
[TR]
[TD] 171[/TD]
[TD] 146[/TD]
[TD] 178[/TD]
[TD] 171[/TD]
[TD] 146[/TD]
[TD] 178[/TD]
[TD] 494[/TD]
[TD] 55[/TD]
[TD] 146[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD] 371[/TD]
[TD][/TD]
[TD]3 Month Avg[/TD]
[TD] 55[/TD]
[TD] 146[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]6 Month Avg[/TD]
[TD] 55[/TD]
[TD] 146[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
This array formula may help,
Although the 'Total' for the year end, throws the average out.


[FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif]
Book1
BCDEFGHIJKLM
3ActualsActualsActualsActualsActualsActualsActualsActualsActualsActualsActualsActuals
4FY18FY18FY18FY18FY18FY18FY19FY19FY19FY19FY19FY19
5Month 1Month 2Month 3Month 4Month 5Month 6Month 1Month 2Month 3Month 4Month 5Month 6
617114617817114617855146
7
83126
96146
Sheet1
Cell Formulas
RangeFormula
C8{=SUM(IF(COLUMN(B6:M6)>=LARGE(IF(B6:M6>0,COLUMN(B6:M6)),$B$8),B6:M6))/$B$8}
C9{=SUM(IF(COLUMN(B6:M6)>=LARGE(IF(B6:M6>0,COLUMN(B6:M6)),$B$9),B6:M6))/$B$9}
Press CTRL+SHIFT+ENTER to enter array formulas.
[/FONT]
 
Upvote 0

Forum statistics

Threads
1,223,885
Messages
6,175,183
Members
452,615
Latest member
bogeys2birdies

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top