Sub topic 9
Inserting a timeline
This chapter assumes you can build a basic PivotTable, know the difference between text and true date values in Excel, and can find contextual ribbon tabs. It covers how to add a timeline to a PivotTable. Preparing the date field was covered in the previous chapter.
What you need before you start
A timeline works only on a field of true dates. Check these points first:
- The PivotTable's source column holds real dates, not text that looks like dates.
- The date column has no blank cells or text entries in the source range.
- The PivotTable is based on a normal pivot cache. A PivotTable built from the Data Model also works.
- You are using Excel 2013 or later. Older files saved as .xls may need to be converted to .xlsx.
If the Timeline button is gray, see the troubleshooting chapter.
Insert the timeline
- Click any cell inside the PivotTable.
- On the PivotTable Analyze tab, choose Insert Timeline. On some versions the tab is called Analyze. You can also use Insert > Filters > Timeline.
- In the Insert Timelines dialog, tick the date field you want to filter by. Only fields with date values appear in the list.
- Click OK.
Excel places a timeline on the sheet, floating above the cells. It shows a scrollbar of periods, a level selector at the top right, and a caption that matches the field name. Drag it to a free area so it does not cover the PivotTable.
Worked example
Suppose a sales PivotTable shows total Amount by Region, and the source data has an Order Date column that spans two years.
- Click a cell in the PivotTable.
- Choose Insert Timeline and tick Order Date.
- Click OK. The timeline shows months from the first to the last order date.
- Click the month March. The PivotTable now shows only March sales.
- Hold Shift and click May, or drag across the months. The PivotTable shows March through May.
The timeline's top-right label shows the active period, such as "MAR – MAY 2026". Selecting a range this way filters the whole PivotTable at once.
Common problems at insertion time
| Symptom | Likely cause | Fix |
|---|---|---|
| Insert Timeline is disabled | The active cell is outside the PivotTable, or the file is in an old format | Click inside the PivotTable. Save as .xlsx |
| The date field is not listed | The source column holds text, or has blanks | Convert the text to dates and refresh the PivotTable |
| The timeline shows only one period | All dates fall in a single month or year | Switch the time level, or check the source data |
Next step
The timeline is now connected to one PivotTable. The next chapter shows how to switch between years, quarters, months, and days, and how to select ranges more precisely.
Exercise
You select a cell in a PivotTable and the Insert Timeline button is available, but the Insert Timelines dialog lists no fields. What is the most likely cause, and what should you do?
Show answer
The PivotTable has no field that Excel recognizes as true dates, usually because the source column holds text that looks like dates, or contains blank cells. Fix the source column so every entry is a real date, refresh the PivotTable, and insert the timeline again.
Exercise
A PivotTable has a timeline on Order Date set to months. You click March, then Shift+click May. Which orders does the PivotTable show?
Show answer
Orders dated from the start of March through the end of May of the selected year.