The Google Sheets COUNTIFS function is used to count items in ranges with multiple test criteria.
It works like a COUNTIF function, but lets you include more than one conditional test.
Here’s an example with a small real estate example dataset:
How can we count the number of deals for apartments and buyers?
To count them, we use a COUNTIFS function:
=COUNTIFS(B2:B11,"Apartment",C2:C11,"Buyer")
There are three rows that are apartments AND buyers, highlighted in yellow.