7 day running average

redonthehd

New Member
Joined
Sep 17, 2014
Messages
3
Hi Everyone, I am new to the Group. I have an interesting formula problem. We have a spreadsheet and log for our 6 or 7 products we sell. there are 15 to 30 sales a day so each line is a sale. Column A is the date of the sale in format 9/8/2014, column B is the name of the customer, C the phone number, and D through L are product columns so Like D is Azteca and so on.

Now on separate tabs I have the running totals and graphs for each particular product. showing monthly sales but I want to have a running 7 day average of units sold for each product. I do this manually now with this formula <bdo dir="ltr">=SUM(MAIN!D771:D1153)/7

Each day I manually change the first cell number to reflect the date 6 days prior to the current date we are inputting.

I have searched and looked and unable to find a way to automate my manual changing of the current sales date minus 6days and put that in the formula to give me a 7 day running average. Any Ideas or Thoughts?
</bdo>
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Hi,
Like this, with 7 days?
datescustcellprod_1prod_2prod_3as of9/17/14
9/7/14452651prod_1 49.86
9/8/14459598prod_2 56.29
9/9/14983260prod_3 66.71
9/10/14323672
9/11/14446115
9/12/14804498
9/13/14126666
9/14/14641796
9/15/1455074
9/16/14719123
9/17/14736595

<!--StartFragment--> <colgroup><col width="65" span="9" style="width:65pt"> </colgroup><tbody>
<!--EndFragment--></tbody>
 
Upvote 0
my spread sheet does not total each day it is per order:

9/1/2014 name 1
9/1/2014 name 1
9/1/2014 name 1
9/1/2014 name 1
9/1/2014 name 1
9/2/2014 name 1
9/2/2014 name 2
9/3/2014 name 1
9/3/2014 name 1
9/3/2014 name 1
9/3/2014 name 1

so the running average is the sum of those cells for that product for the lastest 7 day period / 7
 
Upvote 0
try =AVERAGEIFS(D2:D200,A2:A200,">="&TODAY()-6,A2:A200,"<="&TODAY()) to average results from ColumnD, adjust range to fit you model.
 
Upvote 0

Forum statistics

Threads
1,214,386
Messages
6,119,215
Members
448,874
Latest member
b1step2far

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