Pivot Tables
Pivot Table Intro: Summarize a Sales Sheet in Five Minutes
Turn a flat transaction list into a summary by category and month using Excel or Google Sheets pivot tables — no macros.
A flat sales log is hard to read. A pivot table answers "how much per category per month?" without writing SUMIFS across twelve columns.
Start with clean columns
One row per line item. Headers in row 1, no blank rows in the middle.
| Date | Category | Product | Qty | Amount |
|---|---|---|---|---|
| 2026-01-05 | Hardware | Widget | 2 | 25.00 |
| 2026-01-07 | Accessories | Cable | 5 | 21.25 |
| 2026-02-01 | Hardware | Gadget | 1 | 8.99 |
Select any cell inside the table (Ctrl+A once if the active cell is inside the data).
Create the pivot (Excel)
- Insert → PivotTable (or Alt+N, V on Windows)
- Choose New worksheet (easier to learn) → OK
- In the PivotTable Fields pane:
- Drag Category to Rows - Drag Date to Columns — if you see individual days, right-click a date → Group → Months - Drag Amount to Values — should say Sum of Amount
You now have categories down the side and months across the top.
Create the pivot (Google Sheets)
- Insert → Pivot table
- Choose New sheet
- In the Pivot table editor:
- Rows → Add Category - Columns → Add Date, then set Show as → Month (or year-month grouping) - Values → Add Amount, summarize by SUM
Format numbers
Pivot totals often show too many decimals.
- Excel: select the value area → PivotTable Analyze → Field Settings → Number Format → Currency
- Google Sheets: select the pivot output range → Format → Number → Currency
Refresh when source data changes
Excel: right-click the pivot → Refresh (or Alt+F5).
Google Sheets: pivots refresh automatically when source cells change. If you added new rows below the old range, edit the pivot Data range to include them.
Common mistakes
| Wrong | Right |
|---|---|
| Blank rows inside the source table | One continuous block with headers in row 1 |
Amount stored as text ("25.00") | Convert to numbers; pivot SUM may otherwise show 0 or wrong totals |
| Same field in Rows and Values without aggregation | Put numeric fields in Values, labels in Rows/Columns |
Next steps
Build a monthly budget sheet that feeds a similar summary: build a monthly budget sheet.
If SKUs need prices before you pivot revenue, start with VLOOKUP basics.