Pivot Tables - Counting Unique Values XL2007

Paul H

New Member
Joined
Dec 8, 2011
Messages
15
Hello All,

I have a pivot table set up and I need to show a count of the number of students there are within a certain course. The problem I have is that the same student is on multiple rows as they attend several training units within the course.

So when I use the count option it is counting the same student over and over. I need to try and count unique values only, i.e. only count each student once.

Any help would be greatly appreciated.

Thanks

Paul
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Sorry for the late reply Robert and thank you. I will have a look at this and hopefully it will work.

Cheers

Paul
 
Upvote 0
Hi I am still struggling with this one unfortunately.

Below is an example of what I am trying to achieve, any help would be greatly appreciated.

Name Code Date
ALEXANDRA OWEN 45 7/04/2010
ALEXANDRA OWEN 45 7/04/2010
ARMSTRONG, KRISTY-LEE 43 7/04/2010
ARMSTRONG, KRISTY-LEE 43 7/04/2010
CAROLYN RUSSELL 72 7/04/2010
CAROLYN RUSSELL 72 7/04/2010
EMILY BROWN 53 7/04/2010
KIRSTY ELFORD 40 7/04/2010
KIRSTY ELFORD 40 7/04/2010
LOFT, ROBYN 78 7/04/2010
ALEXANDRA OWEN 45 7/05/2010
ALEXANDRA OWEN 45 7/05/2010
ARMSTRONG, KRISTY-LEE 43 7/05/2010
ARMSTRONG, KRISTY-LEE 43 7/05/2010
KIRSTY ELFORD 40 7/05/2010
KIRSTY ELFORD 40 7/05/2010
LOFT, ROBYN 78 7/05/2010
LOFT, ROBYN 78 7/05/2010

I am looking to count the number of unique students that have a certain date. E.G. for the 7/05/2011 the answer would be 4. I am using the Code column as the count within my Pivot table. However at present I can only get 8 by using the Count option within the Pivot table. I have tried to use the Helper column and use =1/COUNTIF(A:A, A2) and then count this answer but this still isn't working as I am counting the Helper column so it only gives a proportionate value for each student code.

Thanks in advance for any help.

Paul
 
Upvote 0
I googled Pivot table Unique Value and ended up here, then registered as a user so I can comment. After reading various sites, I hit on a very simple solution - tested only briefly. Anyone see any holes in my solution?

Add a dummy column, call it Unique Value Dummy. Populate it with 1. Add it as data, AVERAGE it rather than COUNT it.
 
Upvote 0

Forum statistics

Threads
1,223,246
Messages
6,170,996
Members
452,373
Latest member
TimReeks

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