Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
luiss
 
Posts: n/a
Default Pivot table: how to count unique? need help!

this a table similar to the one I really have
serialnb label
111 a
111 b
222 a

I want to create a pivot that shows how many *unique* serials exist, and
also per label, etc.
Doing the "usual" pivot I get the following

Count of serialnb
serialnb label Total
111 a 1
b 1
222 a 1
Grand Total 3

How can I show the results I want? (should be 2 for unique serial numbers)
Many thanks!
luis
  #2   Report Post  
Posted to microsoft.public.excel.misc
Paul Lautman
 
Posts: n/a
Default Pivot table: how to count unique? need help!

luiss wrote:
this a table similar to the one I really have
serialnb label
111 a
111 b
222 a

I want to create a pivot that shows how many *unique* serials exist,
and also per label, etc.
Doing the "usual" pivot I get the following

Count of serialnb
serialnb label Total
111 a 1
b 1
222 a 1
Grand Total 3

How can I show the results I want? (should be 2 for unique serial
numbers) Many thanks!
luis


Drop serialnb into ROW area
Drop label into ROW area
Drop label into DATA area
That gives me

serialnb label Total
111 a 1
b 1
111 Total 2
222 a 1
222 Total 1
Grand Total 3


  #3   Report Post  
Posted to microsoft.public.excel.misc
luiss
 
Posts: n/a
Default Pivot table: how to count unique? need help!

Hi Paul,
thanks. That doesn't give the right answer though... i.e. would still see
that in total there are 3 devices (those are serial numbers of the devices)
but it is not true... there are 2 devices with distinct serial numbers and
happen that one has 2 lables attached and the other one...

luis

"Paul Lautman" wrote:

luiss wrote:
this a table similar to the one I really have
serialnb label
111 a
111 b
222 a

I want to create a pivot that shows how many *unique* serials exist,
and also per label, etc.
Doing the "usual" pivot I get the following

Count of serialnb
serialnb label Total
111 a 1
b 1
222 a 1
Grand Total 3

How can I show the results I want? (should be 2 for unique serial
numbers) Many thanks!
luis


Drop serialnb into ROW area
Drop label into ROW area
Drop label into DATA area
That gives me

serialnb label Total
111 a 1
b 1
111 Total 2
222 a 1
222 Total 1
Grand Total 3



  #4   Report Post  
Posted to microsoft.public.excel.misc
Paul Lautman
 
Posts: n/a
Default Pivot table: how to count unique? need help!

luiss wrote:
Hi Paul,
thanks. That doesn't give the right answer though... i.e. would still
see that in total there are 3 devices (those are serial numbers of
the devices) but it is not true... there are 2 devices with distinct
serial numbers and happen that one has 2 lables attached and the
other one...

luis

"Paul Lautman" wrote:

luiss wrote:
this a table similar to the one I really have
serialnb label
111 a
111 b
222 a

I want to create a pivot that shows how many *unique* serials exist,
and also per label, etc.
Doing the "usual" pivot I get the following

Count of serialnb
serialnb label Total
111 a 1
b 1
222 a 1
Grand Total 3

How can I show the results I want? (should be 2 for unique serial
numbers) Many thanks!
luis


Drop serialnb into ROW area
Drop label into ROW area
Drop label into DATA area
That gives me

serialnb label Total
111 a 1
b 1
111 Total 2
222 a 1
222 Total 1
Grand Total 3


I can offer 2 methods of doing this. One uses 2 tables, with the second
table based on the resoults of the first one.
The other uses a simple COUNTA() function to supply the result.

Both methds are a bit difficult to explain, so I'll pop an example on the
web for you.


  #5   Report Post  
Posted to microsoft.public.excel.misc
luiss
 
Posts: n/a
Default Pivot table: how to count unique? need help!



"Paul Lautman" wrote:

luiss wrote:
Hi Paul,
thanks. That doesn't give the right answer though... i.e. would still
see that in total there are 3 devices (those are serial numbers of
the devices) but it is not true... there are 2 devices with distinct
serial numbers and happen that one has 2 lables attached and the
other one...

luis

"Paul Lautman" wrote:

luiss wrote:
this a table similar to the one I really have
serialnb label
111 a
111 b
222 a

I want to create a pivot that shows how many *unique* serials exist,
and also per label, etc.
Doing the "usual" pivot I get the following

Count of serialnb
serialnb label Total
111 a 1
b 1
222 a 1
Grand Total 3

How can I show the results I want? (should be 2 for unique serial
numbers) Many thanks!
luis

Drop serialnb into ROW area
Drop label into ROW area
Drop label into DATA area
That gives me

serialnb label Total
111 a 1
b 1
111 Total 2
222 a 1
222 Total 1
Grand Total 3


I can offer 2 methods of doing this. One uses 2 tables, with the second
table based on the resoults of the first one.
The other uses a simple COUNTA() function to supply the result.

Both methds are a bit difficult to explain, so I'll pop an example on the
web for you.




