Hiring Partners
Segilola Resources Operating LimitedTaviatech TechnologiesFCMBMTN NigeriaAdvans La Fayette Microfinance BankAboki AfricaFirst Bank of NigeriaOPay
โ† Pivot Tables in Excel ยท Lesson 9 of 13

Module Eight

๐Ÿ“– Every lesson in this course is free to read right here, no account needed. Create a free account to track your progress, take the exam, and earn your certificate.
9
Module 8: Using Slicers and Timelines in PivotTables Module 8: Using Slicers and Timelines in PivotTables

Module 8: Using Slicers and Timelines in PivotTables

Introduction

Imagine that you manage a supermarket with branches in Ibadan, Lagos and Abuja.

Your Excel PivotTable contains sales information for all three branches. You want to check the sales made by each branch without opening the filter menu every time.

Wouldn't it be easier if you could simply click a button labelled Ibadan, Lagos or Abuja?

That is exactly what a PivotTable Slicer helps you do.

Excel also has another useful tool called a Timeline. It allows you to filter PivotTable information using dates, months, quarters and years.

In this module, you will learn how to create and use Slicers and Timelines to make your PivotTable reports interactive.

1. What Is a Slicer in Excel?

A Slicer is an interactive filtering tool in Excel. It displays buttons that allow you to filter information in a PivotTable.

Instead of opening a drop-down filter menu, you simply click the button representing the information you want to see.

For example, a supermarket sales report may contain these branches:

  • Ibadan
  • Lagos
  • Abuja

You can create a Slicer with three buttons. Clicking Ibadan will display the sales information for Ibadan only.

Remember: A Slicer is like a set of clickable filter buttons. It helps users filter a PivotTable quickly and visually.

2. Why Are Slicers Important?

Slicers make reports easier to use, especially when several people need to study the same information.

Some benefits include:

  • Easy filtering: You can filter information with a single click.
  • Better presentation: Slicers make reports look more interactive.
  • Quick comparison: You can switch between branches, products or departments.
  • Clear visibility: Users can easily see which filter is selected.
  • Dashboard support: Slicers can make Excel dashboards easier to operate.

3. How to Insert a Slicer

Let's create a Slicer for the Branch field in your supermarket sales PivotTable.

Step-by-Step Instructions

  1. Open your supermarket sales workbook.
  2. Click anywhere inside your PivotTable.
  3. Open the PivotTable Analyze tab. In some Excel versions, it may be labelled Analyze or Options.
  4. Find the Filter group.
  5. Click Insert Slicer.
  6. A window will display the available fields.
  7. Select the checkbox beside Branch.
  8. Click OK.

Excel will create a Slicer containing the available branch names.

You can now click Ibadan, Lagos or Abuja to filter your PivotTable.

4. How to Use a Slicer

After creating a Slicer, you can use it to control the information displayed in your PivotTable.

Follow these steps:

  1. Look at the Slicer you created.
  2. Click the Ibadan button.
  3. Your PivotTable will display information for Ibadan only.
  4. Click Lagos to display Lagos sales.
  5. Click Abuja to display Abuja sales.

You can also select more than one item.

For example, you may want to compare Ibadan and Lagos. Hold Ctrl while selecting the two buttons, where supported by your Excel version.

Some Slicers also have a Multi-Select button that allows you to select several items.

5. Clearing a Slicer Filter

What if you want to display all branches again?

You do not need to delete the Slicer.

Follow these steps:

  1. Look for the Clear Filter icon on the Slicer.
  2. It usually appears near the top-right corner of the Slicer.
  3. Click the icon.
  4. Your PivotTable will display all available branches again.
Tip: Clearing a Slicer filter does not delete your Slicer. It simply removes the current selection.

6. Customising a Slicer

You can change the appearance of a Slicer to make your report more attractive and organised.

For example, you can:

  • Change the Slicer colour.
  • Increase or reduce its width and height.
  • Change the number of columns used for its buttons.
  • Change the size of the buttons.
  • Move the Slicer to another position.
  • Change its displayed heading.

How to Change a Slicer Style

  1. Click the Slicer.
  2. Open the Slicer tab or Slicer Tools Options tab.
  3. Find the Slicer Styles section.
  4. Choose a style you like.
  5. Observe how the Slicer changes.

How to Change the Number of Columns

  1. Click the Slicer.
  2. Open the Slicer tab.
  3. Find the Buttons section.
  4. Change the Columns value.
  5. Adjust the Slicer size if necessary.

For example, a Slicer with six products can display its buttons in two columns instead of one.

7. Creating Multiple Slicers

You do not have to create only one Slicer for a PivotTable.

You can create several Slicers to filter different fields.

For example, a supermarket report may use:

Slicer Purpose
Branch Filters sales by branch.
Product Filters sales by product.
Salesperson Filters sales by salesperson.
Payment Method Filters sales by payment type.

