Pivot Tables weighted average from total

xugal

New Member
Joined
Jun 30, 2008
Messages
2
Hi,
First here is the general setup of my pivot table.


country
type data ca ch croa

HWD y_cons 15 53 15
y_cap 16 50 14
cf .91 1.06 1.05

SWD y_cons 74 30 52
y_cap 72 29 100
cf 1.03 1.04 .52

total sum y_cons 89 83 67
total sum y_cap 88 79 114
total cf .98 1.05 .59

What I am trying to do is have my cf=y_cons/total sum y_cap (right now its simply =y_cons/y_cap). For example, I want cf under swd = 74/88, 30/79, and 52/67.

Reading various posts, I know how to make show y_cons as % of total (or row/column). Also, I can get my cf to be a % of these as well. Non of these solve my problem of having the y_cons under each country divided by the total of y_cap for that country.

Does this make sense? Any help would be greatly appreciated. Thanks!
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
sorry formatting wasn't how I expected.

country names are across the top (columns)

type=HWD or SWD

data=y_cons, y_cap, and cf

type and data are rows
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,751
Members
448,989
Latest member
mariah3

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