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.

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

3 Answers 3

up vote 2 down vote accepted

This should do the job:

=COUNTIF(B2:B5,"Yes")
share|improve this answer

Use the CountIf function.

Syntax: =CountIf(range, "Yes")

share|improve this answer
1  
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
1  
@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

 
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.