Sub topic 8
Preparing a Date Field for a Timeline
This chapter assumes you can build a basic PivotTable, drag fields into the Rows, Columns, Values, and Filters areas, and tell a text value from a true date value in a cell. It also assumes you can use the ribbon's contextual tabs. A timeline is the only PivotTable filter that needs a specific kind of field. If the date field isn't ready, the Insert Timeline button stays disabled or the dialog lists no fields.
What a timeline requires
A timeline works only when the source column holds true dates. A true date is a number that Excel formats as a date. The value 2026-03-14 is stored as a serial number, and the cell format controls how it looks. Text that merely looks like a date doesn't count.
The requirements are:
- The field must come from a column of real dates in the source data.
- The column must not contain text, blanks, or errors in the rows the PivotTable uses.
- The PivotTable must be built from a range, an Excel Table, or the Data Model. A PivotTable that uses an older cache format may not offer timelines.
- The date field must be in the PivotTable's field list. It doesn't have to be placed in an area.
Check whether your dates are real
Select a date cell and look at its alignment and the Number Format box on the Home tab. Real dates right-align by default. Text dates left-align and show General or Text in the box.
You can also test a cell with a formula. This one returns TRUE for a real date or any other number.
=ISNUMBER(A2)Change A2 to the first date cell in your source column. Fill the formula down the column to find the rows that fail.
Fix text dates
Convert text dates in the source data, not in the PivotTable. Two common fixes work for most cases.
- Select the date column.
- On the Data tab, choose Text to Columns.
- Click Next twice, then under Column data format choose Date and pick the order that matches your text, such as MDY or DMY.
- Click Finish.
If the text includes extra characters, use a helper column instead:
=DATEVALUE(TRIM(A2))Format the result as a date, then use the helper column in the PivotTable. DATEVALUE returns #VALUE! when it can't read the text. Those rows need manual correction.
Refresh and check the PivotTable
After you fix the source, the PivotTable doesn't update itself. Right-click the PivotTable and choose Refresh. If the source is a fixed range, confirm that the range still covers all rows. An Excel Table expands on its own, so it is the safer source.
A date field that was previously grouped can also cause trouble. Grouping by months or years turns a date field into several fields, and the original field may not be available as a timeline source. If the Insert Timeline dialog lists no date field, ungroup the PivotTable's dates first: right-click a date in the PivotTable and choose Ungroup.
Common errors
| Symptom | Likely cause | Fix |
|---|---|---|
| Insert Timeline is grayed out | No cell inside the PivotTable is selected | Click a cell in the PivotTable |
| Dialog lists no fields | The date column holds text or is grouped | Convert to real dates or ungroup |
| Some rows are missing after conversion | `DATEVALUE` returned errors | Correct those source cells and refresh |
Exercise
A source column shows dates such as 03/14/2026 that are left-aligned, and the Insert Timeline dialog lists no fields. What are two steps you take to fix it?
Show answer
The left alignment suggests the dates are text. Convert the column to true dates in the source data, for example with Text to Columns using the correct date order, or with a DATEVALUE helper column. Then refresh the PivotTable and insert the timeline again.