Is there a way for me to combine two of these formulas into one?
I have a worksheeet called "Products" that has a rolling average calculation based on the input number value. So for example, if I want to look at 4 weeks rolling average, I just put 4 in AK4 and the Rolling average knows to pull only 8 weeks worth of data from Columns AN - BG.
I also have another worksheet called "Executive Summary" that basically looks at a date and the formula will then go to the "Products" tab and match the date and then returns the column Letter for that date.
What I need help with: I have a combo filter box that has the dates from the Products tab. I would like to calculate the rolling average of 4 weeks based on the dates that is selected on the Combo Filter. Here's another possible problem....if someone selected May 13 for example, you wouldn't be able to calculate the average b/c there's no data for the first 3 weeks prior, so maybe the formula can return a "N/A".
Thank you in advance for anyone's help.
Rolling Average Formula: =IFERROR(IF($A14="","",AVERAGE(OFFSET($AN14,0,COUN T($AN14:$BG14)-AK$1,1,AK$1))),0)
Column Letter Forumula: =SUBSTITUTE(ADDRESS(1,SUMPRODUCT((Products!$AN$3:$ BH$3='Executive Summary'!$G$9)*(COLUMN(Products!$AN$3:$BH$3))),4), "1","")
Dates on the Products tab: May 6 would be where column AN starts.
6-May 13-May 20-May 27-May 3-Jun 10-Jun 17-Jun 24-Jun 1-Jul 8-Jul 15-Jul 22-Jul 29-Jul 5-Aug 12-Aug 19-Aug 26-Aug 2-Sep 9-Sep 16-Sep 23-Sep
Bookmarks