Calcuate Average for an already pivoted pivot table

k9kreationz

New Member
Joined
Jan 29, 2016
Messages
1
Hi all,

I don't even know where to begin with this, so bear with me. I'm using Excel 2010. Ugh! I've tried to format my data, but it's not coming out right, close enough. sorry.

Here's my data:
<pre>
A B C D
1234 5 S M
1234 2 S M
1234 4 S M
1235 6 T M
1258 2 S M
1258 1 S M
1897 8 T O
1897 3 T O
1897 7 T O
</pre>

Here's my pivot table:
<pre>
A MIN
1234 2
1235 6
1258 1
1897 3
</pre>
In my pivot table, Column A is in Row Labels and Column B is in Values as MIN.
I have Columns C and D in Report Filter

I want to find the AVERAGE of all the MIN's while I sort by Column C and/or D.

Example 1: sort by M in Column D.
<pre>
A MIN
1234 2
1235 6
1258 1
</pre>
Average: 3


The problem becomes when I want to find the average of whatever I filter for. It needs to be dynamic. Thoughts? This is a report that will be updated monthly, so I'm trying to automate it as much as possible.

So if a user now want to sort by T, it'd look like this
<pre>
A MIN
1235 6
1897 3
</pre>
Average: 4.5

Obviously once I get into how much data I really have (around 2k rows), this needs to work on its own. Help! And thank you to anyone who can help me.
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.

Forum statistics

Threads
1,223,903
Messages
6,175,287
Members
452,631
Latest member
a_potato

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