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

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
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,215,097
Messages
6,123,077
Members
449,094
Latest member
mystic19

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