Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Nelson
 
Posts: n/a
Default Count Unique in Pivot Table

Hi,

I have a large list - and was wondering how to count unique numbers (eg.
customer IDs) in a pivot table.
I have arranged my data so each location is shown in the rows.

Can this be done? So far I can only get the data field to count the total
entries, but not unique entries by location.

If not - is there a way to do this with a formula?

Any help appreciated.

Nelson


  #2   Report Post  
Jim Cone
 
Posts: n/a
Default

Nelson,

Add a title directly above the list
Select the title and list
Go to Data | Pivot Table
On the layout view, drag the title to the row field.
AND drag the title to the data field.
"OK" and "Finish" your way out of the pivot Table.

You will have a list of all the numbers with the count for each.
This can be copied and pasted where you want.

Jim Cone
San Francisco, USA


"Nelson" wrote in message
Hi,
I have a large list - and was wondering how to count unique numbers (eg.
customer IDs) in a pivot table.
I have arranged my data so each location is shown in the rows.
Can this be done? So far I can only get the data field to count the total
entries, but not unique entries by location.
If not - is there a way to do this with a formula?
Any help appreciated.
Nelson


  #3   Report Post  
Debra Dalgleish
 
Posts: n/a
Default

A pivot table won't calculate a unique count. You could add a column to
the list, then add that field to the pivot table.

For example, to count unique items in column A, use the following formula:

=IF(COUNTIF($A$1:A2,A2)=1,1,0)

Copy this formula down to all rows in the list, then add the field to
the pivot table.


Nelson wrote:
Hi,

I have a large list - and was wondering how to count unique numbers (eg.
customer IDs) in a pivot table.
I have arranged my data so each location is shown in the rows.

Can this be done? So far I can only get the data field to count the total
entries, but not unique entries by location.

If not - is there a way to do this with a formula?

Any help appreciated.

Nelson




--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html

  #4   Report Post  
Nelson
 
Posts: n/a
Default

Thanks Debra, but that formula won't work effectively - I have about 38,000
rows of data to work with - which slows my xls down.

Nelson


"Debra Dalgleish" wrote in message
...
A pivot table won't calculate a unique count. You could add a column to the
list, then add that field to the pivot table.

For example, to count unique items in column A, use the following formula:

=IF(COUNTIF($A$1:A2,A2)=1,1,0)

Copy this formula down to all rows in the list, then add the field to
the pivot table.


Nelson wrote:
Hi,

I have a large list - and was wondering how to count unique numbers (eg.
customer IDs) in a pivot table.
I have arranged my data so each location is shown in the rows.

Can this be done? So far I can only get the data field to count the total
entries, but not unique entries by location.

If not - is there a way to do this with a formula?

Any help appreciated.

Nelson



--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html



  #5   Report Post  
Myrna Larson
 
Posts: n/a
Default

The only other option that I can think of is to select the column with the ID
numbers, then use Filter/Advanced Filter, check Copy to Another Location and
Unique Records only. Then you can count the number of items in the new list.

On Sun, 10 Apr 2005 11:18:53 +0930, "Nelson"
wrote:

Thanks Debra, but that formula won't work effectively - I have about 38,000
rows of data to work with - which slows my xls down.

Nelson


"Debra Dalgleish" wrote in message
...
A pivot table won't calculate a unique count. You could add a column to the
list, then add that field to the pivot table.

For example, to count unique items in column A, use the following formula:

=IF(COUNTIF($A$1:A2,A2)=1,1,0)

Copy this formula down to all rows in the list, then add the field to
the pivot table.


Nelson wrote:
Hi,

I have a large list - and was wondering how to count unique numbers (eg.
customer IDs) in a pivot table.
I have arranged my data so each location is shown in the rows.

Can this be done? So far I can only get the data field to count the total
entries, but not unique entries by location.

If not - is there a way to do this with a formula?

Any help appreciated.

Nelson



--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html





  #6   Report Post  
Nelson
 
Posts: n/a
Default

Ok thanks Myrna - I'll give that a go.

cheers

Nelson

"Myrna Larson" wrote in message
...
The only other option that I can think of is to select the column with the
ID
numbers, then use Filter/Advanced Filter, check Copy to Another Location
and
Unique Records only. Then you can count the number of items in the new
list.

On Sun, 10 Apr 2005 11:18:53 +0930, "Nelson"
wrote:

Thanks Debra, but that formula won't work effectively - I have about
38,000
rows of data to work with - which slows my xls down.

Nelson


"Debra Dalgleish" wrote in message
...
A pivot table won't calculate a unique count. You could add a column to
the
list, then add that field to the pivot table.

For example, to count unique items in column A, use the following
formula:

=IF(COUNTIF($A$1:A2,A2)=1,1,0)

Copy this formula down to all rows in the list, then add the field to
the pivot table.


Nelson wrote:
Hi,

I have a large list - and was wondering how to count unique numbers
(eg.
customer IDs) in a pivot table.
I have arranged my data so each location is shown in the rows.

Can this be done? So far I can only get the data field to count the
total
entries, but not unique entries by location.

If not - is there a way to do this with a formula?

Any help appreciated.

Nelson


--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html





  #7   Report Post  
Ken Wright
 
Posts: n/a
Default

Why not just use Debra's suggestion and then copy and paste special the
column as values. That way you'll have the data and see no impact on
performance. Obviously if you change the source data then you need to
repeat the exercise, but any other manual option will likely be more tedious
anyway.

--
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL 97/00/02/03

----------------------------------------------------------------------------
It's easier to beg forgiveness than ask permission :-)
----------------------------------------------------------------------------

"Nelson" wrote
in message ...
Ok thanks Myrna - I'll give that a go.

cheers

Nelson

"Myrna Larson" wrote in message
...
The only other option that I can think of is to select the column with

the
ID
numbers, then use Filter/Advanced Filter, check Copy to Another Location
and
Unique Records only. Then you can count the number of items in the new
list.

On Sun, 10 Apr 2005 11:18:53 +0930, "Nelson"
wrote:

Thanks Debra, but that formula won't work effectively - I have about
38,000
rows of data to work with - which slows my xls down.

Nelson


"Debra Dalgleish" wrote in message
...
A pivot table won't calculate a unique count. You could add a column to
the
list, then add that field to the pivot table.

For example, to count unique items in column A, use the following
formula:

=IF(COUNTIF($A$1:A2,A2)=1,1,0)

Copy this formula down to all rows in the list, then add the field to
the pivot table.


Nelson wrote:
Hi,

I have a large list - and was wondering how to count unique numbers
(eg.
customer IDs) in a pivot table.
I have arranged my data so each location is shown in the rows.

Can this be done? So far I can only get the data field to count the
total
entries, but not unique entries by location.

If not - is there a way to do this with a formula?

Any help appreciated.

Nelson


--
Debra Dalgleish
Excel FAQ, Tips & Book List
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
Using a Pivot Table Calculated Field to get a Unique Count Mike Struckman Excel Worksheet Functions 1 November 22nd 05 05:32 PM
Pivot Table Problems Rachel Gonsior Excel Discussion (Misc queries) 3 March 21st 05 07:24 PM
Count in Pivot Table waxwing Excel Worksheet Functions 5 February 21st 05 08:37 PM
Pivot Table Unique Count bsantona Excel Worksheet Functions 1 February 11th 05 09:27 PM
How do I get a pivot table to sum instead of giving me a count? kmm Excel Worksheet Functions 1 November 5th 04 03:44 PM


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

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

About Us

"It's about Microsoft Excel"