Easily Insert an Excel Timeline to Filter Pivot Table Data

by Avantix Learning Team | Updated April 8, 2021

Applies to: Microsoft® Excel® 2013, 2016, 2091 and 365 (Windows)

Starting in Microsoft Excel 2013, you can filter pivot tables by date periods using a timeline tool. You can combine timelines with slicers to filter in different ways and you can also zoom in on specific date periods. In order to add a timeline, you must have a date field in the source data with valid dates.

Recommended article: Excel's Awesome Quick Totals Tool

Do you want to learn more about Excel? Check out our virtual classroom or live classroom Excel courses >

When you click in a pivot table, an Insert Timeline button appears in the Ribbon on the PivotTable Tools Analyze  or PivotTable Analyze tab in the Filter group:

Microsoft Excel Analyze tab with Insert Timeline button.

Insert a timeline

To insert a timeline:

  1. Select a cell in a pivot table.
  2. Click the PivotTable Tools Analyze or PivotTable Analyze tab in the Ribbon.
  3. Select Insert Timeline. A dialog box appears.
  4. Select the check boxes of the date fields you want to use and click OK.

Microsoft Excel Insert Timeline dialog box with date field.

Once you've added a timeline, you can apply date filters at four levels:

  • Years
  • Quarters
  • Months
  • Days

Microsoft Excel timeline by month.

Use a timeline to filter by a date period

To filter by a specific date period:

  1. Select a cell in a pivot table.
  2. In the Timeline dialog box, click the arrow next to the date interval (years, quarters, months or days) and select the desired period.
  3. Drag the timeline scroll bar at the bottom of the dialog box to the time period you want to analyze.
  4. In the timespan control, click a period tile and/or drag to include additional tiles to select the date range you want. Drag the timespan handles (dotted lines) to adjust the date range on either side.

 Microsoft Excel timeline filtered by quarter.

Clear filters in a timeline

To clear filters in a timeline:

  1. Select a cell in a pivot table.
  2. In the Timeline dialog box, click the Clear Filter button.

Microsoft Excel clear timeline button in the timeline dialog box.

Use timelines and slicers

To combine slicers with a timeline to filter the same date field:

  1. Select a cell in a pivot table.
  2. Select the PivotTable Tools Analyze or PivotTable Analyze tab in the Ribbon.
  3. Click Options. A dialog box appears.
  4. Click the Totals & Filters tab.
  5. Select the checkbox to Allow multiple filters per field.
  6. Click OK.

Move a timeline

To move a timeline, drag it by its title bar to the location you want.

Customize timeline appearance

To change the size of the timeline, drag the corner sizing handles to the size you want.

To change the style of the timeline, click it to display the Timeline Tools Options tab in the Ribbon and then select the style you want.

Microsoft Excel Ribbon tab for formatting a timeline.

Timelines are a great new tool for filtering pivot tables by date.

Subscribe to get more articles like this one

Did you find this article helpful? If you would like to receive new articles, join our email list.

More resources

How to Fill Blank Cells in Excel with a Value from a Cell Above

How to Use Flash Fill in Excel to Clean or Extract Data (Beginner's Guide)

How to Quickly Delete Blank Rows in Excel (5 Ways)

Related courses

Microsoft Excel: Intermediate / Advanced

Microsoft Excel: Data Analysis with Functions, Dashboards and What-If Analysis Tools

Microsoft Excel: Introduction to Visual Basic for Applications (VBA)

VIEW MORE COURSES >

Our instructor-led courses are delivered in virtual classroom format or at our downtown Toronto location at 18 King Street East, Suite 1400, Toronto, Ontario, Canada (some in-person classroom courses may also be delivered at an alternate downtown Toronto location). Contact us at info@avantixlearning.ca if you'd like to arrange custom instructor-led virtual classroom or onsite training on a date that's convenient for you.

Copyright 2022 Avantix® Learning

You may also like

How to Password Protect Your Excel Worksheets and Workbooks

How to Password Protect Your Excel Worksheets and Workbooks

You can password protect worksheets and workbooks in Excel. If you want to prevent other users from opening or modifying an Excel workbook, you can encrypt the file with a password. You can also protect workbook structure where you can prevent users from deleting, renaming, moving or unhiding worksheets. Password protection can be added to your Excel file in several ways.

Microsoft, the Microsoft logo, Microsoft Office and related Microsoft applications and logos are registered trademarks of Microsoft Corporation in Canada, US and other countries. All other trademarks are the property of the registered owners.

Avantix Learning |18 King Street East, Suite 1400, Toronto, Ontario, Canada M5C 1C4 | Contact us at info@avantixlearning.ca

Pin It on Pinterest

Share This