Imagine that you own a supermarket in Ibadan. Every day, your workers record the products sold, quantities, prices, dates, and total sales amounts.
After a few months, you may have hundreds or even thousands of sales records. Reading every row to find your best-selling product or your highest sales month can take a long time.
Microsoft Excel has a powerful feature called a PivotTable. It helps you summarise large amounts of information and answer questions quickly.
A PivotTable is an Excel tool that summarises and organises data so you can compare information and discover useful patterns.
A PivotTable takes information from a dataset and allows you to arrange it into different summaries.
For example, imagine you have the following supermarket sales records:
| Date | Product | Branch | Sales (โฆ) |
|---|---|---|---|
| 01-Nov | Rice | Ibadan | 80,000 |
| 02-Nov | Beans | Lagos | 40,000 |
| 03-Nov | Rice | Lagos | 60,000 |
| 04-Nov | Spaghetti | Ibadan | 30,000 |
| 05-Nov | Beans | Ibadan | 50,000 |
You can use a PivotTable to calculate how much money was made from each product or how much each branch sold.
When you create a PivotTable, Excel provides four main areas where you can place your dataset fields.
The Filters area allows you to display information for selected categories. For example, you can choose to view sales records for only the Ibadan branch.
The Columns area displays categories across the top of your PivotTable. For example, you can display different branches as column headings.
The Rows area displays categories down the left side of the PivotTable. For example, you can list products such as Rice, Beans, and Spaghetti.
The Values area contains the calculations. Excel can calculate totals, counts, averages, minimum values, and maximum values.
To calculate total sales for each product, place Product in the Rows area and Sales in the Values area. Excel will summarise the sales for each product.
Let's create a PivotTable using supermarket sales information.
Excel will create a summary showing the total sales for each product.
If Excel displays Count of Sales instead of Sum of Sales, open the field's settings in the Values area and select Sum. This usually happens when the sales values are stored as text or contain non-numeric entries.
One of the biggest benefits of PivotTables is that they can summarise information using different calculations.
Here are some useful calculations:
A school in Lagos records the examination scores of its students. The teacher wants to calculate the average score for each subject.
| Student | Subject | Score |
|---|---|---|
| Tunde | Mathematics | 80 |
| Amina | Mathematics | 90 |
| David | English | 70 |
| Grace | English | 80 |
To calculate the average score for each subject:
Excel will calculate the average score for Mathematics and English.
Sometimes your dataset contains many dates. Instead of analysing each date separately, you can group dates into months, quarters, or years using PivotTables.
For example, a business may have sales records for every day of the year. The manager may want to see total sales for each month.
Excel will group the dates based on your selection. If the Group option is unavailable, check that the source dates are real Excel dates and do not contain text or blank values that prevent grouping.
You can also group related items manually in a PivotTable.
For example, a supermarket may group products into categories such as:
Grouping makes large reports easier to understand.
A PivotChart is a chart connected to a PivotTable. It allows you to present summarized information visually.
For example, after creating a PivotTable showing total sales for Rice, Beans, and Spaghetti, you can create a PivotChart to compare the products.
When you change the PivotTable's filters or layout, the connected PivotChart updates to show the new summary.
A slicer is a visual filtering tool used with Excel Tables and PivotTables. It displays buttons that allow you to filter information quickly.
Imagine that a supermarket has branches in Ibadan, Lagos, and Abuja. You want to see the sales information for only one branch.
Instead of opening a filter menu, you can click a slicer button for the branch you want.
If you click Ibadan on a Branch slicer, your PivotTable can display only the sales records for the Ibadan branch.
A timeline is a visual filter that allows you to select dates in a PivotTable. It is especially useful when your dataset contains many dates.
For example, a supermarket manager may want to view sales for January, February, or March without manually selecting every date.
A timeline makes it easier to analyse information across different periods.
Slicers and timelines work with supported Excel tables and PivotTables. Some older Excel versions may have different features or menu locations.
You are now going to use what you have learned to create a simple business report.
Imagine that you work for a supermarket with branches in Ibadan and Lagos. Your manager wants to understand which products are selling best and which branch is performing better.
| Date | Product | Branch | Sales (โฆ) |
|---|---|---|---|
| 01-Jan-2026 | Rice | Ibadan | 100,000 |
| 05-Jan-2026 | Beans | Lagos | 70,000 |
| 10-Feb-2026 | Spaghetti | Ibadan | 50,000 |
| 15-Feb-2026 | Rice | Lagos | 120,000 |
| 05-Mar-2026 | Beans | Ibadan | 90,000 |
| 12-Mar-2026 | Spaghetti | Lagos | 60,000 |
Choose the correct answer for each question.
Answer: A
Answer: C
Answer: A
Answer: B
Answer: A
Answer: B
Answer: A
Answer: C
Answer: A
Answer: B
In this module, you learned how to use PivotTables to summarise information in Microsoft Excel. You explored the four main PivotTable areas: Filters, Columns, Rows, and Values.
You also learned how to calculate totals and averages, group dates and categories, create PivotCharts, and use slicers and timelines to filter reports.
PivotTables are especially useful when working with large datasets because they help you find important information without manually calculating every value.
In the next module, you will learn how to improve chart design and presentation. You will explore chart colours, backgrounds, data labels, axis titles, conditional formatting, and ways to make your reports clear and professional.
Congratulations! You have completed Module 5.