Imagine you own a supermarket in Ibadan. Every day, customers buy rice, beans, milk, bread, soft drinks and other products.
At the end of the month, you want to answer questions like:
If you have only five sales records, checking them may be easy. But what if you have 5,000 or 50,000 records?
Checking every record one after another can take a long time. This is where PivotTables in Microsoft Excel become useful.
A PivotTable is an Excel tool that helps you organise, summarise and analyse large amounts of information quickly.
A PivotTable is like a smart calculator that can organise information into useful summaries.
For example, imagine a supermarket has these sales records:
| Product | Branch | Sales (โฆ) |
|---|---|---|
| Rice | Ibadan | 50,000 |
| Beans | Lagos | 30,000 |
| Rice | Lagos | 40,000 |
| Milk | Ibadan | 20,000 |
| Beans | Ibadan | 25,000 |
Instead of calculating every product's sales manually, you can use a PivotTable to summarise the information.
For example, Excel can produce this summary:
| Product | Total Sales (โฆ) |
|---|---|
| Rice | 90,000 |
| Beans | 55,000 |
| Milk | 20,000 |
| Grand Total | 165,000 |
Now the supermarket owner can quickly see how much each product has sold.
PivotTables are useful because they make working with large amounts of information easier.
Here are some important benefits:
Instead of adding hundreds of sales records manually, Excel can calculate the totals for you.
You can arrange information by product, location, customer, date or department.
You can quickly identify the product that sells the most or the branch with the highest revenue.
You can create summaries that are easy for teachers, business owners and managers to understand.
A supermarket owner can use sales information to decide which products to restock and which branches need improvement.
PivotTables are useful in many places.
| Place | How PivotTables Are Used |
|---|---|
| Schools | Summarising students' examination results. |
| Supermarkets | Finding the products with the highest sales. |
| Hospitals | Summarising patient records. |
| Banks | Summarising customer transactions. |
| Businesses | Analysing income and expenses. |
Before creating a PivotTable, you need to understand how information is arranged in Excel.
Consider this example:
| Date | Product | Quantity | Sales |
|---|---|---|---|
| 01/11/2026 | Rice | 5 | 50,000 |
| 02/11/2026 | Beans | 3 | 30,000 |
| 03/11/2026 | Milk | 4 | 20,000 |
There are four important parts:
Every column should have a clear heading. Avoid completely blank rows or columns inside your dataset because they can make analysis more difficult.
Normal data contains the original records. A PivotTable creates a summary from those records.
| Normal Data | PivotTable |
|---|---|
| Contains individual transactions. | Summarises transactions. |
| May contain thousands of rows. | Can show a short summary. |
| Stores the original information. | Organises information for analysis. |
No. Creating a normal PivotTable does not automatically change the original records.
It uses the selected data to create a separate summary. This means you can analyse your information without manually rearranging the original dataset.
However, if you edit the original data later, you may need to refresh the PivotTable to show the updated information.
Imagine you are helping your uncle manage a supermarket in Ibadan.
He gives you the following sales information:
| Product | Quantity Sold | Sales (โฆ) |
|---|---|---|
| Rice | 10 | 100,000 |
| Beans | 8 | 64,000 |
| Milk | 12 | 48,000 |
| Bread | 15 | 45,000 |
Answer these questions:
Answers:
In later modules, you will learn how to use PivotTables to answer questions like these automatically, even when your dataset contains thousands of records.
Choose the correct answer for each question.
1. What is a PivotTable?
A. A computer game
B. An Excel tool for summarising and analysing data
C. A type of keyboard
D. A drawing application
2. What is the main purpose of a PivotTable?
A. To delete information
B. To create computer passwords
C. To organise and summarise data
D. To play music
3. Which application contains PivotTables?
A. Microsoft Excel
B. Microsoft Paint
C. Windows Media Player
D. Calculator
4. Which of these is an example of a PivotTable use?
A. Playing football
B. Editing a photograph
C. Recording a song
D. Summarising supermarket sales
5. What is a dataset?
A. A computer mouse
B. A collection of related information
C. A printer
D. A password
6. What does a row represent in a dataset?
A. A horizontal line of information
B. A vertical line of information
C. A chart title
D. A workbook password
7. What does a column represent?
A. A horizontal line
B. A chart
C. A vertical section of information
D. A computer screen
8. Does creating a normal PivotTable automatically change the original data?
A. Yes, always
B. No
C. Only on Sundays
D. Only when printing
9. Why should dataset columns have clear headings?
A. To make the workbook colourful
B. To delete records
C. To hide information
D. To help identify the information in each column
10. What should you do after changing source data used by a PivotTable?
A. Refresh the PivotTable
B. Delete Excel
C. Switch off the computer
D. Remove all worksheets
| Question | Correct Answer |
|---|---|
| 1 | B |
| 2 | C |
| 3 | A |
| 4 | D |
| 5 | B |
| 6 | A |
| 7 | C |
| 8 | B |
| 9 | D |
| 10 | A |
In this module, you have learned that:
Preparing Data for PivotTable Analysis
You will learn how to organise Excel data, remove duplicates, correct errors, format information and prepare a dataset before creating your first PivotTable.
CRMNuggets โ Learn. Practice. Get Certified.