PivotTables for departmental analysis
Listen to this lesson
Nigerian voice narration
Fictional training case. Your SUMIFS matrix works, but every new question — 'now by month', 'now just Operations', 'now count of vouchers' — means rebuilding formulas. A colleague does all three in thirty seconds with a PivotTable. This lesson teaches the tool that makes Excel analysis fast: drag fields, get answers, change the question instantly.

Create your first PivotTable
Click any cell in your Excel Table → Insert → PivotTable → New worksheet. Drag Department to Rows, Actual to Values. You instantly have spending by department — no formulas. Drag Category to Columns and the full matrix appears.

Try it yourself — step by step
- Click any cell inside your data.
- Go to Insert → PivotTable → New Worksheet → OK.
- Drag Department into Rows and Category into Columns.
- Drag Actual into Values and confirm it shows Sum of Actual.
The four areas
Rows and Columns define the layout; Values holds what you calculate (Sum, Count, Average — change via Value Field Settings); Filters limits the whole table (for example, one quarter). Every management question is a rearrangement of these four areas.
Group dates into months
Drag Date to Rows, then right-click a date → Group → Months (and Years if needed). Your daily vouchers become a monthly trend table in seconds. Grouping also works on numbers — band voucher values into ranges.

Build the prompt from three phrases — Role, Task and Format — and watch the AI answer.
Refresh and verify
PivotTables do not update automatically when data changes — right-click → Refresh after editing the source. And verify once: pick one department, filter the raw data, compare the total. Trust, but verify, then reuse forever.
Common mistakes to avoid
The classic PivotTable mistake is editing the source data and presenting the old numbers because nobody pressed Refresh. Another is building the PivotTable on a range instead of an Excel Table, so new rows added later are silently excluded. A third is trusting the first result without verification — pick one department, filter the raw data, and compare the total once. After that single check, the PivotTable earns your trust.
Your practice
From the sample file, create a PivotTable of Actual by Department and Category. Then change it: months down the side, one department filtered. Notice that each change takes seconds — that speed is why PivotTables are the analyst's main tool.
You are an Excel trainer. Give me numbered steps to create a PivotTable showing total Actual spending by Department (rows) and Month (columns) from an Excel Table called Expenditure, including how to group dates into months.
Answer all three questions and check your answers to unlock the next lesson. Pass mark: 2 of 3.
The Values area of a PivotTable holds…
To turn daily vouchers into a monthly table, use…
The safest habit with a new PivotTable is to…
