Pivot table and weighted average

shell910

New Member
Joined
Dec 27, 2004
Messages
3
I am trying to get a weighted average from a pivot table and I am trying to use insert calculated field. Currently I am getting the pivot tables and copying those in a regular spreadsheet to do the weighted average calculations. Very time consuming!!

00000000000-000014 9,300 253,692
00000000000-000023 8,500 380,265
Total 633,957

This is information out of of my pivot table and I am currently taking (253692/633957)*9300 + (380,625/633957)*8500 to get my weighted average. How can I do this in a pivot table?

Any thing that can be done to help would be greatly appreciated.
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Dredging up an old post as my first is probably not a great way to start on this board, but I noticed many unanswered threads about this subject...

I too have been wondering if it is possible to get a weighted average in a pivot table using just the raw data. As it is right now, I add columns to the raw data that multiply the value times the weight for every measure for which I am trying to calculate the weighted average. This is often many columns and adds a lot of, what I feel, is redundant data that takes up space and complicates the adding of rows to a table of raw data.

Is there a way to replicate the sumproduct() function in an excel pivot table? I have tried many Sum(weight * value)/sum(weight) type calculated measures, but these don't seem to work properly.

Any suggestions?

-Sean
 
Upvote 0
All I can give is my perspective, which is that there are better tools than Excel to manage these types of issues: R, SAS, SPSS; even Mathmatica or MATLAB are better suited, but that's just my professional bias talking :-/
 
Upvote 0
Trying to distribute the results to a diverse group of people, all of whom have excel and very few who have access to any of the named tools. Power Pivot is how I do it for myself, but we found that the Power Pivot sheets made in Excel 2013 are not really backwards compatible (can't refresh in Excel 2010) and doing them in Excel 2010 does not work either (crashes our Excel 2013 machines).

I am going to stick with the added columns for now. Thanks for your suggestions Dr. D and Aladin.
 
Upvote 0

Forum statistics

Threads
1,217,301
Messages
6,135,718
Members
449,959
Latest member
choy96

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