Count distinct

D

Debbie t

Is there a simple way I can count only one occurence of a text value in a
list where there are several duplicates.
Thanks
 
M

mzehr

Hi Debbie,
Try the following entered as an array (Shift-Ctrl-Enter):
=SUM(1/COUNTIF(Range1,Range1))
For example if you have
a
b
a
c
d
e
s
w
a

in column a
then =SUM(1/COUNTIF(A1:A9,A1:A9)) entered as an array will properly return 7
 

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