Video Tutorial
Pivot Table Excel Tutorial — Full Walkthrough
Step-by-Step Lesson Notes
Lesson 1 — Pivot Table Setup Without the Mouse
4 min- 1
Format your source data as an Excel Table first: click any cell in your data range, press Ctrl+T, confirm the range. Named Tables auto-expand when you add rows, so your pivot always picks up new data.
- 2
Insert a pivot table with the keyboard: Alt → N → V → T (hold Alt, then press N, V, T in sequence). Excel opens the Insert PivotTable dialog pre-filled with your Table range.
- 3
Place the pivot on a new sheet. When the Field List opens, use Tab to navigate between the four drop zones: Filters, Columns, Rows, Values.
- 4
Drag Account Category to Rows and Amount to Values using the keyboard: in the Field List, check the field checkbox and it lands in the default zone, then use Alt+drag or the dropdown arrow to move it to the correct zone.
- 5
Rename the Value field from 'Sum of Amount' to 'Total ($)': double-click the field header in the pivot, type the new name, press Enter.
Lesson 2 — Date Grouping and Percentage Calculations
5 min- 1
Add a Date field to the Rows area. Right-click any date cell → Group → select Months and Years. Now the pivot organizes data by period automatically — no helper columns needed.
- 2
Add a second instance of Amount to Values. Right-click it → Show Values As → % of Column Total. This gives you a side-by-side view of dollars and percentage mix.
- 3
Collapse all groups to year-level only: click the collapse button (−) next to any year header, then right-click → Expand/Collapse → Collapse Entire Field. Toggle detail on demand.
- 4
Apply number formatting to the currency column: click any value in the column → right-click → Number Format → Accounting, 0 decimal places. This formatting persists through refreshes.
- 5
Insert a slicer for Department: PivotTable Analyze → Insert Slicer → Department. Now any team member can filter the report without touching the pivot configuration.
Lesson 3 — Macro-Automated Pivot Refresh and Export
5 min- 1
Record a macro for the full refresh + format cycle: Developer → Record Macro, name it RefreshAndFormat, shortcut Ctrl+Shift+R.
- 2
While recording: click inside the pivot, press Alt+F5 (Refresh All), then select the value column and apply Accounting format via Ctrl+1 (Format Cells dialog). Stop recording.
- 3
Edit the macro in VBA (Alt+F11) to add: ActiveWorkbook.RefreshAll — this refreshes all pivots and data connections in the workbook at once, not just the selected one.
- 4
Add an export step: after refreshing, copy the pivot range and paste as values to a new sheet named 'Report_YYYYMMDD'. Use Format(Now(), "YYYYMMDD") in VBA to generate the date suffix automatically.
- 5
Schedule the macro to run on file open: in the VBA editor, find the Workbook_Open event under ThisWorkbook and call RefreshAndFormat there. Now every time a team member opens the file, data is current.
Key Takeaways
- Alt → N → V → T inserts a pivot table without touching the mouse
- Excel Tables as pivot sources auto-expand when new data rows are added
- Date grouping in pivots eliminates helper columns for period-based reporting
- Workbook_Open macro keeps reports current the moment the file is opened