Statistical Functions
Intermediate

Average response time for one priority, one team

COUNTIFS and AVERAGEIFS both take range/criteria pairs — stack two and only rows matching all of them count.

Task:

You run the IT help desk queue for a mid-size company. This week's tickets are logged with their priority, the team that handled them, and how many hours each took to resolve. Leadership wants to know how the Network team is doing specifically on High-priority work: how many such tickets came through, and how long they took to resolve on average. Put the count in D10 and the average resolution time, in hours, in D11.

Learning Objectives:

  • Stack two conditions with COUNTIFS instead of nesting COUNTIF calls
  • Use AVERAGEIFS to average only the rows that satisfy every condition
  • Recognize when a question needs two conditions ANDed together, not one
Hints

Solve without hints for +5 XP

Interactive Spreadsheet

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.

ABCD
1TicketPriorityTeamHours
2TCK-101HighNetwork4
3TCK-102LowHelpdesk1.2
4TCK-103HighNetwork6
5TCK-104MediumSecurity3.5
6TCK-105HighHelpdesk2
7TCK-106HighNetwork5
8TCK-107LowNetwork0.8
9TCK-108MediumNetwork2.5
10High-priority Network tickets
11Average resolution hours (High/Network)
What this exercise teaches (contains the answer)

COUNTIF and AVERAGEIF only ever test one condition, so isolating "High priority and Network" needs their S-suffixed siblings, which take as many range/criteria pairs as required and only count a row where every pair matches. TCK-105 is High but handled by Helpdesk, so the second pair drops it from both the count and the average; TCK-107 and TCK-108 are Network but not High, so the first pair drops them. What is left — TCK-101, TCK-103 and TCK-106 — is the three rows behind D10, and AVERAGEIFS only feeds D11 the Hours from those same three rows rather than the whole column, which is why their average of 4, 6 and 5 comes out to a clean 5.