Pivot Tables Explained: Turning Rows Into Answers
Somewhere in almost every spreadsheet there is a question hiding in the rows. How much did each region sell? Which month was quietest? Who buys most often? A pivot table is the tool that answers those questions without you writing a single formula — you point at your columns, say what you want to group by, and the summary appears.
What a pivot table actually is
Think of it as a summary built on the fly. You start with a long list of records — one row per sale, per order, per visit — and the pivot table collapses that list into a grid. One field becomes the rows, another becomes the columns, and a third is counted or added up in the middle. The underlying data never changes; only the view does. That is the whole idea, and it is why the tool feels almost magical the first time you use it.
The name comes from the way you can rotate, or pivot, the arrangement: drag a field from rows to columns and the same numbers reorganise themselves into a different shape.
Read more
The pieces you will meet
Most spreadsheet programs present the same handful of areas, whatever the wording:
- Rows and columns: the categories you want to compare, such as products and months.
- Values: the numbers being summarised, usually added up, counted, or averaged.
- Filters: limits applied to the whole table, so you can look at one year or one team at a time.
- Grouping: bundling dates into months, quarters or years so a long list becomes readable.
Once you recognise these four, you can read almost any pivot table someone hands you.
Before you build one
The quality of the summary depends entirely on the shape of your data, so spend a moment on the source first.
- Keep one record per row and one kind of information per column.
- Give every column a clear heading, and leave no blank rows or columns inside the data.
- Write dates and numbers in a consistent format; text that looks like a number but is stored as text will be counted, not added.
- Avoid merged cells in the source range.
- Keep a clean copy you never edit by hand, so you can rebuild the summary if something goes wrong.
Practical habits
Start with a simple question, not with every field you have. Add one dimension at a time and check that the totals match what you already know about the data — a quick sum of the original column is a good sanity check. If a figure looks strange, it is usually a formatting or grouping problem rather than a fault in the tool.
Where to go next
Beginners often stop at counting and adding, but the same structure supports averages, percentages of a total, and comparisons across two categories at once. Learn to filter and group first; everything else builds on those two moves. Like most spreadsheet skills, pivot tables reward a little patience early on with a great deal of time saved later.