Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Example range:

A10=100, 
A11=105, 
A12=100, 
A13=100, 
A14=7, 
A15=105.  

The formula I need would display "3" only as there are only 3 unique values in this set. The spreadsheet will be updated to add more values as needed in the column "A". Blanks should not be included in any total.

share|improve this question

1 Answer 1

up vote 3 down vote accepted

From here:

=SUM(IF(FREQUENCY(A10:A1000,A10:A1000)>0,1))
share|improve this answer
    
Thank you, this seems to work –  amandau Mar 8 '11 at 20:56

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.