excelback.com
=ARTICLES

How to create a pivot table in Excel (step-by-step)

A pivot table summarizes a big table of raw data — totals, counts, averages — without writing a single formula. You drag fields into place, and it does the math.

Step 1: Prepare your data

Pivot tables need a proper table, not just data that looks organized:

  • One row per record, with column headers in the first row
  • No blank rows or columns inside the range
  • No merged cells
  • Each column holds one kind of value (a “Region” column, not a mix of regions and subtotals)

Messy source data is the single biggest cause of pivot table problems — sort this out first and everything downstream gets easier.

Step 2: Insert the pivot table

Click anywhere inside your data, then Insert → PivotTable. Excel guesses the range automatically — confirm it’s correct, choose New Worksheet, and click OK.

Step 3: Build it

A PivotTable Fields pane appears with your column headers listed at the top and four boxes below: Filters, Columns, Rows, and Values.

  • Drag a category field (like “Region”) into Rows to group by it
  • Drag a number field (like “Revenue”) into Values to total it
  • Drag another category (like “Product”) into Columns to break it out side by side
  • Drag a field into Filters to add a dropdown that limits the whole table

The pivot table updates instantly as you rearrange fields — this is the part worth just experimenting with.

Step 4: Change how values summarize

By default, numbers get summed and text gets counted. To change that, click the field in the Values box, choose Value Field Settings, and pick Sum, Count, Average, Max, Min, or a few others.

Common mistakes

  • “(blank)” showing up as a category — usually means there are empty cells in that column in the source data.
  • Forgetting to refresh — a pivot table doesn’t update automatically when the source data changes. Right-click anywhere in it and choose Refresh.
  • New rows not appearing after refresh — if you added rows past the original range, refreshing won’t pick them up. Rebuild the source as a proper Excel Table (Insert → Table) first, and the pivot table’s range will expand automatically.

When a formula is enough

For a single number — “total revenue where region is North” — a formula like SUMIFS is often faster than building a whole pivot table. Reach for a pivot table when you need to slice the same data multiple ways, or explore it interactively rather than compute one fixed answer.