Count Function

M

Matt

Does anyone know of a function that will count how may
unique items exist in a list?

For example, suppose the following list:

A
B
A
C
D
D

I would want the formula to return an answer of 4, since
this is the number of unique items (A, B, C & D) and so
not to count the multiples of some items.

Any ideas?

Many thanks in advance.
 
D

Dave Ramage

Picked this up in this group some time ago..

=SUM(IF(FREQUENCY(IF(LEN(A1:A100)>0,MATCH
(A1:A100,A1:A100,0),""), IF(LEN(A1:A100)>0,MATCH
(A1:A100,A1:A100,0),""))>0,1))

This is an array formula, so do Shift+Ctrl+Enter

Cheers,
Dave
 
Top