How to create a pivot table in Microsoft Excel

A pivot table summarises a large data table so you can group and total it without hand-typed formulas. This guide suits beginners who already have a clean table of data in Excel. You only need Excel and a table with a header row.

YouTube video: Learn Pivot Tables in 6 Minutes (Microsoft Excel)

YouTube’s video details do not confirm captions. Check CC in the player for available tracks.

Other videos for this task

Video length
6 min 22 s
Time to do it
10 minutes
Difficulty
Easy
Steps
8

What you need

Steps

  1. Click any single cell inside your data table. Make sure the table has a header row and no completely blank rows or columns.

  2. Go to the Insert tab on the ribbon and click PivotTable. Excel selects the whole table range for you.

  3. Choose New Worksheet in the dialog and click OK. A blank pivot table layout opens on a new sheet.

  4. In the PivotTable Field List, drag a field such as a category or name into the Rows area.

  5. Drag a numeric field, such as an amount or quantity, into the Values area. Excel sums it by default.

  6. Drag another field into the Columns area if you want a second breakdown across the top of the table.

  7. Use the drop-down arrows on the row or column labels to sort, filter or clear items you do not need.

  8. Check the totals, then save the workbook. Refresh the pivot table after you change the source data.

Tips and common mistakes

Keep your source data tidy: one header row, no merged cells and no blank rows, or the range will be wrong.

If the source data changes, right-click the pivot table and choose Refresh instead of rebuilding it.

Put text fields in Rows or Columns and number fields in Values, or the totals will not make sense.

Questions

Where does the pivot table appear?

It goes on a new worksheet by default, so your original data stays untouched. You can also place it on the same sheet.

Why are my numbers adding up instead of counting?

Excel sums number fields by default. Open the field settings in the Values area and switch to Count if you want to count rows.

Do I need to select the whole table first?

No. Clicking one cell inside the table is enough, because Excel detects the surrounding range automatically.

The notes are drafted automatically from video details and general task knowledge. How the guide was prepared

Report a correction

More in Apps & Software

See all