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.

In my Microsoft Excel file, I have a column like this:

YES
NO
YES
YES
YES
NO
YES
YES

In a separate cell, using an equation or something, I want to count up the number of YESs in that column. How can I do this?

share|improve this question

migrated from stackoverflow.com Sep 9 '11 at 13:14

This question came from our site for professional and enthusiast programmers.

add comment

2 Answers

I don't think this really belongs on a programming forum.... But:

COUNTIF(<range>, "YES")

should do it.

share|improve this answer
    
this should be accepted –  Lưu Vĩnh Phúc Jun 13 at 8:51
add comment

You can just use this:

=COUNTIF(A:A, "YES")
share|improve this answer
add comment

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.