Imagine you own a supermarket in Ibadan. Every day, customers buy rice, beans, noodles, drinks, bread and other products.
At the end of the month, you want to answer questions such as:
Looking through hundreds or thousands of records manually can take a long time. Fortunately, Excel PivotTables have tools that make this work easier.
In this module, you will learn how to sort, filter and group information in a PivotTable so that you can find important information quickly.
Sorting means arranging information in a particular order.
For example, imagine your PivotTable shows the following sales:
| Product | Total Sales |
|---|---|
| Rice | โฆ250,000 |
| Beans | โฆ120,000 |
| Milk | โฆ180,000 |
| Noodles | โฆ90,000 |
You may want to arrange the products from the highest sales to the lowest sales.
After sorting, the report will look like this:
| Product | Total Sales |
|---|---|
| Rice | โฆ250,000 |
| Milk | โฆ180,000 |
| Beans | โฆ120,000 |
| Noodles | โฆ90,000 |
This makes it easier to identify the best-selling product.
Excel allows you to arrange PivotTable information in different ways.
This arranges text alphabetically, starting with A and ending with Z.
Example:
This arranges text in reverse alphabetical order.
Example:
This arranges numbers from the lowest value to the highest value.
Example: 10, 25, 50, 100.
This arranges numbers from the highest value to the lowest value.
Example: 100, 50, 25, 10.
Follow these steps to sort products by total sales:
You can also use the sort options in the PivotTable field's drop-down menu. In some Excel versions, you may need to select More Sort Options to choose sorting by a particular value field.
Filtering means displaying only the information you want to see while temporarily hiding other information.
For example, a supermarket may have branches in Ibadan, Lagos and Abuja.
You may want to see sales from the Ibadan branch only. Instead of deleting the other branches, you can use a filter.
Filtering helps you focus on specific information without removing the original data.
A Report Filter allows you to display information for a selected category.
For example, if you place the Branch field in the Filters area, you can select Ibadan, Lagos or Abuja.
A Label Filter allows you to filter information based on text labels.
For example, you can display only products whose names begin with the letter R.
A Value Filter allows you to display records based on their numerical values.
For example, you can display only products with total sales greater than โฆ100,000.
A Date Filter allows you to focus on records from particular dates or periods.
For example, you can display sales made between January and March.
Let's assume your PivotTable contains sales information for three branches:
| Branch | Product | Total Sales |
|---|---|---|
| Ibadan | Rice | โฆ150,000 |
| Lagos | Rice | โฆ200,000 |
| Abuja | Rice | โฆ180,000 |
| Ibadan | Beans | โฆ90,000 |
| Lagos | Beans | โฆ110,000 |
Follow these steps:
Your PivotTable will now show information for the Ibadan branch only.
Imagine you want to identify products that generated more than โฆ100,000 in sales.
Follow these steps:
Excel will display products whose total sales are greater than โฆ100,000.
You can also use other value filter options, such as:
Grouping means combining related information into larger categories.
For example, a business may record sales every day. Instead of studying every date separately, you can group the dates into months, quarters or years.
Grouping makes large reports easier to understand.
Imagine you have the following sales records:
| Date | Sales |
|---|---|
| 05/01/2026 | โฆ20,000 |
| 12/01/2026 | โฆ35,000 |
| 08/02/2026 | โฆ40,000 |
| 15/02/2026 | โฆ25,000 |
| 10/03/2026 | โฆ50,000 |
Instead of displaying every date, you can group the records by month.
Your summary may look like this:
| Month | Total Sales |
|---|---|
| January | โฆ55,000 |
| February | โฆ65,000 |
| March | โฆ50,000 |
Follow these steps:
Your daily sales records will now be grouped into months.
You can also group numerical information into ranges.
For example, imagine a school wants to group students according to their examination scores.
| Student | Score |
|---|---|
| Ada | 45 |
| Tunde | 58 |
| Mary | 67 |
| John | 75 |
| David | 89 |
You can group these scores into ranges such as:
To do this:
For example, entering 10 in the By box creates groups with intervals of 10, where the selected starting and ending values allow it.
These three features help people understand information more quickly.
| Feature | What It Does | Example |
|---|---|---|
| Sorting | Arranges information in an order. | Highest sales to lowest sales. |
| Filtering | Displays selected information. | Showing Ibadan branch sales only. |
| Grouping | Combines related information. | Grouping daily sales by month. |
Open the supermarket sales workbook you created in the previous modules.
Complete the following activities:
Challenge: Find the five products with the highest total sales. Use the Top 10 Value Filter and adjust it to show the top five.
Save your workbook as Supermarket Sales Analysis Module 6.xlsx.
| Term | Meaning |
|---|---|
| Sorting | Arranging information in a particular order. |
| Filtering | Displaying only selected information. |
| Grouping | Combining related information into categories. |
| Report Filter | A filter placed in the Filters area of a PivotTable. |
| Label Filter | A filter based on text labels. |
| Value Filter | A filter based on numerical values. |
| Date Filter | A filter used to select dates or date periods. |
| Top 10 Filter | A filter that displays a selected number of top or bottom items. |
Answer the following questions to check what you have learned.
What does sorting mean in a PivotTable?
Which sorting option arranges numbers from the highest to the lowest?
What is the main purpose of filtering?
Which PivotTable area is used for a Report Filter?
Which filter would you use to show products with sales greater than โฆ100,000?
What does grouping do in a PivotTable?
Which option can be used to group daily sales records?
What should you check if Excel cannot group dates?
Which filter can help you display the five products with the highest sales?
Does filtering a PivotTable delete the hidden records from the original dataset?
| Question | Correct Answer |
|---|---|
| 1 | B โ Arranging information in a particular order |
| 2 | C โ Sort Largest to Smallest |
| 3 | A โ To display selected information |
| 4 | D โ Filters |
| 5 | B โ Value Filter |
| 6 | C โ Combines related information into categories |
| 7 | A โ Months |
| 8 | B โ Whether the date column contains valid Excel dates |
| 9 | C โ Top 10 Value Filter |
| 10 | D โ No, it only changes what is displayed in the report |
Well done! You have completed Module 6 of Pivot Tables in Excel.
In this module, you learned how to:
In the next module, you will learn how to make your PivotTable reports attractive, organised and easier to read using styles, number formats, layouts and other formatting tools.