← All lessons
Spreadsheets · Lesson 10 of 10

Summary tables

A pivot table groups rows and totals each group: sales per region, spending per month. Spreadsheets build one from a menu (Insert, then PivotTable or Pivot table), and it's worth trying on your own data.

You can make the same summary with the formulas from this course, and it updates the moment the data changes. List each group once in a column, then use SUMIF, COUNTIF or AVERAGEIF with the group's name, and lock the data ranges with $ so the formula copies down cleanly: =SUMIF($B$2:$B$8,E2,$C$2:$C$8).

Newer versions can also list the groups for you with UNIQUE(B2:B8), which spills the answers into the cells below. Add a second condition with COUNTIFS or SUMIFS for two-way summaries, such as big deals per region.

Practice

Total the sales for each region in F2 (copied to F4).

ABCDEF
1RepRegionSalesRegionTotal
2AnaNorth1200North
3BenSouth800South
4CaraNorth950East
5DevEast400
6EliSouth1500
7FayEast700
8GusNorth650

F2

More info

Quick reference

SUMIF / COUNTIF / AVERAGEIFOne line per group, ranges locked with $.
SUMIFS / COUNTIFSTwo-way summaries.
UNIQUE(range)Lists each group once (newer versions).

The practice answers

Other formulas that give the same results count too.

  1. Total the sales for each region in F2 (copied to F4). =SUMIF($B$2:$B$8,E2,$C$2:$C$8)
  2. Now count the deals per region in G2 (copied to G4). =COUNTIF($B$2:$B$8,E2)
  3. The average sale per region goes in H2 (copied to H4). AVERAGEIF works, and so does Total divided by Deals. =AVERAGEIF($B$2:$B$8,E2,$C$2:$C$8)
  4. How many deals of 900 or more did each region make? Count them in F2 (copied to F4). =COUNTIFS($B$2:$B$8,E2,$C$2:$C$8,">=900")

An unofficial course. Not made by or affiliated with Microsoft; Excel is a trademark of Microsoft Corporation.