When you use multiple Slicers, Excel applies the selected filters together.

For example, you can select:

  • Branch: Ibadan
  • Product: Rice
  • Payment Method: Bank Transfer

Your PivotTable will show records that match the selected filters.

8. What Is a Timeline in Excel?

A Timeline is an interactive date-filtering tool used with supported PivotTables.

It allows you to filter information using a visual date control.

For example, a supermarket may have sales records from January to December 2026.

You can use a Timeline to display:

  • January sales only.
  • Sales for the first quarter.
  • Sales for the whole year.
  • Sales for a selected period.

Unlike a normal Slicer, which filters categories such as products or branches, a Timeline is designed specifically for date fields.

Remember: Slicers are useful for categories such as Branch and Product. Timelines are useful for filtering dates.

9. How to Insert a Timeline

Before inserting a Timeline, make sure your PivotTable contains a valid date field.

Step-by-Step Instructions

  1. Click anywhere inside your PivotTable.
  2. Open the PivotTable Analyze tab.
  3. Find the Filter group.
  4. Click Insert Timeline.
  5. A window will display the available date fields.
  6. Select the checkbox beside Date.
  7. Click OK.

Excel will create a Timeline that you can use to filter your PivotTable.

10. Understanding Timeline Levels

A Timeline allows you to view dates at different levels.

The available levels usually include:

Level Meaning Example
Years Displays information by year. 2025, 2026, 2027
Quarters Divides a year into four periods. Q1, Q2, Q3, Q4
Months Displays information by month. January, February, March
Days Displays individual dates. 1 January, 2 January

You can change the Timeline level using the drop-down menu near the top-right corner of the Timeline.

11. How to Use a Timeline

After inserting a Timeline, follow these steps:

  1. Click the Timeline to activate it.
  2. Choose the date level you want, such as Months.
  3. Select the month you want to analyse.
  4. Your PivotTable will update to show records from the selected period.
  5. Select another month to view a different period.

You can also drag the selection handles on the Timeline to select a range of dates.

For example, you can select January through March to analyse first-quarter sales.

12. Clearing a Timeline Filter

To remove a Timeline selection:

  1. Click the Timeline.
  2. Find the Clear Filter icon.
  3. Click it.
  4. Your PivotTable will return to displaying all available dates.

13. Connecting One Slicer to Multiple PivotTables

This is a useful feature when building an Excel dashboard.

Imagine you have three PivotTables:

  • One showing total sales by product.
  • One showing total sales by branch.
  • One showing sales by salesperson.

You may want one Branch Slicer to control all three PivotTables.

Excel provides a feature called Report Connections, sometimes labelled PivotTable Connections.

How to Connect a Slicer to Multiple PivotTables

  1. Click the Slicer you want to connect.
  2. Open the Slicer tab.
  3. Click Report Connections or PivotTable Connections.
  4. A window will display compatible PivotTables.
  5. Select the PivotTables you want to control.
  6. Click OK.

Now, selecting a branch in that Slicer can update all connected PivotTables.

Important: For a Slicer to control multiple PivotTables, those PivotTables generally need to share the same PivotCache or compatible data model. If a PivotTable does not appear in Report Connections, check how it was created and whether it uses a compatible data source.

14. Difference Between Slicers and Timelines

Feature Slicer Timeline
Purpose Filters categories. Filters dates.
Appearance Displays clickable buttons. Displays a visual date control.
Examples Branch, Product, Department. Days, Months, Quarters, Years.
Selection Click one or more category buttons. Select a date or date range.

15. Building an Interactive Sales Report

You can combine PivotTables, Slicers and Timelines to create an interactive sales report.

For example, a supermarket manager may want to:

  • View total sales by product.
  • Compare sales across branches.
  • Filter results by salesperson.
  • Choose a particular month or quarter.

With Slicers and Timelines, the manager can change the displayed information without creating a new report every time.

This makes Excel reports more useful for business decisions.

16. Common Problems and How to Solve Them

Problem 1: Insert Slicer Is Not Available

Possible solution: Make sure you have clicked inside a supported PivotTable. The Insert Slicer feature may not be available for an ordinary range of cells.

Problem 2: Timeline Cannot Be Created

Possible solution: Check that your PivotTable has a valid date field. The source column should contain real Excel dates rather than text that only looks like dates.

Problem 3: Slicer Does Not Control Another PivotTable

Possible solution: Check Report Connections. The PivotTables may not share a compatible PivotCache or data model.

Problem 4: Some Items Are Missing from a Slicer

Possible solution: Check the source data and current filters. Also check whether the Slicer is configured to show items with no data.

Problem 5: PivotTable Does Not Show New Records

Possible solution: Refresh the PivotTable. If new records were added outside the original source range, check that the PivotTable data source includes them. Using an Excel Table as the source can make new records easier to include after refreshing.

17. Practical Activity

