Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

I'm not summing numbers, but rather the number of occurrences of a keyword.

How is that done?

Sample Data:

Item  Completed
a     No
b     No
c     Yes
d     Yes
e     No

Total Completed: ?
share|improve this question
up vote 4 down vote accepted

This should do the job:

share|improve this answer

Use the CountIf function.

Syntax: =CountIf(range, "Yes")

share|improve this answer
I think you need to use" instead of '... – Peter Albert Feb 19 '13 at 19:52
@PeterAlbert you are correct – Kristian Feb 19 '13 at 19:54
@PeterAlbert Fixed it. Thanks. – Kruug Feb 19 '13 at 19:59

Use COUNTIF function. The COUNTIF function counts the number of cells within a range that meet a single criterion that you specify.

as per your reference the syntax should be...

Syntax: =COUNTIF(<RANGE>,"Yes")

Eg.: =COUNTIF(B2:B25,"Yes")

share|improve this answer

Your Answer


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.