How to create a pivot table in Excel from your data

A pivot table lets you summarise a large data range by dragging fields into rows, columns and values. This guide suits beginners who have a table of data in Excel and want quick totals and charts. You need Excel with a clean data range that has headers.

YouTube video: Pivot Table Excel Tutorial

Captions are available. Use CC in the YouTube player.

Other videos for this task

11 chapters. Tap a step to jump to it.Chapters from the creator
Choose a chapter (11)
Video length
13 min 36 s
Time to do it
15 minutes
Difficulty
Easy
Steps
10

What you need

Steps

  1. Click any cell inside your data range. Make sure every column has a header and there are no blank rows.

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

  3. Choose New Worksheet and click OK. A blank pivot table appears on the left.

  4. Drag a field into the Rows area to group your data, for example a product or region.

  5. Drag a field into the Columns area to split the results across the top.

  6. Drag a number field into the Values area. Excel sums it by default.

  7. Use the Filter area to limit which rows are counted.

  8. Click a value cell, open Value Field Settings, and pick Sum, Count, Average or another summary.

  9. Use Show Values As to display results as a percent of total or a running total.

  10. Select the pivot table and click Insert PivotChart to add a chart linked to it.

Tips and common mistakes

If your source data changes, click Refresh so the pivot table picks up the new rows.

Turn on Defer Layout Update to test several layouts before Excel recalculates.

Keep the source range free of merged cells and totals rows, or fields will group oddly.

Questions

Do I need a paid Microsoft 365 account?

No. You can build a basic pivot table in Excel for the web at office.com with a free account, though some features are limited.

Why does my pivot table show Count instead of Sum?

The Values field probably contains text or blanks. Open Value Field Settings and choose Sum, or clean the column first.

Can I add my own calculation?

Yes. Use Calculated Field in the pivot table options to build a formula from existing fields.

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