Pivot Table Calculation for Sub Totals

gmooney

Active Member
Joined
Oct 21, 2004
Messages
252
Office Version
  1. 365
Platform
  1. Windows
I have the below pivot table with 2 value columns that I need for any subtotals (in this example Romaine Leaves is the sub total of the 5 rows) to calculate the weighted average of the 5 rows (the math for this is the 3 columns to the right of the pivot table. Instead of 10.9 showing for Average of U/SW the correct answer should be 14.5. The 10.9 is simply the straight average of the 5 rows and that isn't the result that I want.

Any helpers out there?




Row Labels
Sum of [$] Average of [U/S/W]
Romaine Leaves$29,413,13110.9 Sum $ * Avg of U/S/W% of Total Weighted Avg
Brand A Washed Red Romaine Leaves$41.040%0.0
Brand A Washed Romaine Leaves$3,874,59813.251,284,18212%1.6
Brand B Washed Leaves$5,291,21810.354,314,34913%1.3
Brand B Washed Red Leaves$7,925,54713.6107,890,47026%3.5
Brand B Washed Romaine Leaves$12,321,76416.4202,138,54449%8.0
415,627,550100%14.5

<tbody>
</tbody>
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.

Forum statistics

Threads
1,215,039
Messages
6,122,799
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