How many different numbers in an array

R

Rossta

I'm trying to determine how many different numbers (disregarding duplicates)
are in an array of numbers (a1.a400). Thanks.
 
P

Peo Sjoblom

It will fail if there are blank cells in the array, you could amend it like

=SUM(IF(A1:A400<>"",1/COUNTIF(A1:A400,A1:A400)))

but then it is less efficient that the other 2 formulas in this thread


--


Regards,


Peo Sjoblom
 
Top