Count unique items in range

T

Thom

Hi,

Can someone help me with a formula to count unique items in a range (incl
blank cells) ?

Example,

A B C
1 xx zz yy
2 zz xx
3 qq xx

I would like to see the result of the formula as,

A B
1 qq 1
2 xx 3
3 yy 1
4 zz 2

I've tried all the combinations of Count and Frequency with no success.
Should I use another function ?

Thanks for your help in advance,

Thom
 
R

Roger Govier

Hi Thom

I entered your list of items in E1:E4
In F1
=COUNTIF($A$1:$C$3,"="&E1)
and copy down
 
B

Bob Phillips

=SUMPRODUCT((A1:C3<>"")/COUNTIF(A1:C3,A1:C3&""))

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)
 

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

Top