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
add comment

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

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

2 Answers

You can just use this:

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

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

COUNTIF(<range>, "YES")

should do it.

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.