Pivot table totals for unique numbers

sknight22

Board Regular
Joined
Feb 16, 2016
Messages
75
Hello,

I have a large database at work for training. I have a lot of information on the individuals including their unique training card number (in the below format). I wanted excel to show a result including date and the total number of new training cards issued that day but the training numbers are recorded on multiple days. I only want them to be counted against the total on the first date the number appears in the data.

Is this possible to do on a pivot table or will it need a formula?


Audit DateDriver Training Card Number
31/10/2017SCU001
31/10/2017SCU002
31/10/2017SCU056
31/10/2017SCU010
01/11/2017SCU007
02/11/2017SCU010
02/11/2017SCU025
02/11/2017SCU027
02/11/2017SCU191
02/11/2017SCU007
02/11/2017SCU035
02/11/2017SCU036
02/11/2017SCU038
03/11/2017SCU040
03/11/2017SCU041
03/11/2017SCU010
03/11/2017SCU042
03/11/2017SCU046
03/11/2017SCU049

<colgroup><col><col></colgroup><tbody>
</tbody>


Thanks

Stephen
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
So you want the pivot to show the earliest date the card number appears? You can do that yes. Put the card number in the rows and audit date in the values. Change it to min. You will then have unique card numbers and their earliest date.
 
Upvote 0
So you want the pivot to show the earliest date the card number appears? You can do that yes. Put the card number in the rows and audit date in the values. Change it to min. You will then have unique card numbers and their earliest date.

Thanks for your help but I don't think I explained it well. I Basically want to report on how many NEW cards I issue daily from the data, however the data has multiple entries every day for the same card numbers so I wanted the pivot or formula only show each card once in the total on the date it first appears.

Hope this makes sense

Thanks
Stephen
 
Upvote 0
Didnt that what i explained do? It will show each card just the once and will show you the date it first appeared. What have i missed?
 
Upvote 0
Like this?

Row LabelsMin of Audit Date
SCU00131/10/2017
SCU00231/10/2017
SCU00701/11/2017
SCU01031/10/2017
SCU02502/11/2017
SCU02702/11/2017
SCU03502/11/2017
SCU03602/11/2017
SCU03802/11/2017
SCU04003/11/2017
SCU04103/11/2017
SCU04203/11/2017
SCU04603/11/2017
SCU04903/11/2017
SCU05631/10/2017
SCU19102/11/2017

<colgroup><col><col></colgroup><tbody>
</tbody>
 
Upvote 0
Like this?

Row LabelsMin of Audit Date
SCU00131/10/2017
SCU00231/10/2017
SCU00701/11/2017
SCU01031/10/2017
SCU02502/11/2017
SCU02702/11/2017
SCU03502/11/2017
SCU03602/11/2017
SCU03802/11/2017
SCU04003/11/2017
SCU04103/11/2017
SCU04203/11/2017
SCU04603/11/2017
SCU04903/11/2017
SCU05631/10/2017
SCU19102/11/2017

<tbody>
</tbody>


Hello thanks again for looking at this. Basically, I am training about 70 people a day. Every time they come in a record of their card number (SCU001 etc) about 20 of those are new members with a new card number. I wanted to have a total every day from the data of only new card numbers.
 
Upvote 0
You can sort by the date and look at the top of the pivot for the date you require. Dates are numbers to excel with the most recent date being greater than past dates. If you want it to only show you a specific date you could put the dates in the total and the column part of the pivot and filter out the dates not required in the column. Refresh the pivot every day and filter by the new date.
 
Upvote 0

Forum statistics

Threads
1,215,307
Messages
6,124,172
Members
449,146
Latest member
el_gazar

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