How to create a PivotTable in Excel: step-by-step guide
Build a PivotTable from scratch with Insert → PivotTable: picking the range, dragging fields, the tabular layout and the most common mistakes.
Creating a PivotTable takes three stages: pick the source, choose where the PivotTable goes, and drag fields into areas. The first time it takes 2 minutes, after that — 15 seconds.
As an example, we’ll take a computer shop’s sales table and build a “regions × products” report. The result is below — we’ll get there in 7 steps.
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Sum of Amount | Column Labels | ||||
| 2 | Row Labels | Laptop | Monitor | Printer | Grand Total | |
| 3 | Bukhara | 17 000 000 | 9 600 000 | 26 600 000 | ||
| 4 | Samarkand | 8 500 000 | 12 000 000 | 20 500 000 | ||
| 5 | Tashkent | 25 500 000 | 9 600 000 | 6 400 000 | 41 500 000 | |
| 6 | Grand Total | 51 000 000 | 21 600 000 | 16 000 000 | 88 600 000 | |
| 7 |
A PivotTable in 7 steps
1
Click any single cell in the source table. You don’t need to select the whole table — Excel finds its edges itself.
| A | B | C | D | E | F | G | |
|---|---|---|---|---|---|---|---|
| 1 | Date | Region | Manager | Product | Qty | Amount | |
| 2 | 15.01.2025 | Tashkent | Aziz | Laptop | 3 | 25 500 000 | |
| 3 | 20.02.2025 | Samarkand1 | Dilnoza | Monitor | 5 | 12 000 000 | |
| 4 | 10.04.2025 | Tashkent | Malika | Printer | 2 | 6 400 000 | |
| 5 | 05.05.2025 | Bukhara | Javohir | Laptop | 2 | 17 000 000 | |
| 6 | 18.07.2025 | Samarkand | Dilnoza | Laptop | 1 | 8 500 000 | |
| 7 | 22.08.2025 | Tashkent | Aziz | Monitor | 4 | 9 600 000 | |
| 8 | 12.11.2025 | Bukhara | Javohir | Printer | 3 | 9 600 000 | |
| 9 |
2
Open the Вставка tab and click Сводная таблица. In Microsoft 365 a menu drops down — choose From Table/Range.
| A | B | C | D | E | F | G | |
|---|---|---|---|---|---|---|---|
| 1 | Date | Region | Manager | Product | Qty | Amount | |
| 2 | 15.01.2025 | Tashkent | Aziz | Laptop | 3 | 25 500 000 | |
| 3 | 20.02.2025 | Samarkand | Dilnoza | Monitor | 5 | 12 000 000 | |
| 4 | 10.04.2025 | Tashkent | Malika | Printer | 2 | 6 400 000 | |
| 5 |
3
A dialog opens (Create PivotTable in Excel 2016–2019, PivotTable from table or range in Microsoft 365). Check that Table/Range covers the whole table — Sheet1!$A$1:$F$8. Keep New Worksheet and click OK.
| A | B | C | D | E | F | G | |
|---|---|---|---|---|---|---|---|
| 1 | Date | Region | Manager | Product | Qty | Amount | |
| 2 | 15.01.2025 | Tashkent | Aziz | Laptop | 3 | 25 500 000 | |
| 3 | 20.02.2025 | Samarkand | Dilnoza | Monitor | 5 | 12 000 000 | |
| 4 | 10.04.2025 | Tashkent | Malika | Printer | 2 | 6 400 000 | |
| 5 | 05.05.2025 | Bukhara | Javohir | Laptop | 2 | 17 000 000 | |
| 6 | 18.07.2025 | Samarkand | Dilnoza | Laptop | 1 | 8 500 000 | |
| 7 | 22.08.2025 | Tashkent | Aziz | Monitor | 4 | 9 600 000 | |
| 8 | 12.11.2025 | Bukhara | Javohir | Printer | 3 | 9 600 000 | |
| 9 |
4
A new sheet shows an empty PivotTable placeholder and the PivotTable Fields pane on the right. The PivotTable starts at A3: rows 1–2 are left free for filters.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | ||||
| 2 | ||||
| 3 | PivotTable1 | |||
| 4 | ||||
| 5 | ||||
| 6 | ||||
| 7 |
5
Drag the Region field to the Rows area. Or simply tick it — text fields go to Rows automatically.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Row Labels | |||
| 2 | Bukhara | |||
| 3 | Samarkand | |||
| 4 | Tashkent | |||
| 5 | Grand Total | |||
| 6 |
6
Drag the Amount field to the Values area. Ticking a numeric field also sends it to Values, named Sum of Amount.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Row Labels | Sum of Amount | ||
| 2 | Bukhara | 26 600 000 | ||
| 3 | Samarkand | 20 500 000 | ||
| 4 | Tashkent | 41 500 000 | ||
| 5 | Grand Total | 88 600 000 | ||
| 6 |
7
Drag the Product field to the Columns area — the report becomes a cross-tab (the result above). Changed your mind? Drag Product from Columns to Rows and the report is rebuilt instantly.
The field list: 5 things to know
- Tick or drag. When ticked, text and date fields go to Rows, numbers go to Values. To put a field in a specific area, drag it.
- Removing. Untick the field or drag it out of the area and off the pane.
- Order matters. With two fields in Rows, the upper one is the outer group: Region → Product = products inside each region. Swap them and the report starts with products.
- Dates. In Excel 2016 and Microsoft 365 a date field dropped into Rows is often grouped automatically into years, quarters and months.
- The pane only shows inside the PivotTable. Click a cell outside it and the pane hides — that’s not a bug.
Pro level: make a PivotTable look like a plain table
The default Compact layout stacks all row fields into a single “Row Labels” column. That report is awkward to copy, look up with VLOOKUP or filter.
Click inside the PivotTable and open the Design tab:
- Report Layout → Show in Tabular Form — each field gets its own column with real headers (Region, Product).
- Report Layout → Repeat All Item Labels — blank cells are filled with the region name.
- Subtotals → Do Not Show Subtotals — removes the subtotal under each region.
The result is a clean “long” table you can copy and reuse in other reports.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Region | Product | Sum of Amount | |
| 2 | Bukhara | Laptop | 17 000 000 | |
| 3 | Bukhara | Printer | 9 600 000 | |
| 4 | Samarkand | Laptop | 8 500 000 | |
| 5 | Samarkand | Monitor | 12 000 000 | |
| 6 | Tashkent | Laptop | 25 500 000 | |
| 7 | Tashkent | Monitor | 9 600 000 | |
| 8 | Tashkent | Printer | 6 400 000 | |
| 9 | Grand Total | 88 600 000 | ||
| 10 |
Try it in the simulator
Find one PivotTable intersection with a formula: type =СУММЕСЛИМН(D2:D8;A2:A8;"Tashkent";B2:B8;"Laptop") in H2. The result equals the Tashkent × Laptop cell of the PivotTable — 25500000.
| A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | Region | Product | Qty | Amount | Tashkent × Laptop | |||||||||||||||||||
| 2 | Tashkent | Laptop | 3 | 25500000 | ||||||||||||||||||||
| 3 | Samarkand | Monitor | 5 | 12000000 | ||||||||||||||||||||
| 4 | Tashkent | Printer | 2 | 6400000 | ||||||||||||||||||||
| 5 | Bukhara | Laptop | 2 | 17000000 | ||||||||||||||||||||
| 6 | Samarkand | Laptop | 1 | 8500000 | ||||||||||||||||||||
| 7 | Tashkent | Monitor | 4 | 9600000 | ||||||||||||||||||||
| 8 | Bukhara | Printer | 3 | 9600000 | ||||||||||||||||||||
| 9 | ||||||||||||||||||||||||
| 10 | ||||||||||||||||||||||||
| 11 | ||||||||||||||||||||||||
| 12 |
Has ExcelLab been useful?
Support the project and help us release new lessons and exercises.