Average Data in Pivot with Sum in Total

Tammy Levasseur

New Member
Joined
Oct 12, 2016
Messages
5
I have a spreadsheet with data and I want to show the average of the data by discipline (which is doable) but in the Total I want to sum the average data. Is this possible. When I add the Total to the Pivot it provides the average of the data. Below is a sample: CHK, DES and ENG are disciplines and the data is an average of each discipline on the 3533001.2521 row I would like a total of the averaged data. Let me know if there are any solution. I've read about power pivot. Not sure if that is what is required.

3533001.2521
22
33
67
41
CHK
1
4
3
3
DES
20
20
53
31
ENG
1
9
11
7

<tbody>
</tbody>
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
There are several layers of grouping. The above is just a small snippet of the actual pivot. I would have to do a lot of averageif statements and then sum that. It might be a solution if I can't get the pivot to work.
 
Upvote 0
test1test2test3test4
CHKtest11CHK1433
DEStest120DES20205331
ENGtest11ENG19117
CHKtest24
DEStest220
ENGtest29
CHKtest33
DEStest353
ENGtest311
CHKtest43
DEStest431the above table made with sumproduct formula
ENGtest47
easy to add totals for rows and columns

<colgroup><col width="64" span="14" style="width:48pt"> </colgroup><tbody>
</tbody>
 
Upvote 0
Thank you,

The data should be an average. My above example is an average of a much larger data set. For example, in your example Test1 DES is 20. My data would say Test1 DES is 10,20, 30, My pivot table averages all that data to 20.

Hope I'm making sense.

Tammy
 
Upvote 0
Hi Oldbrewer

My example was an actual pivot table with the data averaged within. Not the raw data. The raw data would look something like this. Just a sample and does not align with my earlier pivot table however you can see Test1 DES is 10, 20,30 and the Pivot Table had averaged that data to 20.

Actual Hours
Test1DES10
Test1DES20
Test1DES30
Test1ENG50
Test1ENG30
Test1ENG20
Test1CHK40
Test1CHK60
Test1CHK50
Test2DES20
Test2DES30
Test2DES50
Test2ENG60
Test2ENG40
Test2ENG50
Test2CHK10
Test2CHK20
Test2CHK20

<tbody>
</tbody><colgroup><col><col span="2"></colgroup>
 
Upvote 0
Test1DES10
Test1DES20
Test1DES30
Test1ENG50
Test1ENG30
Test1ENG20
Test1CHK40
Test1CHK60DESENGCHK
Test1CHK50Test120
Test2DES20Test2
Test2DES30
Test2DES50
Test2ENG60
Test2ENG4020 COMES FROM
Test2ENG50
Test2CHK10=SUMPRODUCT(($A$1:$A$18=$G9)*($B$1:$B$18=H$8)*($C$1:$C$18))/3
Test2CHK20
Test2CHK20
I have divided by 3 but not hard to calculate the 3 to allow for more raw data
you have 18 rows, 2 tests = 9
you have 3 DES ENG CHK 9/3 = 3

<colgroup><col width="64" span="16" style="width:48pt"> </colgroup><tbody>
</tbody>
 
Upvote 0
Thanks, I'll give it a try. I was hoping to keep in in a pivot table because there is a filter variable that I wanted to be able to switch between but it may not be possible.

Thanks

Tammy
 
Upvote 0

Forum statistics

Threads
1,216,045
Messages
6,128,480
Members
449,455
Latest member
jesski

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