Who this is for
Data Analysts and learners who already work with spreadsheets and want to summarize messy datasets fast. You will build pivots that answer business questions in minutes.
Prerequisites
- Comfort entering data in a spreadsheet (Excel or Google Sheets)
- Basic formulas (SUM, COUNT, AVERAGE)
- Clean headers in row 1 and no completely blank rows
Why this matters
Real analyst tasks that pivots solve in minutes:
- Summarize sales by month, region, product, and rep
- Spot top/bottom performers and trends
- Calculate contribution to totals and growth
- Build interactive slices of data for stakeholders
Concept explained simply
A pivot table groups rows and aggregates numbers so you can see totals and patterns without writing formulas. You drag fields into Rows, Columns, Values, and Filters to reshape the same data in different ways.
Mental model
- Rows: Categories down the side (e.g., Region, Product)
- Columns: Categories across the top (e.g., Month, Channel)
- Values: What you compute (e.g., Sum of Sales, Count of Orders)
- Filters/Slicers: What to include or exclude (e.g., Year=2025)
Tip: choosing the right aggregation
- Sum for totals (revenue, units)
- Count or Distinct Count for number of records or unique IDs
- Average for mean values (if each row represents one item at the level you need)
- Show Values As: % of Total, Difference From, Running Total for analysis context
Core pivot moves you will use daily
- Group Date by Month/Quarter/Year
- Sort largest to smallest by value
- Filter and Slicer to focus the view
- Value Field Settings to change Sum/Count/Avg and number format
- Show Values As to show % of total or period-over-period change
- Calculated Field to derive new metrics (e.g., Profit = Sales * 0.3)
Worked examples
Example 1 — Sales by Region and Month
- Insert Pivot Table from your data range.
- Drag Region to Rows.
- Drag Date to Columns and group by Months.
- Drag Sales to Values, set to Sum and currency format.
- Sort Regions by Grand Total (descending).
What you should see
Rows show Regions, columns show Months, values are Sum of Sales. Grand Totals allow quick ranking of regions and months.
Example 2 — Top 5 Products by Revenue
- Rows: Product
- Values: Sum of Sales
- Sort by Sum of Sales (Largest to Smallest)
- Value Filter on Product: Top 5 by Sum of Sales
Why this works
Top N filters let you spotlight leaders without manual sorting each time data changes.
Example 3 — Contribution and Month-over-Month Change
- Rows: Region
- Columns: Month (group Date)
- Values: Sum of Sales
- Duplicate the Values field and set the second to Show Values As → % of Column Total
- Duplicate the Values field again and set to Show Values As → Difference From (Base field Month, Base item Previous)
Insights unlocked
- Contribution: Which region contributes most within each month
- Difference From: How this month changed vs last month
Exercises (hands-on)
Use the same dataset for both exercises. Copy the CSV below into a new sheet starting at A1. Ensure headers are in row 1.
Click to reveal CSV data
OrderID,Date,Region,Product,Rep,Units,Unit_Price,Sales 1001,2025-01-05,East,Keyboard,Alex,10,20,200 1002,2025-01-08,West,Mouse,Ben,15,10,150 1003,2025-01-12,North,Monitor,Cara,5,100,500 1004,2025-01-15,South,Keyboard,Dan,8,20,160 1005,2025-02-02,East,Mouse,Alex,20,10,200 1006,2025-02-06,West,Monitor,Ben,3,100,300 1007,2025-02-11,North,Keyboard,Cara,12,20,240 1008,2025-02-20,South,Mouse,Dan,25,10,250 1009,2025-03-03,East,Monitor,Alex,2,100,200 1010,2025-03-07,West,Keyboard,Ben,6,20,120 1011,2025-03-15,North,Mouse,Cara,10,10,100 1012,2025-03-19,South,Monitor,Dan,4,100,400
- Data is pasted to A1 with headers exactly as shown
- No blank rows, numeric columns are true numbers
- Date column recognized as date (not text)
Exercise 1 — Region by Month with % of Column Total
- Insert a pivot table from the full range.
- Rows: Region
- Columns: Date (group by Month)
- Values: Sum of Sales (currency format)
- Sort Regions by Grand Total (descending)
- Duplicate the Values field and set it to Show Values As → % of Column Total (percentage format)
Need a nudge?
- In Excel: PivotTable Analyze → Group Field for Date
- In Google Sheets: Right-click a date in the pivot → Create pivot date group
Exercise 2 — Average Unit Price by Product and Region + Calculated Profit
- New pivot from the same range.
- Rows: Product
- Columns: Region
- Values: Average of Unit_Price (2 decimals)
- Add Calculated Field Profit = Sales * 0.3 (assume 30% margin), Values: Sum of Profit
- Optional: Filter Date to Feb and Mar only to compare in-season performance
Tip: Calculated Field
Name: Profit, Formula: = Sales * 0.3. Ensure the field names match headers exactly.
Common mistakes and self-check
- Using Average when rows are line items per order: prefer calculated field SUM(Sales)/Distinct Count(OrderID)
- Date not grouping: the Date column is text; convert to a real date
- Percent of total confusion: choose % of Column Total when columns are periods; % of Grand Total for overall share
- Dirty headers: merged cells or duplicate header names break pivots; keep one clean header row
- Forgetting number formats: always set currency/percent formats for clarity
Self-check
- Can you rebuild the same pivot in under 2 minutes?
- Can you explain what each value shows in one sentence?
- If asked for top 3 contributors, can you produce them without editing the source data?
Practical projects
- Monthly Sales Dashboard: Region x Month pivots, a pivot chart, and slicers for Product and Rep
- Product Health Report: Top N products, % contribution, and MoM change with conditional formatting
- Support Tickets Snapshot: Count by Category and Priority, % of total, and trend by week
Learning path
- Refresh data hygiene: headers, types, no blank rows
- Pivot basics: Rows/Columns/Values/Filters and number formats
- Date grouping and sorting
- Show Values As: % of total, Difference From, Running Total
- Calculated Fields and Distinct Count
- Pivot charts and slicers for interactive dashboards
- Extend to SQL for larger datasets and repeatability
Mini challenge
Using the provided dataset:
- Which region has the highest sales in March?
- What is West region’s change from Feb to Mar (absolute and %)?
- Which product has the highest total profit (30% margin)?
Peek answers
- Highest March: South ($400)
- West Feb to Mar: $120 - $300 = -$180 (−60%)
- Highest profit: North overall sales $840 → Profit ≈ $252; by product overall, Monitor likely leads due to higher unit price
Next steps
- Build a pivot chart from your best pivot
- Add slicers for Month and Region
- Practice calculated fields for KPIs like margin, AOV, and conversion rates
Quick Test info
The quick test is available to everyone for free. If you log in, your progress and score will be saved.