Solved

Pivot Tables - Calculated Fields - Weighted Averages

Posted on 2013-11-04
2
9,243 Views
Last Modified: 2016-07-14
How does one create a weighted average in a pivot table?

The AVE function provides a simple average but most of my calculations and reports require weighted averages (Means).  Using a column outside and to the right of my Pivot Table is not a good work-around since the number of columns in my data often changes.  In the past, this has caused me to lose the data.

Appreciate an answer but please avoid using anything other than built-in formulas as I cannot program using a computer language.

Thanks for your help.
0
Comment
Question by:rgerl01
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 12

Accepted Solution

by:
Harry Lee earned 500 total points
ID: 39622403
You can insert a Calculated Field to your Pivot Table.

Not sure which version of Excel are you using. In Excel 2010,

1) Select your Pivot Table
2) Keyboard Shortcut Alt-JT-J-F
3) Label the field Weighted Average
4) In the Formula field, do {Field 1} divided by {Field 2}.

Take a look at my sample. I have created a pivot table using Region, Department, Revenue, and Number of Employee.

My weighted average field is Revenue per Employee.

So in my formula field, I do =Revenue / # of Employees
Q-28284899.xlsx
0
 
LVL 1

Expert Comment

by:Jeff Geiselman
ID: 41710896
I found that I had to add a new column formula to the data (which I labeled 'SumProduct') with the formula  ='Revenue'   *   '# of Employee' in Harry's Q-28284899.xlsx example.    

Then I inserted a Calculated Field into the PIvot Table that  was '= SumProduct / Revenue'.
Average-Weighted-2.xlsx
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question