Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

pivot table how make

Forum home » Delegate support and help forum » Microsoft Excel Training and help » Pivot table. How to make the time line header in range , not onl

Pivot table. How to make the time line header in range , not onl

ResolvedVersion 365

Samuel has attended:
Excel Intermediate course

Pivot table. How to make the time line header in range , not onl

I did try the above time line header in range but fail. Could you let me know how to work this out ?

RE: Pivot table. How to make the time line header in range , not

Hi Samuel,

Thank you for the forum question.

It sounds like you're trying to customize the timeline filter in a PivotTable in Excel so that the header displays a range of dates rather than just individual time periods (like months or days). Let me clarify a few things and guide you through what’s possible:

What You Might Be Trying to Do

Use a timeline slicer to filter your PivotTable by a range of dates.

Display the selected date range in a cell or header (not just on the timeline control itself).

What You Can Do
Excel's Timeline slicer allows you to:

Filter by Years, Quarters, Months, or Days.

Select a range by dragging across the timeline.
However, the header of the timeline itself cannot be customized to show a custom label or range directly. But you can display the selected date range in a cell using formulas.

How to Display the Selected Timeline Range in a Cell
Insert a Timeline:

Click on your PivotTable.
Go to PivotTable Analyze > Insert Timeline.
Choose your date field.
Link the Timeline to a Cell:

Right-click the Timeline > Report Connections to ensure it's connected to your PivotTable.

Use the FILTERS or CUBERANKEDMEMBER functions to extract the selected range.

Use VBA (Optional): If you want to dynamically show the selected range in a cell (like “From 01-Jan-2024 to 31-Mar-2024”), you’ll need a small VBA script because Excel formulas can't directly read the timeline slicer selection.


Kind regards

Jens Bonde
Microsoft Office Specialist Trainer

Tel: 0207 987 3777
STL - https://www.stl-training.co.uk
98%+ recommend us

London's leader with UK wide delivery in Microsoft Office training and management training to global brands, FTSE 100, SME's and the public sector

Thu 3 Jul 2025: Automatically marked as resolved.

Excel tip:

Autofit column width – Excel (all versions)

a. Highlight the column or columns you wish to alter the width of. You do this by clicking on the grey button at the top of the column showing the column letter. Click and drag on these letters to select more than one column.
b. Double click the dividing line between the columns. This dividing line is the break between the columns on the column headers (grey buttons showing the column letter at the top of each column). When you hover your mouse over one of these dividing lines the point will change and show an arrow pulling a line in two directions. When you have this mouse pointer you should double click to get Excel to automatically set the column width to fit the contents of the column (autofit)

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.09 secs.