Calculating Increasing Values by Date in a Pivot Table

puscypher

New Member
Joined
Aug 17, 2016
Messages
3
Brand new poster here - long time user of MrExcel.com. I've always been able to get my questions answered here, but this is the first time I've not been able to find a solution with a quick search. Any help is more than appreciated!

I have multiple pivot tables that are reporting to individual tables based on calculations.

Currently, I have an ever-growing pivot table of dates reporting values.

I have multiple formulas that I am using which are coincidental with the dates as they move.

I am wondering if there is a good formula that will always keep track of the day as it is added and report on its corresponding value.

For instance, these values are being recorded by a running total, a running average, and a 30 day rolling average.

29-Jul100388488
30-Jul83260343
31-Jul108240348
1-Aug172433605
2-Aug5237242
3-Aug69218287
4-Aug68252320
5-Aug70217287
6-Aug45154199
7-Aug51158209
8-Aug59240299
9-Aug81276357
10-Aug51217268
11-Aug147308455
12-Aug66222288
13-Aug35121156
14-Aug29134163
15-Aug47209256
16-Aug236285

<colgroup><col><col><col><col></colgroup><tbody>
</tbody>

There is a grand total field at the bottom, because it's a pivot table. I'm wondering how I can ensure that my formula is set to always accommodate the new line item for my over-time calculation, and also for the rolling 30 day (meaning that I am only calculating the most recent 30 values).
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
I figured it out... for those of you who may encounter something similar, you can enter the following to calculate for each:

=SUMIF(A:A,">"&TODAY()-30,B:B) - that will give a rolling 30 day as dates increase.
Also, replace SUMIF with AVERAGEIF to get a rolling 30 day average.

I hope this helps anyone else.
 
Upvote 0
Oh - and you'll want to remove the Grand Total from the Pivot Table to ensure that it is not including it in your calculation.
 
Upvote 0

Forum statistics

Threads
1,215,461
Messages
6,124,955
Members
449,199
Latest member
Riley Johnson

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