How many different numbers in an array

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm trying to determine how many different numbers (disregarding duplicates)
are in an array of numbers (a1.a400). Thanks.
 
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
 
Back
Top