Excel PivotTables in Five Minutes: Group, Slice, Refresh
Turn a long list into answers with an Excel PivotTable, then group dates, add slicers and keep the numbers fresh.
A PivotTable is the fastest way to turn a long, boring list into an answer. Which month brought the most sales? Which product family costs you the most? Who on the team sold what last quarter? Instead of writing a dozen SUMIF formulas, you drag a few fields around and Excel does the math.
If PivotTables have always looked like something for accountants, give this guide five minutes. We use Excel in Microsoft 365 on Windows. Excel 2021 and 2024 work almost the same way.
Step 1: Get your list in shape
PivotTables are picky about one thing: the source data. Before you click anything, check your list:
- Data sits in columns, with exactly one header row on top.
- Every column has a header. No blank header cells.
- Each column holds one kind of data. Don't mix numbers and text in the column you want to add up.
That last point causes the most confusion. If Excel sees text in a value column, it counts the entries instead of summing them, and your totals suddenly look tiny. Fix the data first, and you save yourself the head-scratching later.
Step 2: Insert the PivotTable
- Click any cell in your list, or select the whole range.
- Go to Insert > PivotTable.
- In the PivotTable from table or range dialog, check that Table/Range covers all your data.
- Choose New Worksheet so the PivotTable gets a clean sheet of its own. Pick Existing Worksheet only if you know where it should go.
- Click OK.
Check the range and choose New Worksheet. The Data Model option can stay off for a normal list.
Pro tip before you start: format your list as a table first with Ctrl+T. A table grows when you add rows, so the PivotTable picks up new data on refresh without you touching the range.
Not sure what to build? Next to the PivotTable button sits Recommended PivotTables, which suggests ready-made layouts based on your data.
Step 3: Build it by ticking boxes
A new sheet opens with an empty PivotTable on the left and the PivotTable Fields pane on the right. The top half lists your column headers. The bottom half has four areas: Filters, Columns, Rows and Values.
- Tick the box next to a field name. Excel guesses where it belongs: text fields go to Rows, numbers to Values, and date or time fields to Columns.
- Don't like the guess? Drag the field to another area.
- Want to see sales per region and per month? Put the region field in Rows, the date in Columns and the amount in Values.
The Fields pane: the four areas at the bottom decide the layout. The date field brought extra Quarters and Years fields with it.
By default, numbers in Values show up as a sum. To switch to average, count or maximum, click the small arrow next to the field in Values, choose Value Field Settings, and pick a calculation under Summarize Values By. On the Show Values As tab you can show each number as a percentage of the grand total instead, which makes shares jump out.
Annoyed by headers like "Sum of Amount"? Press Ctrl+H, search for "Sum of " and replace it with nothing. Do that last, though, because changing the calculation renames the field again.
Step 4: Group dates into months, quarters and years
Daily dates are useless in a summary. Nobody wants 365 columns. Excel often groups dates on its own when you add a date field: in the field list you'll then see extra entries such as Quarters and Years next to your date field. If that didn't happen, or you want a different grouping, do it by hand:
- Right-click any date inside the PivotTable and choose Group.
- In the Grouping box, check Starting at and Ending at and adjust them if you only want part of the data.
- Under By, select Months, Quarters, Years, or a combination. Click OK.
The same works for numbers. Group ages or order amounts into ranges by entering an interval, such as 10 or 100.
You can also group text items by hand. Hold Ctrl, select two or more items, right-click and choose Group. To give the new group a better name, select it and open PivotTable Analyze > Field Settings, then change the Custom Name. Changed your mind? Right-click any grouped item and choose Ungroup.
Step 5: Add slicers for one-click filtering
Filters in the PivotTable work, but slicers are friendlier. They're big buttons that show at a glance what you're looking at, which is great when you share the workbook with people who don't know PivotTables.
- Click anywhere in the PivotTable.
- Go to Insert > Slicer.
- In the Insert Slicers dialog, tick the fields you want to filter by, for example region or product family, and click OK.
- Click a button in the slicer to filter. Hold Ctrl to select several items. The Clear Filter button in the slicer's corner shows everything again.
Every ticked field gets its own slicer on the sheet.
The Slicer tab on the ribbon lets you pick a color style. Got a second PivotTable built from the same data? Select the slicer, go to Slicer > Report Connections, and tick the other PivotTable. Now one click filters both. To get rid of a slicer, select it and press Delete.
Step 6: Refresh when the data changes
This one trips up everybody once. You add new rows to your list, look at the PivotTable, and nothing has changed. PivotTables keep a snapshot of the data, so in most versions you have to refresh them.
- Right-click inside the PivotTable and choose Refresh, or press Alt+F5.
- Several PivotTables in the workbook? On the PivotTable Analyze tab, click the arrow under Refresh and pick Refresh All.
- Want fresh numbers every time the file opens? Go to PivotTable Analyze > Options, open the Data tab and tick Refresh data when opening the file.
If your column widths jump around after every refresh, open the same Options dialog, go to Layout & Format, and check Autofit column widths on update and Preserve cell formatting on update to your liking.
Microsoft is also testing an Auto Refresh button in the Data group of the PivotTable Analyze tab. It's currently available to Microsoft 365 Insider participants and updates PivotTables built from local workbook data automatically. Until it reaches your build, the manual refresh is your friend.
Quick fixes
Totals show counts instead of sums? There's text in your number column. Clean it, then refresh.
New rows are missing after a refresh? Your source range ends above them. Use PivotTable Analyze > Change Data Source, or turn the list into a table with Ctrl+T so it grows on its own.
A field landed in the wrong area? Drag it back out of the area at the bottom of the Fields pane, or untick it and start that part again. Nothing in your source list changes when you rearrange a PivotTable.
Our verdict
PivotTables are the best Excel feature most people never use. Anyone who works with sales lists, expense exports or survey data gets answers in minutes instead of building formula towers. Try it today with one real list: insert a PivotTable, group the dates by month, and add one slicer.
Related on UpdateStar
- Microsoft 365 on UpdateStar
- Alternatives to Microsoft 365, including WPS Office, Microsoft Office Professional and Microsoft Office 2010
- Tame Messy Excel Lists in Five Quick Moves


