Pivot Tables in Excel: Summarise a Year of Sales in Minutes
A pivot table summarises thousands of rows into a small table in a few clicks. Select your data, choose Insert, PivotTable, then drag fields into Rows, Columns and Values. A year of sales by month and product group takes a couple of minutes, and the table updates when you press Refresh. No formulas are needed, and the original data is never changed.
What do you need before you build a pivot table?
Pivot tables only work on tidy data. Before you start, check these:
- One header row, with a different, non-blank name over every column.
- One record per row: one sale, one invoice line or one bank transaction.
- No blank rows, no subtotal rows and no merged cells inside the data.
- Dates are real dates, not text. If they are left-aligned and will not sort properly they are probably text.
- Amounts are numbers, not text with a euro sign typed in.
The best habit is to turn the data into an Excel Table first (select it and press Ctrl+T). A table grows when you add rows, and a pivot built on it picks up the new rows on refresh. If the data is messy, clean it first with Power Query.
How do you build a pivot table step by step?
- Click any cell in the data, then Insert, PivotTable. Accept the table name and choose a new worksheet.
- In the field list, drag Product Group into Rows.
- Drag Amount into Values. It shows as Sum of Amount.
- Drag Date into Columns. Excel often groups dates automatically; if not, right-click a date, choose Group, and select Months and Years.
- Drag Customer or Region into Filters if you want to look at one slice.
- Right-click the numbers, choose Number Format, and set currency with no decimals for a clean report.
Worked example: a Dublin gift shop
Siobhán's shop in Dublin has 9,400 sales lines for 2026. Each line has a date, a product group (Cards, Candles, Homeware), a staff member and an amount. After the steps above her pivot shows:
- Cards: €38,400
- Candles: €52,800
- Homeware: €86,800
- Grand total: €178,000
She right-clicks a value, chooses Show Values As, then % of Grand Total. Homeware becomes 86,800 / 178,000 = 48.8%, candles 29.7% and cards 21.6%. In one minute she sees that nearly half her sales come from one group. Dragging Date into Columns and grouping by month shows that candles peak in November and December, which tells her when to buy stock.
How do you get more from a pivot table?
Show a change or a share
Under Show Values As you can display each value as a percentage of the row, column or grand total, or as a difference from the previous month. Percentage of the row total shows the mix inside each month.
Add a calculated measure
If you need average sale per transaction, drag Amount into Values a second time and change it to Average. If you need a margin, add cost and sales and use the Data Model option covered in our guide to Power Pivot.
Slicers and timelines
Slicers are buttons that filter the pivot. Choose PivotTable Analyze, Insert Slicer, and tick Staff Member. Clicking a name shows that person's sales. A timeline does the same for dates and lets a manager look at a quarter by dragging.
Refresh when the data changes
A pivot table does not update when the data changes until you right-click it and choose Refresh. Set it to refresh when the file opens under PivotTable Options, Data. If you add a new column to the data, check the field list.
Common pivot table mistakes
- Totals that look wrong because some amounts are text. Values stored as text are counted, not summed, so the pivot shows Count of Amount rather than Sum of Amount. Convert them to numbers.
- Blank rows in the source, which create a field called (blank).
- Forgetting to refresh after a change.
- Typing over a pivot table. Copy it as values to another sheet if you need to edit the numbers.
- Reporting a pivot without reconciling it. Check the grand total against your accounts, as our post on dashboards and KPIs recommends before you present any figures.
Key points
- Pivot tables summarise tidy data without formulas.
- Rows, Columns, Values and Filters are the four areas to learn.
- Group dates by month, show values as a percentage, and add slicers for managers.
- Always refresh, and always reconcile the grand total.
Our Strategic Management programme shows you how to read the figures a pivot table gives you, so you can spot the products and customers that decide your profit yourself.
Questions people ask
- How do I create a pivot table in Excel?
- Click any cell in your data, choose Insert, then PivotTable, and pick a new worksheet. Drag a text field such as Product into Rows and a number field such as Amount into Values. Excel builds the summary and you can adjust it by dragging fields.
- Why is my pivot table not updating?
- A pivot table only changes when you refresh it. Right-click it and choose Refresh, or turn on refresh on file open in PivotTable Options. If you added rows outside the source range, convert the source to an Excel Table so new rows are included.
- Why does my pivot table count instead of sum?
- Excel counts when the amounts include text, blanks or numbers stored as text. Convert the column to real numbers, refresh the pivot, then change the value field to Sum.