CountIF This=? AND This=?

V

vischo

I would like to count the cells that match two criteria.
How might I use a COUNTIF function.

Count cells in a row A if A1:A10 = "John" AND B1:B10 = "Yes".

A B
John No
John Yes
John Yes
Sue No
Sue Yes


Should equal two.

Thanks
 
V

vischo

Works exactly.

Could you also explain the syntax of the function, I haven't seen i
used that way before and the "--"?

Thanks
 

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