Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

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 '14 at 8:51

You can just use this:

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .