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

Lesson 74 · Pivot tables

Pivot tables: rows and columns in Excel

Drag one field into Rows and another into Columns to make a grid. Each box shows one row label and one column label, like West sales of Laptops.

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

What you will learn

  • Use the Rows and Columns boxes together
  • Find one number in the grid

How it works

Drag Region into Rows. Drag Product into Columns. Drag Amount into Values.

Each box in the grid is one region and one product. To find West Laptops, go across the West line to the Laptop column.

Where things go

Insert › PivotTablemake a pivot table
Rowsone line for each item
Columnsone column for each item
Valuesthe numbers
Filtersshow only some rows

Example

Make a pivot table. Put Regions down the side and Products across the top. Show the total Amount.

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. Columns: Product. Values: Sum of Amount.

The pivot table you get:

Row LabelsLaptopPhoneTabletGrand Total
East$890.00$1,260.00$2,320.00$4,470.00
North$7,020.00$2,480.00$430.00$9,930.00
South$6,800.00$2,230.00$1,150.00$10,180.00
West$6,640.00$3,500.00$1,770.00$11,910.00
Grand Total$21,350.00$9,470.00$5,670.00$36,490.00

When to use it

  • Sales by region and product
  • Orders by product and month
  • Any two-way summary

Common mistakes

  • Putting both fields in RowsOne goes in Rows, the other in Columns.
  • Reading the wrong boxGo across the row, then down to the column.
  • Too many columns to readPut the field with fewer items in Columns.

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: rows and columns in Excel: how it works, with examples · ExcelUnpack