To filter dates in an Excel PivotTable, open the drop-down beside the date field in the Rows or Columns area, choose Date Filters, and select a condition such as Between, Before, After, or This Month. For a visual date-range control, select the PivotTable and choose PivotTable Analyze > Insert Timeline, then select the date field.
How a PivotTable date filter works
A PivotTable date filter limits which source records contribute to the displayed summary. For example, a sales PivotTable can show totals for orders placed between 1 January and 31 March without deleting or changing the underlying rows. The other records remain in the source data and can be included again by clearing or changing the filter.
Excel recognizes a field as a date when its source values are genuine Excel dates, rather than text that merely looks like a date. Dates are stored as serial values, and date-and-time entries can also contain a time fraction. If the field is recognized properly, its drop-down typically includes a Date Filters submenu. If Excel treats the entries as text, you may see ordinary label-filter options instead.
A filter is different from grouping. Filtering hides records outside the chosen conditions; grouping creates broader labels such as months or quarters so the PivotTable can summarize at that level. You can group dates and then filter the resulting groups, but grouping is not required for a simple date range.
Filter a date field by a range or period
In Excel for Microsoft 365 on Windows, use these steps for a conventional date filter:
- Click a cell in the PivotTable and find the date field in the Rows or Columns area. If the field is in the Filters area, use its report-filter control instead.
- Open the drop-down beside the date field. Depending on the layout, the control may appear beside the field name or in the row or column headings.
- Choose Date Filters, then select a condition. Choose Between for a start and end date, Before or After for a one-sided cutoff, or a period such as This Month or Last Year.
- Enter or select the date values when prompted, confirm the dialog, and check that the PivotTable shows the intended records.
For a quarter-to-date report, for instance, use Between with the quarter’s first date and the desired end date. A between condition uses the entered boundary dates as part of the selected interval, so check the displayed endpoints when the exact cutoff matters. For a rolling report, a preset such as Last Month can be more convenient than entering fixed dates; its meaning follows the calendar period rather than a custom number of days.
The date menu can include options such as Tomorrow, Today, Yesterday, This Week, Next Month, This Quarter, Year to Date, or All Dates in Period. The exact options depend on the date field and Excel’s interpretation of it. Use the filter’s clear option or choose the field’s clear-filter command to restore all dates. Clearing the filter does not erase source records.
Group dates into months, quarters, or years
When a report needs month-by-month totals, grouping can make the PivotTable easier to read than a long list of individual dates. Right-click a date value in the PivotTable and choose Group. In the Grouping dialog, select one or more intervals, such as Months, Quarters, or Years, and confirm. Excel creates grouped date fields that can be used to organize the summary.
For annual reporting, select both Months and Years. Grouping only by month can combine every January into one January total, concealing differences between years. Grouping by both keeps January 2025 distinct from January 2026. Similarly, choosing Quarters and Years makes quarter comparisons easier to interpret across multiple years.
To return to individual dates, right-click a grouped value and choose Ungroup. Grouping changes the PivotTable’s arrangement, not the source dates. If Group is unavailable or Excel reports that the selection cannot be grouped, inspect the source date field for blanks, text values, errors, or inconsistent entries; one invalid value can prevent grouping.
Use a timeline for interactive date selection
A timeline is a visual filter designed for PivotTable dates. Click the PivotTable, choose PivotTable Analyze > Insert Timeline, select the date field, and confirm. The timeline appears as a control with a time scale. Use its level selector to view Years, Quarters, Months, or Days, then drag the selection handles or click the desired period.
Timelines are useful on dashboards because readers can change the reporting period without opening a field menu. A timeline can also be resized and moved like other worksheet objects. To remove its current selection, use the clear-filter control on the timeline; to remove the object, select it and delete it.
A timeline filters a PivotTable through a date field, so the source field still needs valid dates. If a workbook has several PivotTables, a timeline may be connected to other compatible PivotTables through Report Connections (also called PivotTable Connections in some Excel interfaces). The tables generally need to share a compatible PivotTable source or cache. If a table is not listed, check how it was created and whether it uses the same source.
Prepare the source data and refresh the PivotTable
Reliable date filtering starts with a clean source column. Each record should have one consistent date field, with actual dates in the cells rather than a mixture of dates, text, and blanks. Avoid merged cells in the source range, and use one header row with a clear heading such as Order Date. An Excel Table is often a convenient source because it expands when new rows are added; the PivotTable still needs to be refreshed to include new records.
To check a suspicious entry, select its source cell and inspect the formula bar and number format. Changing the display format alone does not convert text into a real date. If dates were imported as text, convert them using an appropriate method for the source format, such as Text to Columns or a carefully checked conversion formula, then refresh the PivotTable. Be cautious with ambiguous values such as 03/04/2026: depending on regional settings, that can mean March 4 or April 3.
After changing or adding source records, click inside the PivotTable and choose PivotTable Analyze > Refresh, or use Data > Refresh All to update workbook connections and PivotTables. A filter cannot show a new date that the PivotTable has not yet loaded. If the PivotTable uses a fixed cell range rather than an expanding Table, confirm that new rows are included in its source before refreshing.
Choose the right date control
The best option depends on whether you need a precise condition, a summarized calendar view, or a dashboard control:
- Date Filters: Best for exact cutoffs and reusable conditions such as Before, Between, or This Year. They take little worksheet space.
- Grouping: Best for changing the report’s level of detail, such as turning daily rows into monthly or quarterly totals. It is a layout choice, not just a filter.
- Timeline: Best for interactive exploration, especially when a report user should select dates visually. It occupies worksheet space and requires a valid date field.
- Manual checkbox selection: Useful for a short list of specific dates, but inconvenient for a large range or a frequently updated report.
These controls can be combined. For example, group dates by Years and Months to display monthly sales, then use a timeline to restrict the visible period. Avoid applying several filters without documenting them: a month grouping, a date filter, and a report filter can all affect what appears, making an unexpectedly small total harder to diagnose.
Common date-filter problems and fixes
Date Filters is missing: Excel may be treating the field as text, or you may have opened a different field’s menu. Check the source values, confirm the date field is in the PivotTable, and refresh after correcting the source. Mixed date and text entries are a frequent cause.
Some dates disappear after grouping: Look for blanks, errors, or invalid text in the source column. Also inspect the selected grouping interval: grouping by Years and Months is different from grouping by Months alone. If the source contains timestamps, consider whether the time component is affecting the intended grouping.
The filter appears correct, but new rows are missing: Refresh the PivotTable and verify its source range. If the source is a fixed range that stops above the new records, refresh alone will not extend it. Converting the source to an Excel Table can make future additions easier to include.
Dates appear in an unexpected order: Text dates may sort alphabetically rather than chronologically. Convert them to real dates and check regional date interpretation before refreshing. Do not assume that applying a date number format fixes text values.
A selected month seems to combine several years: This is usually a grouping choice. Add Years as well as Months when comparing monthly values across different years. If using a timeline, check its displayed level and selected span.
Grouping is disabled: Inspect the entire source date field, not just the visible PivotTable rows. A blank or non-date entry elsewhere in the source can stop grouping. Correct the source values, refresh, and try again.
Frequently Asked Questions
How do I filter a PivotTable between two dates?
Open the date field’s drop-down, choose Date Filters > Between, enter the beginning and ending dates, and confirm. Check the displayed endpoints to verify the range matches your reporting rule.
Why does my PivotTable show Label Filters instead of Date Filters?
Excel likely sees the field as text rather than dates, or the menu belongs to a non-date field. Check the source column for imported text dates, blanks, and inconsistent values, convert invalid entries, then refresh the PivotTable.
Can I filter a PivotTable by month without combining different years?
Yes. Group the date field by both Years and Months, or filter the underlying dates to the desired interval. Grouping by Months alone can combine the same month from multiple years.
How do I clear a date filter?
Open the date field’s drop-down and choose its clear-filter option, or clear the selection on the timeline. This restores the excluded dates to the PivotTable view; it does not change the source data.
Why can’t I group dates in my PivotTable?
Check the source date column for blanks, text, errors, or values Excel cannot interpret as dates. Correct the source, refresh the PivotTable, and try Group again. Number formatting by itself does not convert text to dates.
Can one timeline control multiple PivotTables?
Often, if the PivotTables share a compatible source or cache. Select the timeline and use Report Connections to choose available tables. A PivotTable that uses a different source may not appear in the list.
Related
- How to Open Solver in Excel and Enable the Solver Add-in
- Find Solver Parameters in Excel and Understand Each One
- How to Find a Z-Score Using Excel Solver Step by Step
Try it: the Percentage Formula Generator: percent of, percent change, increase and decrease, with the formula.
More in Charts & pivot tables
- Build a Gantt Chart in Google Sheets: Step-by-StepTo build a Gantt chart in Google Sheets, list each task with its start and finish dates, calculate…
- Box and Whisker Plot Excel X-Axis Labels ExplainedIn Excel for Microsoft 365 on Windows, box-and-whisker plot x-axis labels usually come from the headers above each…
- Circle Bullet Chart in Excel: A Step-by-Step GuideCreate a circle bullet chart in Excel by plotting an actual value and the unused portion of a…
- Excel Pie Chart Not Showing? Fix the Data and DisplayIf an Excel pie chart is not showing, first check that its source range contains one series of…
- Excel Pivot Table Field List Not Showing? Fixes in ExcelIf the PivotTable Field List is missing in Excel for Microsoft 365 on Windows, click any cell inside…
- Excel 100% Stacked Lines in a Combo ChartYes, you can combine percentage lines with another chart type in Excel, but the most dependable method is…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.