Rolling averages

BlackYellow

New Member
Joined
Mar 22, 2018
Messages
3
Hello, i have a rather complicated issue that I am trying to resolve.

I have over 200,000 lines of raw sales data in excel.

The data looks something like this:
Customer Id / Invoice # / Date / Inventory / Quantity / Value
1001 / inv1 / 1-1-18 / cheese / 10 / 45.50
1001 / inv1 / 1-1-18 / sauce / 2 / 15.00
1002 / inv2 / 1-1-18 / cheese / 6 / 30.00

I know how to display this data in a pivot table but how do i calculate the rolling average over a 7 day period of sales for each customer?
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
If there are multiple sales to a single customer in a given day, you could use the manual version of the above answer, and do a AVERAGEIFS with TODAY() and TODAY()-7, then copy that down.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,910
Messages
6,175,320
Members
452,635
Latest member
laura12345

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