How to make a PivotTable in Excel
A PivotTable summarises a long list in a few clicks: total sales per city, number of loans per product, average balance per branch. You choose which field goes into the Rows (the categories) and which into the Values (what to add up or count), and Excel builds the table, including a Grand Total.
Build one in four steps
Your data needs a header row and no empty rows or columns in the middle.
1. Click any cell in the dataExcel selects the whole block.2. Insert → PivotTable → OKA new sheet opens with the PivotTable Fields pane.3. Drag a field to RowsFor example City: each city appears once.4. Drag a number field to ValuesFor example Amount: Excel sums it per city.Change what it calculates
Click the field in Values → Value Field Settings to switch from Sum to Count, Average, Max or Min. Add a second field to Columns for a cross-table.
Sum of AmountThe total per category.Count of AmountHow many rows per category.Average of AmountThe typical amount per category.Product in ColumnsA grid: cities down, products across.Common mistakes
- New data isn't included
- A PivotTable doesn't update by itself. Right-click it → Refresh, and turn the source into a Table (Ctrl+T) so new rows are included.
- Count instead of Sum
- Excel counts when a column has text or blanks. Clean the column, then switch Value Field Settings back to Sum.
- Dates split into years and months
- Excel groups dates automatically. Right-click a date → Ungroup if you want each day.
Tips
- Double-click any number in a PivotTable to see the rows behind it on a new sheet.
- For a summary that updates with formulas instead, use UNIQUE with SUMIF.
Frequently asked questions
What is a PivotTable used for?
To summarise data by category without formulas: totals, counts and averages per region, product, month or client.
How do I refresh a PivotTable?
Right-click inside it → Refresh, or Data → Refresh All (Ctrl+Alt+F5) to refresh every PivotTable in the file.
Can I make a PivotTable in Excel on a phone?
Viewing and refreshing works in the Excel mobile app; building and changing fields is much easier on a computer.
PivotTable or SUMIFS?
A PivotTable is faster to build and explore. SUMIFS gives you a fixed report layout that updates by itself and can sit next to other formulas.