My Pivot Table challenge

medelste

New Member
Joined
Jan 26, 2021
Messages
6
Office Version
  1. 2013
Platform
  1. Windows
I'm sure this is an easy one, but I can't wrap my mind around it.

I have a data table like this (sorry for the image, the XL2BB macro isn't activating for me)

a.png


Here's what I'd like the pivot table to summarize for me: the number of Pass's and Fail's each student received on each date. Just like this that I typed by hand:

b.png


But I'm unable to make that happen using the Pivot Table tool. This is as close as I come. As you can see, Mike's number get repeated for each student.

c.png


I understand why each column is duplicated: I added Mike's results as a Row element in the pivot table to get the Words "Pass" and "Fail" in that column.

d.png


I can make it work using a Pivot Table for each student, but I don't want to do that, I'd like them all right next to each other. How do I do that?

If it matters, I'm using Microsoft 365.

Thank you!!
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Power Query solution: Start by turning your data into a table, and connect to it with Power Query. Select the columns with students names, and use the unPivot Columns action. This will give you a data table like this (you can rename the columns), which is more suited to pivot tables:

Book5
ABCD
4DateQuiz TopicAttributeValue
510/15/22HistoryMikeFail
610/15/22HistorySamanthaPass
7
8Count of AttributeColumn Labels
9Row LabelsMikeSamanthaGrand Total
1010/15/22112
11Fail11
12Pass11
13Grand Total112
Sheet1


1669931587836.png
 
Upvote 0
Solution

Forum statistics

Threads
1,223,734
Messages
6,174,186
Members
452,550
Latest member
southernsquid2

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