A pivot table is Excel's GROUP BY with a drag-and-drop front end. You pick the grouping key, pick the measure, and it builds the aggregation for every group at once, with no formula and no recalculation when the data changes.
I avoided them for years because the field-list panel looks like a settings screen for something else. It is not. There are four boxes, and once you know what each one does the whole feature takes about ten minutes to learn. This is that ten minutes: one small sales list, four boxes, then the mistakes that make pivot tables show wrong numbers.
The mental model
You have 500 rows: date, region, salesperson, product, amount. You want "total per region".
In SQL you would write SELECT region, SUM(amount) FROM sales GROUP BY region. In Excel without a pivot table you write one SUMIF per region and then maintain it every time a new region shows up. A pivot table does the same thing as the SQL: drop region in one box, amount in another, and you get one line per region with its total. Want it by salesperson instead? Drag a different field. Nothing gets rewritten.
Step 0: the data has to be a flat table
Pivot tables only work on clean, flat data. Five checks cover almost every error people blame on the pivot table itself.
| Check | Why it matters | Fix |
|---|---|---|
| One header row, every column named | Headers become the field names you drag | Name any blank header |
| No blank rows or columns inside the data | Excel may stop reading at the first blank row | Delete or fill the blanks |
| No merged cells | Merged cells leave empty values underneath, read as missing | Unmerge and fill down |
| Numbers are real numbers, not text | Text amounts get counted instead of added | Data, Text to Columns, Finish |
| Dates are real dates | Grouping by month or year needs true dates | Re-enter one date, check it right-aligns |
If you can, press Ctrl + T first to turn the range into a Table. A Table grows when you add rows, so a refresh picks up new data without you editing the source range.
Step 1: insert it
Click any cell inside the data. Insert, PivotTable, confirm the range or Table name, choose New Worksheet. Putting it on its own sheet keeps the source untouched and makes it findable later.
Step 2: the four boxes
| Box | What goes in it | What it does | Example |
|---|---|---|---|
| Rows | The thing you want a line per | One row per unique value | Region |
| Columns | A second grouping across the top | Splits values into side-by-side columns | Product |
| Values | The number to add, count or average | Calculates each cell of the grid | Sum of Amount |
| Filters | A field to narrow the whole table | Adds a drop-down above the table | Salesperson |
Drag Region to Rows and Amount to Values: two columns, one row per region, totals done. Drag Product to Columns and it becomes a grid. Drag Salesperson to Filters and a drop-down lets you look at one person's numbers. That is the whole feature, and it took less time than reading this section.
Step 3: change the aggregation
A number field sums by default; a text field counts. Click the field in Values, choose Value Field Settings, pick Sum, Count, Average, Max or Min. The same dialog has a Show Values As tab for percentage of grand total or a running total, which is how you answer "which region is the biggest share of sales?" without a formula.
| Question | Setting |
|---|---|
| How much did each region sell? | Sum of Amount |
| How many orders per region? | Count of Amount (or of an Order ID) |
| What is the typical order size? | Average of Amount |
| What share of the total is each region? | Sum of Amount, Show Values As, % of Grand Total |
| Largest single sale per region? | Max of Amount |
Step 4: group dates
Drag Date to Rows. If your version groups automatically you will see months or years; if not, right-click a date in the table and choose Group, then tick Months and Years together. Daily rows become a monthly trend in two clicks. If Group is greyed out, the date column has text or blanks in it, which sends you back to Step 0.
Step 5: refresh, sort, format
A pivot table does not update itself. Right-click inside it and choose Refresh, or press Alt + F5. Sort by right-clicking a number, Sort, Largest to Smallest. Format through the pivot table's own Number Format option rather than formatting cells one at a time: plain cell formatting is lost when the table is refreshed and rebuilt.
Why your numbers look wrong
| Symptom | Cause | Fix |
|---|---|---|
| Amounts show as Count, not Sum | Some cells in that column are text or blank | Convert the column to numbers, refresh |
| New rows do not appear | Fixed source range, or no refresh | Use a Table as source, then refresh |
| A region appears twice | Trailing spaces or inconsistent spelling | Clean the source with TRIM, refresh |
| Dates will not group | Text dates or blanks | Fix the dates in the source |
| Totals differ from your own SUM | Filters are active | Clear all filters, compare again |
The pattern never changes: the pivot table is right and the data is wrong. When a number looks off, check the source rows, not the pivot. The fast way to do that is to double-click the number: Excel opens a new sheet containing exactly the rows behind it.
Five moves that cover most of what you need
- Region in Rows, Amount in Values: one line per region.
- Product in Columns: a grid with row and column totals.
- Salesperson in Filters, pick one name: the same grid for one person.
- Swap Region for Date, group by Months: a trend for that person.
- PivotChart from the Analyze tab: a chart that follows every change.
Do those five in order on any list that has a category, a date and an amount. What stands out is how little changes between them. You never write a formula, you only move a field between four boxes.
Where to go next
Slicers add click-buttons for filtering, pivot charts draw the summary instantly, and calculated fields cover simple custom measures. All three live in the PivotTable Analyze tab and take about five minutes each on the table you already built.
If you want guided practice, this Microsoft Excel course from beginner to advanced includes pivot tables with practice files. Affiliate link: we earn a commission if you buy through it, at no extra cost to you. The free route works too: Excel formulas for beginners covers the SUMIF and COUNTIF formulas a pivot table replaces, which is what you want when the result has to live inside a cell.
Questions that come up
Is a pivot table better than SUMIF? For summaries across many categories, yes: it builds the whole summary at once and rearranges by dragging. SUMIF wins when you need one result inside another formula.
Why does it show a count instead of a sum? At least one cell in that column is text or blank. Convert the column, refresh, and the default returns to Sum.
How do I count unique values? When creating the pivot table, tick "Add this data to the Data Model", then choose Distinct Count in Value Field Settings.
Can it update automatically? Not by default. Alt + F5, or set refresh-on-open in the pivot table options.
Does this work in Google Sheets? Yes. Insert, Pivot table, same four ideas under the same names.
The short version
Clean the list: one header row, no blanks, real numbers, real dates. Insert a pivot table on a new sheet. Category to Rows, number to Values. Second category to Columns, filter if needed, change Sum to Count or Average when the question changes. Group dates into months, refresh when the data changes, double-click any number to see the rows behind it.
Originally published with worked examples at Wafiq Guides.

