Count Distinct?

S

SB

Does anyone know if there is a formula for count
distinct? I can't seem to find anything in the help on
it.
Thanks.
 
B

brendon

Jason, I try using the formula, but all I get is the
#DIV/0!. Am I doing something wrong.
 
H

Harlan Grove

brendon said:
Jason, I try using the formula, but all I get is the
#DIV/0!. Am I doing something wrong.
....

You likely have some blank cells in the range. If so, use either of the
following instead.

=SUMPRODUCT((A1:A100<>"")/(COUNTIF(A1:A100,A1:A100)+(A1:A100=""))

=SUMPRODUCT((1-ISBLANK(A1:A100))/(COUNTIF(A1:A100,A1:A100)
+ISBLANK(A1:A100)))

The first excludes blank cells and cells evaluating to "". The second
excludes only blank cells.
 

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