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
 

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

Back
Top