Calculations using multiple items from the same field in a pivot table?

zsdazey

New Member
Joined
Mar 21, 2018
Messages
1
I have spent a lot of time searching for an answer to this, but no luck. I'm sorry if this is in the wrong place, this is my first post here.

I have a sheet with raw data (first table). Each row contains a person's name (each person appears multiple times, and there are over 30,000 rows currently). There are three columns to the right, which contain either "Yes","No","N/A", or are blank:
[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD]Employee
[/TD]
[TD]Criteria1
[/TD]
[TD]Criteria2
[/TD]
[TD]Criteria3
[/TD]
[/TR]
[TR]
[TD]Person 1
[/TD]
[TD]Yes
[/TD]
[TD]Yes
[/TD]
[TD]No
[/TD]
[/TR]
[TR]
[TD]Person 2
[/TD]
[TD]No
[/TD]
[TD]Yes
[/TD]
[TD]Yes
[/TD]
[/TR]
[TR]
[TD]Person 1
[/TD]
[TD]Yes
[/TD]
[TD]Yes
[/TD]
[TD]Yes
[/TD]
[/TR]
[TR]
[TD]Person 3
[/TD]
[TD]Yes
[/TD]
[TD]N/A
[/TD]
[TD]No
[/TD]
[/TR]
</tbody>[/TABLE]

After creating a pivot table with the data, I put the "Employee" field in row labels, and "Criteria1" in both column labels and values, returning this:
[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD]Employee
[/TD]
[TD]No
[/TD]
[TD]Yes
[/TD]
[TD]Grand Total
[/TD]
[/TR]
[TR]
[TD]Person 1
[/TD]
[TD][/TD]
[TD]2
[/TD]
[TD]2
[/TD]
[/TR]
[TR]
[TD]Person 2
[/TD]
[TD]1
[/TD]
[TD][/TD]
[TD]1
[/TD]
[/TR]
[TR]
[TD]Person 3
[/TD]
[TD][/TD]
[TD]1
[/TD]
[TD]1
[/TD]
[/TR]
</tbody>[/TABLE]

Instead, I want the pivot table to only show percentages for each criteria, and an average of all 3 percentages. Percentages should be calculated as the "Yes" number divided by the "Grand Total," to look like this:

[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD]Employee
[/TD]
[TD]Criteria 1
[/TD]
[TD]Criteria2
[/TD]
[TD]Criteria3
[/TD]
[TD]Average
[/TD]
[/TR]
[TR]
[TD]Person 1
[/TD]
[TD]100%
[/TD]
[TD]100%
[/TD]
[TD]50%
[/TD]
[TD]83.33%
[/TD]
[/TR]
[TR]
[TD]Person 2
[/TD]
[TD]75%
[/TD]
[TD]75%
[/TD]
[TD]25%
[/TD]
[TD]58.33%
[/TD]
[/TR]
[TR]
[TD]Person 3
[/TD]
[TD]100%
[/TD]
[TD]75%
[/TD]
[TD]50%
[/TD]
[TD]75.00%
[/TD]
[/TR]
</tbody>[/TABLE]

I can get the "Yes" column in the pivot table to display as "total percentage of current row," which is the correct percent, but every time I try to add more criteria it adds a ton of other columns I don't need.

How would I go about creating this pivot table?
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college

Forum statistics

Threads
1,223,903
Messages
6,175,289
Members
452,631
Latest member
a_potato

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