Basic Functions
Intermediate

COUNTIFS: count with two conditions

How many rows meet this condition and that one.

Task:

The service desk wants to know how many urgent tickets are still open in each team. Put the count of tickets that are both High priority and Open for the Network team in G2 and for the Desktop team in G3.

Hints

+5 XPno-hints bonus

Solve it on your own to keep the bonus. Each hint gets one step closer to the formula.

The data in this exercise

This is the grid you start with. Cell references in the task — B6, C2 — point at the row numbers and column letters below.

9 rows × 7 columns2 cells you fill in
ABCDEFG
1TicketTeamPriorityStatusTeamHigh & open
2T-801NetworkHighOpenNetwork
3T-802DesktopLowOpenDesktop
4T-803NetworkHighClosed
5T-804DesktopHighOpen
6T-805NetworkHighOpen
7T-806DesktopHighOpen
8T-807NetworkLowOpen
9T-808DesktopHighClosed
What this exercise teachesMay contain the answer

COUNTIF can only test one thing, so counting "High and Open" with it means subtracting one count from another and hoping the logic holds. COUNTIFS counts a row only when every pair is true, which is the AND you meant.