Statistical Functions
Intermediate

Total closed deals by region with SUMIFS

One number the sales manager actually asked for, buried in a log that answers a different question by default.

Task:

The regional manager wants to know how the West region's closed deals are doing. From the deal log, work out the total value of closed deals in the West region in B8, how many closed West deals there were in B9, and the average size of those deals in B10.

Learning Objectives:

  • Combine two conditions in SUMIFS, COUNTIFS and AVERAGEIFS
  • See that all three apply the same AND test to decide which rows count
  • Read range/criteria pairs as the way Excel expresses 'and' between conditions
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
1RepRegionStatusAmount
2Alicia FerrerWestClosed4200
3Ben OkoroEastClosed3100
4Priya NairWestOpen2600
5Diego VelaWestClosed5100
6Hana KobayashiEastOpen1900
7
8Total closed value (West)
9Number of closed deals (West)
10Average closed deal size (West)
What this exercise teaches (contains the answer)

SUMIFS narrows the range with an AND across every criteria pair before it adds anything up, which is why Ben's closed East deal and Priya's still-open West deal both drop out even though each one satisfies exactly one of the two conditions on its own. COUNTIFS applies that identical AND test to count rows instead of summing them, and AVERAGEIFS applies it again to average them — three separate formulas, but one shared definition of which rows qualify, which is why dividing the total by the count reproduces the average without either formula referring to the other.