ExcelUnpackUnpack Excel, one formula at a time.
Log inSign up

Lesson 73 · Pivot tables

Pivot tables: count, average and max in Excel

A pivot table adds up numbers by default. Value Field Settings lets you change that to Count, Average, Max or Min, so one table can answer many kinds of questions.

Practice this lesson →Pro lesson. The first 4 lessons are free.

What you will learn

  • Count orders with a pivot table
  • Show the average, biggest or smallest number
  • Show two kinds of numbers at once

How it works

When you drag a number into Values, Excel adds it up. This is called Sum.

To change it, click the field in the Values box (for example Sum of Amount ▾) and click Value Field Settings. Pick Count, Average, Max or Min, then click OK.

You can also right-click a number in the pivot table and use Summarize Values By.

You can also put two fields in Values. Then you see two columns of numbers.

Where things go

Sumadd up
Counthow many
Averagethe average
Max / Minbiggest / smallest

Example

Make a pivot table. Count how many orders each Region has.

The data (first rows):

ABCDEF
1OrderRegionProductMonthAmountStatus
21001NorthLaptopJan$1,370.00Shipped
31002NorthLaptopJan$790.00Shipped
41003WestPhoneJan$460.00Shipped
51004WestTabletJan$320.00Pending
61005WestTabletJan$550.00Shipped
71006WestPhoneJan$710.00Pending
81007NorthTabletJan$430.00Shipped

Click inside the data, then Insert › PivotTable › OK. Rows: Region. Values: Count of Order.

The pivot table you get:

Row LabelsCount of Order
East8
North11
South13
West16
Grand Total48

When to use it

  • Counting orders for each region
  • Average sale for each product
  • Biggest order in each month

Common mistakes

  • Counting with SumChange Sum to Count in Value Field Settings.
  • Using a text field for an averageAverage needs a number field.
  • Forgetting which value is whichRename the field in Value Field Settings if it helps.

Practice it on a real sheet

Reading is a start. Doing it is how it sticks. This lesson walks you through every click on a live spreadsheet and checks each answer.

Pivot tables: count, average and max in Excel: how it works, with examples · ExcelUnpack