Count Function

  • Thread starter Thread starter Matt
  • Start date Start date
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.
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top