Project: Build an Interactive Supermarket Sales Report

Open the supermarket sales workbook you have been using in previous modules.

Complete the following activities:

  1. Create a PivotTable showing total sales by product.
  2. Create another PivotTable showing total sales by branch.
  3. Insert a Slicer for the Branch field.
  4. Click Ibadan and observe the report.
  5. Click Lagos and observe the changes.
  6. Create another Slicer for Product.
  7. Insert a Timeline using the Date field.
  8. Change the Timeline level to Months.
  9. Select January and check the sales report.
  10. Clear the filters to display all available information.

Challenge: Connect one Branch Slicer to both PivotTables using Report Connections, if they are compatible. Test whether both reports respond when you select a different branch.

Save your workbook as Interactive Supermarket Sales Report Module 8.xlsx.

18. Important Terms to Remember

Term Meaning
Slicer An interactive tool used to filter PivotTable information.
Timeline An interactive tool used to filter dates in a PivotTable.
Multi-Select A feature that allows you to select multiple Slicer items.
Clear Filter An option used to remove a current filter selection.
Report Connections A feature used to connect a Slicer to compatible PivotTables.
Dashboard A visual report that presents important information in one place.
Date Range A period between two selected dates.

19. Module Assessment: Test Your Knowledge

Choose the correct answer for each question.

Question 1

What is a Slicer in Excel?

  1. A tool for deleting worksheets
  2. An interactive tool for filtering PivotTable information
  3. A tool for changing computer settings
  4. A tool for creating passwords

Question 2

Which tool is designed specifically for filtering dates in a PivotTable?

  1. WordArt
  2. SmartArt
  3. Timeline
  4. Spell Check

Question 3

Which PivotTable tab usually contains the Insert Slicer option?

  1. Review
  2. View
  3. Home
  4. PivotTable Analyze

Question 4

What happens when you click Ibadan in a Branch Slicer?

  1. The PivotTable filters to show Ibadan records
  2. The workbook closes
  3. All sales records are deleted
  4. Excel removes the Branch field

Question 5

Which of the following is a common Timeline level?

  1. Font size
  2. Months
  3. Page colour
  4. Text alignment

Question 6

Which option removes the current Slicer selection?

  1. Save As
  2. Print Preview
  3. Clear Filter
  4. Copy

Question 7

What does Report Connections allow you to do?

  1. Connect Excel to a printer
  2. Delete multiple PivotTables
  3. Change the computer name
  4. Connect a Slicer to compatible PivotTables

Question 8

What should you check if a Timeline cannot be inserted?

  1. Whether the date field contains valid Excel dates
  2. Whether the worksheet has a background colour
  3. Whether the workbook has a password
  4. Whether the font is bold

Question 9

Can you create multiple Slicers for one PivotTable?

  1. No, only one is allowed
  2. Yes, you can create Slicers for different fields
  3. Only when the workbook is empty
  4. Only when using Microsoft Word

Question 10

Why are Slicers useful in Excel dashboards?

  1. They remove all charts
  2. They prevent users from viewing data
  3. They allow users to interactively filter reports
  4. They automatically delete old records

20. Assessment Answer Key

Question Correct Answer
1B โ€“ An interactive tool for filtering PivotTable information
2C โ€“ Timeline
3D โ€“ PivotTable Analyze
4A โ€“ The PivotTable filters to show Ibadan records
5B โ€“ Months
6C โ€“ Clear Filter
7D โ€“ Connect a Slicer to compatible PivotTables
8A โ€“ Whether the date field contains valid Excel dates
9B โ€“ Yes, you can create Slicers for different fields
10C โ€“ They allow users to interactively filter reports

21. Module Summary

Congratulations! You have completed Module 8 of Pivot Tables in Excel.

In this module, you learned how to:

  • Understand what Slicers are and why they are useful.
  • Insert Slicers into PivotTables.
  • Filter information using interactive buttons.
  • Customise Slicer colours and layouts.
  • Create multiple Slicers for different fields.
  • Insert Timelines for date filtering.
  • Filter information by days, months, quarters and years.
  • Connect one Slicer to multiple compatible PivotTables.
  • Build more interactive Excel reports.
Next Module: Module 9 โ€“ Creating PivotCharts

In the next module, you will learn how to turn PivotTable summaries into charts. You will discover how to create column charts, bar charts, line charts and pie charts to present information visually.

๐Ÿ† Get Certified

๐Ÿ”’

Earn this certificate

Every lesson is already free to read. Sign up, finish the lessons, pass the exam (โ‚ฆ2,000 or 20,000 coins), and get a verified certificate with your name on it.

๐ŸŽ“ Sign Up to Get Certified
๐Ÿ› ๏ธ Practice Tools
Hands-on simulators & labs - subscription required.
โ†’
๐ŸŽฏ Internship Tasks
Real-world tasks to build your portfolio - unlock them with a subscription.
โ†’