Your first PivotTable

Summarise 1,200 sales by branch in under a minute — no formulas, no typing.

Module 8: PivotTables and dashboards · Lesson 35 of 45 · 16 min read · Free

Open m8-pivottables-practice.xlsx. The Transactions sheet holds a whole year of sales: 1,200 rows from six branches, eight sales reps, eighteen products. The managing director asks: “How much did each branch sell this year?”

You could write six SUMIFS. Or you could build a PivotTable — Excel's tool for summarising big lists by dragging fields into place. It's the single most valuable skill in this course for office jobs.

Before you start: is the data ready?

PivotTables need a clean list:

  • one header row, every column with a unique heading;
  • no blank rows or columns in the middle;
  • one record per row (one sale = one row);
  • no total rows inside the data.

The practice file is already an Excel Table named Sales2026, which is ideal — the PivotTable will include new rows automatically when you refresh.

Build it

  1. Click any cell in the data.
  2. Insert → PivotTable → From Table/Range. Check the table name and choose New Worksheet → OK.
  3. A blank PivotTable appears on a new sheet, with the PivotTable Fields pane on the right.
  4. Tick Branch. It goes into Rows.
  5. Tick Amount. It goes into Values as Sum of Amount.
A PivotTable of total sales by branch

That's it: six branches, their totals and a Grand Total of ₦10,919,800. Check it against =SUM(Sales2026[Amount]) — the numbers match.

The four areas

AreaWhat it doesExample
Rowsone row for each item in the fieldBranch, Category, Sales rep
Columnsone column for each itemPaid by, Quarter
Valuesthe numbers to summariseSum of Amount, Count of Txn ID
Filtersfilter the whole PivotTableCategory = Food

Ticking a box puts text fields into Rows and number fields into Values. To put a field somewhere else, drag it from the list into the area you want. Drag it out of an area to remove it.

Ask a second question

Drag Paid by into Columns. Now each branch shows Cash, POS and Transfer side by side. Drag it out again and drag Category into Rows under Branch — now each branch expands into its categories. Drag Category above Branch and the grouping flips. Pivot = turn around: you're turning the same data to look at it from different sides.

Make it readable

  • Click any number → Value Field Settings → Number Format → Currency, ₦, 0 decimals. (Formatting the cells directly gets lost when the PivotTable refreshes; this way it sticks.)
  • Change Row Labels to Branch: click the cell and type.
  • PivotTable Design → Report Layout → Show in Tabular Form gives proper column headings for each Rows field.
  • Sort: right-click a number → Sort → Largest to Smallest.

Check yourself

Answer in your head first, then open each question to see the answer and why.

  1. Which area of a PivotTable creates one row per branch?

    • A Values
    • B Rows
    • C Filters
    • D Columns
    Show the answer

    B) Rows — Fields in Rows list each item on its own row.

  2. What must the source data have for a PivotTable to work well?

    • A Merged header cells
    • B One header row, no blank rows or columns, one record per row
    • C Totals after every 10 rows
    • D Formulas in every column
    Show the answer

    B) One header row, no blank rows or columns, one record per row — PivotTables need a clean list. Blank rows and merged headers cause problems.

  3. You format the PivotTable's numbers directly and they lose the format after a refresh. What's the better way?

    • A Use Format Painter
    • B Value Field Settings → Number Format
    • C Conditional formatting
    • D Paste Values
    Show the answer

    B) Value Field Settings → Number Format — Number formats set in Value Field Settings stay after refreshing.

  4. Does building or changing a PivotTable change the source data?

    • A Yes, it sorts it
    • B Yes, it adds totals
    • C No, the source data is never changed
    • D Only if you refresh
    Show the answer

    C) No, the source data is never changed — A PivotTable is a separate summary; your list stays exactly as it is.

More free lessons: Why Excel, and how this course works · A tour of the Excel window · Number formats: naira, percentages, dates and phone numbers · Your first formulas: + − × ÷ and the order Excel follows · IF: make Excel decide · Cleaning messy text: TRIM, PROPER and Flash Fill · Excel Tables: the habit that saves hours · Choosing the right chart · Printing that looks right the first time · Revision guide and how the final exam works