Solved

% of in pivot table of excel 2010

Posted on 2014-11-05
2
164 Views
Last Modified: 2014-11-05
I am using excel 2010 and want to do "% of" in a pivot table. Let me explain you what I have and what I need

Below is example of user vacation plan based on department

Employee ID |  Department | Total Users in Department | Vacation Type
1                     | Finance          |    5                                           | Thanks Giving
1                     | Finance          |    5                                           | Xmas
1                     | Finance          |    5                                           | New Year
3                     | Finance          |   5                                            | Xmas
3                     | Finance          |   5                                            | New Year
4                     | Operations    |   10                                         | Thanks Giving
4                     | Operations    |   10                                         | Xmas
5                     | Operations    |   10                                         | Thanks Giving
7                     | Operations    |   10                                         | New Year


I need a Pivot that will give me below output

Vacation Type (by Dept)  | Users on Vacation  | % users on vacation (compared to dept strength - column C)
-Finance                              |   2                              | 40%
Thanks Giving                   |   1                              |  20%
Xmas                                  |   2                              | 40%
New Year                           |   2                              | 40%
-Operations                        |  3                              |  30%
Thanks Giving                   |  2                              |  20%
Xmas                                  |  1                              |  10%
New Year                           |  1                              |  10%
0
Comment
Question by:Gillz
2 Comments
 
LVL 24

Accepted Solution

by:
Phillip Burton earned 500 total points
ID: 40424297
You can't do this as a PivotTable. It's the Operations total that shows that what you want is "Discount Count", which is not part of Excel (it's part of SQL Server, not Excel).

You can do it outside of it, using FREQUENCY and other formulas.

The attached is the closest I can come up with.
PercentageOfPivotTable141105.xlsx
0
 

Author Comment

by:Gillz
ID: 40424921
Thanks a lot Phillip. That worked for me...
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

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…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

806 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