Calculating weekly average of a dynamic named range or pivot table data

breakhappy

New Member
Joined
Jun 30, 2008
Messages
22
Hello -

I have a table that keeps records of requests (no null values). I would like to display the weekly average number of requests. Currently, I have a pivot table running with the table sourced, and I get have the following formula for referencing the average number of requests.

=AVERAGE(GETPIVOTDATA("Organization",ProductDB_PivotTable!$A$3,"Month","July","Date of request",DATE(2009,7,8)),GETPIVOTDATA("Organization",ProductDB_PivotTable!$A$3,"Month","July","Date of request",DATE(2009,7,15)),GETPIVOTDATA("Organization",ProductDB_PivotTable!$A$3,"Month","July","Date of request",DATE(2009,7,22)),GETPIVOTDATA("Organization",ProductDB_PivotTable!$A$3,"Month","July","Date of request",DATE(2009,7,29)),GETPIVOTDATA("Organization",ProductDB_PivotTable!$A$3,"Month","August","Date of request",DATE(2009,7,29)),GETPIVOTDATA("Organization",ProductDB_PivotTable!$A$3,"Month","August","Date of request",DATE(2009,8,5)),GETPIVOTDATA("Organization",ProductDB_PivotTable!$A$3,"Month","August","Date of request",DATE(2009,8,12)),GETPIVOTDATA("Organization",ProductDB_PivotTable!$A$3,"Month","August","Date of request",DATE(2009,8,26)))

The problem with this formula is that it doesn't expand as time goes on. I keep having to update it to include the next week as time progresses. Is there a better formula or method for doing this?

Also, I just converted all my columns of my table to dynamic named ranges. I know there's probably a way to =counta() the number of requests in the dynamic named ranges but how would I be able to tell excel to break up the records into weeks, then divide by the total for each week to get my weekly average?

Any help would be greatly appreciated. Thanks.
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.

Forum statistics

Threads
1,215,029
Messages
6,122,760
Members
449,095
Latest member
m_smith_solihull

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