Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Alan
 
Posts: n/a
Default Count number of Unique values

A belated Happy New Year to All

Wondering if it is possible to count the number of unique values in a column
???

A column contains 5 digit numeric values and I am looking for a method that
will tell me how many different values are in the column.

ie 23456 34567 56789 23456 56789 = 3 ??

Any help appreciated

Thanks
  #2   Report Post  
Dave R.
 
Posts: n/a
Default

Try something like

=SUMPRODUCT(1/COUNTIF(A1:A10,A1:A10))

reference:
http://www.pcmag.com/article2/0,1759,1537551,00.asp


"Alan" wrote in message
...
A belated Happy New Year to All

Wondering if it is possible to count the number of unique values in a

column
???

A column contains 5 digit numeric values and I am looking for a method

that
will tell me how many different values are in the column.

ie 23456 34567 56789 23456 56789 = 3 ??

Any help appreciated

Thanks



  #3   Report Post  
JulieD
 
Posts: n/a
Default

Hi Alan

use the following ARRAY formula (enter with control & shift & enter, not
just enter)

=SUM(1/COUNTIF(A1:A10,A1:A10))

Cheers
JulieD


"Alan" wrote in message
...
A belated Happy New Year to All

Wondering if it is possible to count the number of unique values in a
column
???

A column contains 5 digit numeric values and I am looking for a method
that
will tell me how many different values are in the column.

ie 23456 34567 56789 23456 56789 = 3 ??

Any help appreciated

Thanks



  #4   Report Post  
Dave R.
 
Posts: n/a
Default

Hmm - this (and the sumproduct one) seem to crap out with any blank cells in
the range. Here's the one that works:

=SUMPRODUCT((D1:D100<"")/COUNTIF(D1:D100,D1:D100&""))fromhttp://groups-beta
..google.com/group/microsoft.public.excel.worksheet.functions/msg/d5e376baefe
8898c




"JulieD" wrote in message
...
Hi Alan

use the following ARRAY formula (enter with control & shift & enter, not
just enter)

=SUM(1/COUNTIF(A1:A10,A1:A10))

Cheers
JulieD


"Alan" wrote in message
...
A belated Happy New Year to All

Wondering if it is possible to count the number of unique values in a
column
???

A column contains 5 digit numeric values and I am looking for a method
that
will tell me how many different values are in the column.

ie 23456 34567 56789 23456 56789 = 3 ??

Any help appreciated

Thanks





  #5   Report Post  
Aladin Akyurek
 
Posts: n/a
Default

Dave R. wrote:
Hmm - this (and the sumproduct one) seem to crap out with any blank cells in
the range. Here's the one that works:

=SUMPRODUCT((D1:D100<"")/COUNTIF(D1:D100,D1:D100&""))

[...]

Here is an explanatory post:

http://www.mrexcel.com/board2/viewtopic.php?t=73502


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
Count number of shaded cells Maddoktor Excel Discussion (Misc queries) 2 December 20th 04 08:35 PM
Formula to list unique values JaneC Excel Worksheet Functions 4 December 10th 04 12:25 AM
Unique values with criteria Hans Knudsen Excel Worksheet Functions 4 November 20th 04 06:59 PM
How do I count or display unique data in a column? kbeilers Excel Worksheet Functions 1 November 12th 04 04:51 AM
Count of unique items meeting condition Tim C Excel Worksheet Functions 1 November 12th 04 03:03 AM


All times are GMT +1. The time now is 07:26 AM.

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"