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 2023 Avantix® Learning

You may also like

Excel XLOOKUP Function (Overview, Syntax + Formula Examples)

Excel XLOOKUP Function (Overview, Syntax + Formula Examples)

The XLOOKUP function is a replacement for Excel's traditional VLOOKUP function (as well as HLOOKUP and INDEX / MATCH functions). It has a new set of arguments and is available in Excel 2021 and 365. It allows you to look up a value from an array in a range or table and return one or more results. One of the primary benefits of XLOOKUP is that it can look up from columns to the left in a data set and return a range.

How to Use Go to Special in Excel to Find, Select, Replace and Format Data

How to Use Go to Special in Excel to Find, Select, Replace and Format Data

You can use Go To Special in Excel to quickly find and select cells of a specific type within your worksheet. It only selects cells in the current worksheet, not the entire workbook. Go To Special also searches within the selected range if a range has been selected. You can find many useful things using the Go To Special dialog box including formulas, constants, blanks, visible cells and conditional formatting. After you select multiple cells with Go To Special, you can enter data in the selected cells by pressing Ctrl + Enter or by applying formatting.

How to Lock Cells in Excel (3 Ways)

How to Lock Cells in Excel (3 Ways)

It's easy to lock and protect cells in Microsoft Excel to prevent users from changing data or formulas. This involves a two-step process …

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