How to Create a Pivot Table in Excel
Turn a long table into a summary — totals by category, counts by month, averages by region — in a few clicks, and refresh it when the data changes. Here's the step-by-step, plus a faster way to just ask.
The quick answer: click your data, go to Insert → PivotTable → OK, then drag a field to Rows and a number to Values. That's a working summary. Below is each step, plus grouping by month and the Count-vs-Sum gotcha that trips everyone.
1. Insert the PivotTable
Click any cell inside your data — Excel picks up the whole range automatically as long as there are headers and no empty columns. Go to Insert → PivotTable, choose New Worksheet, and click OK. You get an empty pivot and a PivotTable Fields pane on the right.
2. Drag fields into place
The pane has four boxes. The two you need first:
- Rows — the thing you're grouping by. Drag
RegionorCustomerhere. - Values — the number you're summarizing. Drag
Amounthere and Excel totals it per row group.
Add a field to Columns to cross-tabulate (e.g. Region down the side, Month across the top), and to Filters to slice the whole thing by, say, one product line.
3. Switch Sum, Count, Average
Click the field in Values → Value Field Settings and pick the calculation. Watch for this: if Excel shows Count when you wanted Sum, the column contains text or blanks somewhere. Clean it, or it silently counts instead of adding.
4. Group by month
Put a date field in Rows, right-click any date in the pivot, choose Group, and pick Months (add Years if the data spans more than one). Daily dates roll up into clean monthly totals.
5. Refresh when data changes
Pivots don't auto-update. Right-click → Refresh after new rows land. Build the pivot on an Excel Table (Ctrl+T) first and the source range grows on its own, so refresh always catches new data.
Skip the pivot — just ask
Quiriz answers "total revenue by region this month" in plain English and returns it in seconds — no dragging fields, no refresh. Free to start.
Try Quiriz free →