Pivot Tables: Turn Data into Reports in Seconds
What is a Pivot Table and how do you build one? A step-by-step example, field layout, grouping and the most common mistakes — a practical Excel guide.

The boss asks: "Which product sold most in which city?" In front of you sits a five-thousand-row sales table. You could answer with SUMIFS — half an hour and ten formulas. With a Pivot Table, thirty seconds and zero formulas. When the second question comes ("and by month?"), the gap grows even wider.
The one-sentence answer to "what is a pivot table": an Excel tool that turns a raw data table into a summary report by drag and drop. You do not write formulas; you place fields, and Excel calculates. This article has the setup steps, a real example and the spots where practice trips people most.
When do you need a Pivot Table?
There are three signs. First: you need answers to "how many," "how much," "by which" questions — counts, sums, averages. Second: you need to look at the same data from different angles; by city today, by manager tomorrow. Third: the data updates regularly and the report should not be rebuilt each time. For a one-off simple sum, SUMIF is enough; pulling out a pivot for every task is excess complexity too.
Preparation: which table does a pivot love?
The Pivot Table has one demand: a properly structured source. That means: the first row holds column headers (one name per column), each row is one record, no merged cells, no blank rows, no subtotal rows. "Beautifully" formatted report tables (headers across two rows, totals in between) are the worst source for a pivot. The golden rule: the raw data lives on one sheet, the reports are built on another.
Step by step: your first pivot report
- Select any cell inside the table.
- Insert → PivotTable → OK (it will appear on a new sheet).
- On the right you will see four zones: Rows, Columns, Values, Filters.
- Drag the "City" field into Rows; the cities line up in the rows.
- Drag the "Amount" field into Values; each city's total is ready.
- Drop the "Product" field into Columns; the table becomes a city × product matrix.
That is all. The boss's question is answered in 30 seconds. When the "by month" question comes, drop the "Date" field into Rows; Excel will offer to group the dates by month and year automatically.
The logic of the four zones
| Zone | Its question | Example |
|---|---|---|
| Rows | By what do we split? | City, manager, category |
| Columns | What is the second split axis? | Month, year, product group |
| Values | What do we calculate? | Amount sum, order count, average ticket |
| Filters | What do we keep out? | Only 2026, only retail |
The Values zone's subtlety: the default calculation is Sum for numbers and Count for text. Switch between Average, Max and Count with right-click → Summarize Values By. You can also drop the same field into Values twice; one as a sum, one as a count.
The 4 spots where practice trips people
- Refresh is not automatic: when the source changes, the pivot stays old. Right-click → Refresh must become a habit. So new rows do not fall outside the range, make the source a Table with Ctrl+T; the range will expand itself.
- Blank cells break Count: if Values shows fewer counts than expected, check the source for blanks.
- "(blank)" rows: they come from empty values in the source; they can be filtered out, but the root fix is source cleanliness.
- Formatting gets lost: when the pivot refreshes, number formats can reset. With Value Field Settings → Number Format, the format binds to the field itself and becomes permanent.
One step up: slicers and calculated fields
A Slicer (Insert → Slicer) turns a filter into a button panel; when handing the report to a boss, saying "play with these buttons" is far easier than explaining a filter menu. A Calculated Field creates a new metric inside the pivot (for example, profit = sales − cost); it works for simple cases, and for complex models moving up to the Power BI level makes sense.
Let me state one limitation too: a pivot is an analysis tool, not a presentation tool. If print needs pixel-precise layout, custom headers and conditional design — carry the pivot's results to a separate report sheet with GETPIVOTDATA or plain references. Trying to decorate a pivot is wrestling with it.
Frequently asked questions about Pivot Tables
Does a Pivot Table change the source table?
No. The pivot reads from the source; it does not touch it. Experiment as much as you like; the raw data stays put. That is the pivot's least-known but most reassuring property.
Can one pivot be built from two different tables?
Yes — via the Data Model: make both tables a Table, build the link in Relationships and create the pivot from the model. The alternative: merge the tables beforehand with Power Query.
Does Google Sheets have pivots?
Yes: Insert → Pivot table, with the same logic. The capabilities are a little narrower than Excel's, but fully sufficient for everyday reports.
The pivot runs slowly — what to do?
On hundreds of thousands of rows a classic pivot can get heavy. Loading the source into the Data Model, dropping unnecessary columns and clearing the old cache (PivotTable Options → Data) is the road back to speed.
Professional support
Want to automate your reporting system?
For diagnostics, priorities and implementation architecture, see the Business Process Automation service.
Sources and further reading
Where to verify the source
The tool's capabilities differ across versions; check the exact steps in the official documentation.
- Microsoft Support: Create a PivotTable: the official setup guide
- Google Docs Editors Help: Pivot tables: for the Sheets version
Continuing the topic
The pivot is the reporting layer; the foundations and next steps are in these articles:
- Learning Excel: a practical guide from zero
- The most important Excel formulas
- Building charts in Excel
- Data analytics: entering the career
- Other articles on this topic
The way to learn pivots is a real five-thousand-row file. Take any export file from your company, write three questions and answer all three with a pivot; after that exercise you will not want to go back to SUMIFS.
I'm Anar Rustamli - a strategist, entrepreneur, and AI adoption leader working at the edge of growth, technology, and human thinking. Since 2016, my work has focused on helping businesses evolve in a rapidly changing digital landscape. I design growth systems, AI-powered workflows, and strategic frameworks that align performance with purpose. I believe real growth happens when strategy, data, and human insight work together - and my mission is to help businesses adopt AI in a way that strengthens both their results and their identity.

