Use Calculate Field in a Pivot Table to calculate a Monthly Average from the Category Grand Totals (the Sum of the Monthly Totals)??

starchaser_lib8

New Member
Using Excel 2007 & Windows XP.

I've made a Pivot Table that filters pages by Years, then gives me monthly transaction totals by categories. Months across the columns and categories down the rows, and gives me the Grand Totals for each Month at the bottom and the Grand Totals for each category at the right. I want to insert a Calculated Field beside the category Grand Totals at the right that will give me the monthly average for each category. NOT the average transaction amount per month but the Average Total = the Grand Total per category / the # of months contributing to the Grand Total per category. I have data for May through Dec for 2009 & data for Jan through the current date in Aug for 2010. That means that I can't just divide the Grand Total per category by 12 months I need to figure out how to make it count the # of months of data available in each year.

I can't figure out how to count the # of months of data available in each year or how to even calculate the average by dividing the Grand Total per category since it doesn't appear the field list.

Any advice or insight would be greatly appreciated! Thanks!

Last edited:

Excel Facts

Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.

starchaser_lib8

New Member
Can anybody help me?

dweezle25

New Member
By any chance were you able to figure out a way to make it work? Now I'm having a similar issue.

Fazza

MrExcel MVP
Maybe it'd be easier with a query table? To create manually, start via menu ALT-D-D-N. Formulas can be used with a query table: for example, a COUNT for the months. Or maybe the average can be worked out in the SQL for the query (or even for the pivot table, in fact).

Please post sample data - inputs & results - as it helps enormously. The sticky threads at the top of the forum page refer.

Replies
1
Views
86
Replies
0
Views
294
Replies
2
Views
306
Replies
1
Views
203
Replies
0
Views
600

1,181,598
Messages
5,930,800
Members
436,761
Latest member
mintwaxed

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.

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

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