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?

link|improve this question

29% accept rate
feedback

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")
link|improve this answer
feedback

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

COUNTIF(, "YES")

should do it.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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