Hi Paul,
ok. thanks. please let me know where I can see that.
I used COUNTA... but not a good solution as I want it to dinamically change
when i change the variables of the pivot.

thanks
luis


  #6   Report Post  
Posted to microsoft.public.excel.misc
Paul Lautman
 
Posts: n/a
Default Pivot table: how to count unique? need help!

luiss wrote:
"Paul Lautman" wrote:

luiss wrote:
Hi Paul,
thanks. That doesn't give the right answer though... i.e. would
still see that in total there are 3 devices (those are serial
numbers of the devices) but it is not true... there are 2 devices
with distinct serial numbers and happen that one has 2 lables
attached and the other one...

luis

"Paul Lautman" wrote:

luiss wrote:
this a table similar to the one I really have
serialnb label
111 a
111 b
222 a

I want to create a pivot that shows how many *unique* serials
exist, and also per label, etc.
Doing the "usual" pivot I get the following

Count of serialnb
serialnb label Total
111 a 1
b 1
222 a 1
Grand Total 3

How can I show the results I want? (should be 2 for unique serial
numbers) Many thanks!
luis

Drop serialnb into ROW area
Drop label into ROW area
Drop label into DATA area
That gives me

serialnb label Total
111 a 1
b 1
111 Total 2
222 a 1
222 Total 1
Grand Total 3


I can offer 2 methods of doing this. One uses 2 tables, with the
second table based on the resoults of the first one.
The other uses a simple COUNTA() function to supply the result.

Both methds are a bit difficult to explain, so I'll pop an example
on the web for you.




Hi Paul,
ok. thanks. please let me know where I can see that.
I used COUNTA... but not a good solution as I want it to dinamically
change when i change the variables of the pivot.

thanks
luis

See http://cjoint.com/?gouq44q3Mc
The COUNTA call will automatically change to take account of varying numbers
of serials


  #7   Report Post  
Posted to microsoft.public.excel.misc
Debra Dalgleish
 
Posts: n/a
Default Pivot table: how to count unique? need help!

You can add a field to the source data, and use it to calculate the
unique count in the pivot table. There's an example he

http://www.contextures.com/xlPivot07.html#Unique

luiss wrote:
this a table similar to the one I really have
serialnb label
111 a
111 b
222 a

I want to create a pivot that shows how many *unique* serials exist, and
also per label, etc.
Doing the "usual" pivot I get the following

Count of serialnb
serialnb label Total
111 a 1
b 1
222 a 1
Grand Total 3

How can I show the results I want? (should be 2 for unique serial numbers)
Many thanks!
luis



--
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html

  #8   Report Post  
Posted to microsoft.public.excel.misc
luiss
 
Posts: n/a
Default Pivot table: how to count unique? need help!

PERFECT!!!!!
that is exactly what I had asked!

great and excellent site!
thanks Debra

luis

"Debra Dalgleish" wrote:

You can add a field to the source data, and use it to calculate the
unique count in the pivot table. There's an example he

http://www.contextures.com/xlPivot07.html#Unique

luiss wrote:
this a table similar to the one I really have
serialnb label
111 a
111 b
222 a

I want to create a pivot that shows how many *unique* serials exist, and
also per label, etc.
Doing the "usual" pivot I get the following

Count of serialnb
serialnb label Total
111 a 1
b 1
222 a 1
Grand Total 3

How can I show the results I want? (should be 2 for unique serial numbers)
Many thanks!
luis



--
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html


  #9   Report Post  
Posted to microsoft.public.excel.misc
Debra Dalgleish
 
Posts: n/a
Default Pivot table: how to count unique? need help!

You're welcome! Thanks for letting me know that it helped.

luiss wrote:
PERFECT!!!!!
that is exactly what I had asked!

great and excellent site!
thanks Debra

luis

"Debra Dalgleish" wrote:


You can add a field to the source data, and use it to calculate the
unique count in the pivot table. There's an example he

http://www.contextures.com/xlPivot07.html#Unique

luiss wrote:

this a table similar to the one I really have
serialnb label
111 a
111 b
222 a

I want to create a pivot that shows how many *unique* serials exist, and
also per label, etc.
Doing the "usual" pivot I get the following

Count of serialnb
serialnb label Total
111 a 1
b 1
222 a 1
Grand Total 3

How can I show the results I want? (should be 2 for unique serial numbers)
Many thanks!
luis



--
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html





--
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2k Pivot Table refresh scenario GDCross Excel Discussion (Misc queries) 1 June 1st 06 09:12 PM
How do I use a pivot table to get an average count? Jeff Azano Excel Discussion (Misc queries) 1 January 20th 06 03:10 AM
pivot table rmsterling Excel Discussion (Misc queries) 5 November 14th 05 04:40 PM
pivot table created from another pivot table Kreed Excel Worksheet Functions 6 October 26th 05 04:16 PM
Count Unique in Pivot Table Nelson Excel Discussion (Misc queries) 6 April 10th 05 10:05 PM


All times are GMT +1. The time now is 06:45 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"