Lesson 7 of 8 · see all lessons
Formulas from zero
Answer questions with conditions and lookups
Organize and summarize the month
11 min
How to make a pivot table in Excel
A pivot table groups rows and totals them in a few clicks. Build one by category and staff, show shares of the total, and refresh it when data changes.
By the end of this lesson you can
- Build a pivot table from the Sales table in about five clicks
- Place fields in Rows, Columns and Values and predict the grid
- Switch between Sum, Count and % of grand total
- Refresh a pivot after the data changes
From earlier lessons · 1 of 2
With a filter showing only food rows, what does =SUM(H2:H31) add?
Pick one answer.
From earlier lessons · 2 of 2
What does Sales[Total] refer to?
Pick one answer.
Ana, Ben and Chloe each worked ten lines. Who sold most, and in which category? That's nine SUMIFS, or one pivot table built in about five clicks.
Take a guess
Each staff member worked 10 of the 30 order lines. Who brought in the most money in March?
No pressure. Guess now, and the lesson will show you if you were right.
What a pivot table does
A pivot table groups your rows by the values in one or more columns and summarizes each group. It's a set of SUMIFS that builds itself. You drag column names, called fields, into four areas: Rows (one line per value), Columns (one column per value), Values (what to add up or count) and Filters.
Put in order
Put the five clicks for a Category pivot in order.
Drag, or focus an item and press Space, move with the arrow keys, then Space to drop.
- Insert > PivotTable
- Click any cell in the Sales table
- Tick Total in the field list
- Tick Category in the field list
- Choose New Worksheet, then OK
Excel puts text fields in Rows and number fields in Values for you, and numbers in Values are summed by default. So two ticks give a finished summary.
Row Labels Sum of TotalCoffee 341.75Food 259.25Tea 48.00Grand Total 649.00
Step through
How the pivot fills its Category groups, rows 2 to 8
- Cof 280row
- Food 01
- Tea 02
Row 2: Coffee (Cof), 28.00 goes into the Coffee group.
Predict, then reveal
Change one thing: drag Staff into the Columns area. What number sits where Coffee meets Chloe, and what's Chloe's column total?
You drag Item into Values as well. The new column says Count of Item, not Sum. Why?
Pick one answer.
To see shares, click the arrow beside Sum of Total in the Values area, choose Value Field Settings, open Show Values As, and pick % of Grand Total.
Row Labels Sum of TotalCoffee 52.66%Food 39.95%Tea 7.40%Grand Total 100.00%
You swap Category out of Rows and put Staff in, still showing % of Grand Total. What does Ana's row show?
Pick one answer.
You fix a typo in the sales rows, but the pivot still shows the old total. What do you do?
Pick one answer.
Match
Match each pivot area to what it does.
Pick an item on the left, then its match on the right.
In Google Sheets: select the data, then Insert > Pivot table. A side panel opens. Next to Rows, Columns or Values, choose Add and pick a field. You add each field yourself, and the pivot refreshes on its own when the source data changes.
FlashcardsIndex cardsFlashcards ⚡
Card 1 of 16Worth keeping
- A pivot table is a self-building grid of SUMIFS: fields go into Rows, Columns and Values.
- Text fields count, number fields sum; a stray word in a number column flips Sum to Count.
- Show Values As % of Grand Total turns money into shares.
- Excel pivots need Refresh after the data changes; check the grand total against your own SUM.
You now have every tool the manager's report needs: SUM, IF, SUMIFS, XLOOKUP, a table and a pivot. One last task puts them together on one page. It ends with a question the revenue numbers get wrong: who really made the café the most money?
Embed this practice on your site
Free for classrooms, blogs and study groups. Paste this into any page that accepts HTML.
Report a copyright problem with this lesson
Sources for this lesson (2)
Each fact in the lesson is marked with the number of the page it comes from.