EXCEL · PIVOT TABLE GUIDE

How to make a pivot table in Excel

Short answer: Click inside your data, choose Insert, then PivotTable, pick a new worksheet, and drag column names into the Rows, Columns and Values boxes.

Updated 2 December 2026

These steps work in Excel for Microsoft 365, Excel 2021, 2019 and 2016 on Windows, and in Excel for Mac. Menu names are very slightly different in older versions, but the boxes you drag fields into are the same.

Before you start

Check your data has a single header row, no blank columns, and no total rows. If you can, turn it into an Excel table first: click inside it and press Ctrl+T (Cmd+T on a Mac). A table grows when you add rows, so the pivot table will include new data when you refresh it.

Create the pivot table

  1. Click any cell inside your data.
  2. On the Insert tab, choose PivotTable. In recent versions pick From Table/Range.
  3. Check the range or table name is right.
  4. Choose New Worksheet and select OK.
  5. A blank pivot table appears on a new sheet, with the PivotTable Fields pane on the right.

Add rows, columns and values

The Fields pane lists every column heading. Below the list are four boxes: Filters, Columns, Rows and Values. Drag a heading into a box to use it.

  1. Drag the field you want to group by, such as Region, into Rows.
  2. Drag the numbers you want to total, such as Sales, into Values. Excel shows “Sum of Sales”.
  3. Optionally drag a second field, such as Product, into Columns to make a grid.
  4. Optionally drag a field into Filters to add a drop-down above the table for including or leaving out values.

Change Sum to Count, Average, Min or Max

  1. In the Values box, click the field, for example Sum of Sales.
  2. Choose Value Field Settings.
  3. On Summarize Values By, pick Sum, Count, Average, Max, Min or another calculation.
  4. Select OK.

For counting each different value only once, see count unique values in a pivot table.

Sort and tidy the result

  • Sort: click the arrow on Row Labels and choose a sort, or right-click a total and choose Sort, Largest to Smallest.
  • Number format: in Value Field Settings choose Number Format so every cell uses the same currency and decimal places.
  • Layout: on the Design tab, Report Layout then Show in Tabular Form gives each row field its own column, which copies more cleanly.

Refresh when the data changes

A pivot table does not update by itself. After you change the source data, right-click anywhere in the pivot table and choose Refresh, or use Refresh All on the Data tab. If new rows are missing, see why your pivot table is not updating.

A faster way for a one-off summary

If you only need the numbers once, select your cells, copy them, and paste into the NetPivotal builder. Pick the rows, columns and calculation from drop-downs, then copy the result back into Excel.

Try the same steps on sample sales dataOpens the free pivot table builder with sample data

SKIP THE MENUS

Make a pivot table in seconds

Paste cells from Excel or Google Sheets and pick your rows, columns and calculation. Free, no sign-up, and nothing is uploaded.

Open the pivot table builder →