Home » excel » excel – How to COUNTIF two sets of criteria are correct (likely easy)

excel – How to COUNTIF two sets of criteria are correct (likely easy)

Posted by: admin May 14, 2020 Leave a comment

Questions:

Firstly, there are a few (2) threads with /similar/ questions but they have very different criteria and are too complicated to be understood. I apologize if this is a dumb question. Also note: I need this to be a formula, not VBA, if possible. This is because I have to be able to share it with staff who have never used VBA and I need them to have a good understanding of the base functions (such as adjusting ranges, criteria, etc.).

I am trying to use a formula to count cells that meet two sets of criteria.

So essentially, I want a formula that says “if column C is = Closed and column B = January, count it.”

This is similar to “=COUNTIF(‘Data Sheet’!C:C,”Closed”)” but with added criteria.

It is essential that it meets both sets of criteria and only counts those cases. The correct total for the example would be 3.

Thank you for your help!

enter image description here

How to&Answers:

Adjust the ranges, and ‘Closed’ / ‘January’ criteria as needed.

=COUNTIFS(C1:C4,"Closed",B1:B4,"January")