How to Make a Pivot Table in Excel (Step by Step)
Build your first pivot table in five steps, then group by month, show % of total, add a slicer, and fix the three problems that trip up almost everyone.
11 min read · Updated August 28, 2026
A pivot table is Excel's answer to "summarize this for me." You point it at a table of rows — orders, tickets, transactions — and drag fields into four boxes; it produces totals, counts, and averages by any grouping you choose, with no formulas. Most people who avoid pivot tables do so because the first one they built showed nonsense. This tutorial builds one that doesn't, then adds the four features that make pivots genuinely useful.
Before you start: the source table
A pivot needs a flat table: one header row, one record per row, no blank rows, no total rows inside the data, no merged cells. This example uses a sales sheet:
| Region | Product | Units | Revenue | Date |
|---|---|---|---|---|
| North | Widget | 120 | 2400.50 | 2024-01-15 |
| South | Widget | 80 | 1600 | 2024-01-20 |
| North | Gadget | 45 | 4500 | 2024-02-03 |
| East | Gadget | 60 | 6000 | 2024-02-11 |
| West | Widget | 200 | 4000 | 2024-03-14 |
| East | Gizmo | 30 | 2700 | 2024-03-22 |
Do one thing first: click any cell in the data and press Ctrl+T (Cmd+T on Mac) to turn it into a Table. This is the single most important habit in this guide — a pivot built on a Table grows automatically when you add rows. A pivot built on a plain range doesn't, and "my pivot doesn't show the new data" is the number one pivot complaint.
Step 1: insert the pivot
Click inside the Table → Insert → PivotTable → keep New Worksheet → OK. You get an empty pivot on the left and the PivotTable Fields pane on the right, with your column names at the top and four boxes below: Filters, Columns, Rows, Values.
Step 2: rows and values
Drag Region to Rows and Revenue to Values. You now have revenue by region:
| Region | Sum of Revenue |
|---|---|
| East | 8700 |
| North | 6900.5 |
| South | 1600 |
| West | 4000 |
That's a pivot. Everything else is refinement.
If Values shows Count of Revenue instead of Sum, at least one revenue cell is text (see cleaning messy data). Click the field → Value Field Settings → Sum as a temporary fix, but convert the column properly.
Step 3: a second dimension
Drag Product to Columns. The pivot becomes a grid — regions down, products across, revenue in the cells, with grand totals on both axes. Twelve numbers you'd otherwise have written twelve SUMIFS for (see SUMIFS vs pivot tables for when a formula is the better choice).
Drag Product from Columns to Rows beneath Region and you get a nested outline instead of a grid. Both are the same data; pick whichever reads better.
Step 4: group dates by month
Drag Date to Rows. Modern Excel groups dates into Years/Quarters/Months automatically. If it shows individual dates instead, right-click any date in the pivot → Group → pick Months (and Years if the data spans more than one).
Move Region out of Rows and you have monthly revenue — a trend table in three drags. This grouping is something formulas do awkwardly; pivots do it natively.
Step 5: format and name
- Right-click a value → Number Format → Currency. Formatting the pivot's value field formats every cell at once, including new ones after refresh.
- Click the "Sum of Revenue" header and type a better name, like "Revenue".
- Design tab → Report Layout → Show in Tabular Form and Repeat All Item Labels gives you a flat table that can be copied elsewhere without blank cells.
Four features worth learning next
Percent of total
Drag Revenue into Values a second time. Right-click the second one → Show Values As → % of Grand Total (or % of Column Total for share within a region). Now each region shows both its revenue and its share.
Count of distinct things
"How many different products did each region sell?" A normal count counts rows. For distinct counts, check Add this data to the Data Model when you insert the pivot; then Value Field Settings offers Distinct Count.
Slicers
PivotTable Analyze → Insert Slicer → Product. You get clickable buttons that filter the pivot; far friendlier than the Filters box, and one slicer can control several pivots (right-click the slicer → Report Connections).
Sorting and top N
Right-click a region → Sort → Largest to Smallest by revenue. For "top 3 products", click the Product dropdown → Value Filters → Top 10 and change 10 to 3.
The three problems everyone hits
1. New rows don't appear. The pivot reads a fixed range. Fix: make the source a Table (Ctrl+T) and right-click the pivot → Refresh after every change. If the source is already a Table and rows still don't appear, PivotTable Analyze → Change Data Source and confirm it points at the Table name.
2. A "(blank)" row appears. Some source rows have an empty Region. Either fill them in or filter (blank) out — but know that the rows exist, because they're missing from every regional total.
3. Totals are double what they should be. The source data contains subtotal or "Total" rows, and the pivot summed them too. Delete them from the source; a pivot makes its own totals.
When a pivot is the wrong tool
Pivots are for exploring and reporting. They're the wrong tool when a number needs to live in a specific cell of a dashboard (use SUMIFS), when the logic needs auditing cell by cell, or when the question is a one-off you'll never ask again.
For one-off questions, upload the sheet to ChatExcel and ask "revenue by region and product" — the grid comes back in seconds, as does "which region grew most from January to March?", which no pivot layout answers directly. When you want the pivot in the workbook permanently, ask "how do I build that as a pivot table?" and you'll get the field placement for your actual columns.
- Why does my pivot table say Count instead of Sum?
- At least one cell in that column is text or blank, so Excel defaults to counting. Convert the column to numbers (Data → Text to Columns → Finish), refresh, then set the field to Sum via Value Field Settings.
- How do I refresh a pivot table?
- Right-click anywhere in the pivot and choose Refresh, or use PivotTable Analyze → Refresh All. Pivots never update automatically; make the source a Table so new rows are included when you refresh.
- How do I group dates by month in a pivot table?
- Add the date field to Rows; recent Excel groups it automatically. Otherwise right-click a date in the pivot → Group → choose Months (and Years for multi-year data). Dates stored as text can't be grouped — convert them first.
- Can a pivot table show percent of total?
- Yes. Add the value field to Values a second time, right-click it → Show Values As → % of Grand Total (or % of Column/Row Total for shares within a group).