Excel Pivot. Count ...
 

Subscribe now and choose from over 30 free gifts worth up to £49 - Plus get £25 to spend in our shop

[Closed] Excel Pivot. Count unique items

5 Posts
6 Users
0 Reactions
82 Views
 benz
Posts: 1143
Free Member
Topic starter
 

A bit like this...

I have items named 'Bike A' and 'Bike B' stored in 15 unique storage locations.

Sum of 'Bike A' is 15, stored in 10 unique storage locations, Sum of 'Bike B' is 16 stored in 11 unique storage locations.

So, on my pivot, how do I get it to count that there are only 2 x unique descriptions, being 'Bike A' and 'Bike B'?

I obviously have a much larger data set, but hopefully you get my drift....

Thanks.


 
Posted : 24/07/2018 9:05 pm
Posts: 0
Free Member
 

Not sure I understand this . IF you put Bike A into the pivot on the Y axis you will see it only once. Failing that would "count unique" help ?


 
Posted : 24/07/2018 9:18 pm
Posts: 1781
Free Member
 

Version 2013 has count distinct using powerpivot

http://www.contextures.com/pivottablecountunique.html


 
Posted : 24/07/2018 9:37 pm
Posts: 0
Free Member
 

Sounds like you need to upgrade to a database, or google group and count in excel.


 
Posted : 24/07/2018 9:52 pm
Posts: 840
Full Member
 

As above, not sure I understand the question... But - without using a Pivot Table (do you have to?) you can do this with a filter. This link explains it - basically, use a filter, then go to Data tab and use the Advanced Filters option.

https://support.office.com/en-us/article/count-unique-values-among-duplicates-8d9a69b3-b867-490e-82e0-a929fbc1e273

If that doesn't answer the question, perhaps you could post a (simplified) sample table?


 
Posted : 25/07/2018 1:06 am
Posts: 10848
Full Member
 

When you create the pivot table click the 'add to Data Model' box at the bottom of the dialogue, you'll then get a 'distinct count' option alongside the usual sum, count etc. in the pivot options


 
Posted : 25/07/2018 7:57 am