count...how?

P

Peo Sjoblom

=SUMPRODUCT(1/COUNTIF(A1:A10,A1:A10))

or if there can be empty cells involved

=SUM(IF(LEN(A1:A10)>0,1/COUNTIF(A1:A10,A1:A10)))

entered with ctrl + shift & enter
 
H

Harlan Grove

...
...
or if there can be empty cells involved

=SUM(IF(LEN(A1:A10)>0,1/COUNTIF(A1:A10,A1:A10)))

entered with ctrl + shift & enter
...

Picky: array-entry unnecessary.

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

Less picky: A1:A10<>"" is likely more efficient than LEN(A1:A10)>0.
 

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