Counting cells that don't contain certain text

G

Guest

Is there a quick and easy way of counting the number of cells that don't
contain certain text strings

For example

Column A

Yes
No
Yes
Maybe
Maybe
No
Certainly
Definately
Yes

How could I count the number of cells that don't contain the word "yes" - in
this case the answer would be 6

Many thanks
 
B

Biff

Hi!

Try this:

=COUNTIF(A1:A9,"<>yes")

That will include empty and blank cells.

If you want to exclude empty/blank cells:

=SUMPRODUCT(--(A1:A9<>""),--(A1:A9<>"yes"))

Biff
 
D

Don Guillett

or if all cells are filled and j9 is the last cell with data
=COUNTIF(J1:J9,"<>yes")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top