To add a date filter in an Excel pivot table, first ensure your source data has a proper Date column (real dates, not text), then drag that field into the Rows or Columns area, click the drop-down arrow on the date field label, choose Date Filters, and pick the condition you want (for example, Between, After, or This Month). Excel will filter the pivot table to show only records that meet the date condition. The exact menu labels can differ slightly by Excel version and region, but the Date Filters submenu is present in Excel for Microsoft 365, Excel 2019, 2021, and 2024 on Windows and Mac.
What You'll Need
- Excel for Microsoft 365, Excel 2019, 2021, or 2024 (Windows or Mac). The steps also work in Excel on the web, though the right-click menu is slightly different.
- A pivot table built from a data range or Excel Table that includes a column of dates.
- Dates stored as real Excel dates (serial numbers), not text. You can check by selecting a cell: if it aligns right by default and the formula bar shows a date like 5/14/2024, it is a real date.
- No blank rows in the date column, and no merged cells in the source range.
Step-by-Step
- Verify your dates are real dates. Select the date column in the source data. On the Home tab, the Number Format box should show something like Date or Short Date. If it shows Text, convert the column: select it, go to Data > Text to Columns, click Finish, then format the column as Date. Alternatively, use a helper column with
=DATEVALUE(A2)and copy the results back as values. - Refresh the pivot table. Right-click anywhere in the pivot table and choose Refresh (or press Alt+F5 on Windows). This pulls in any data changes you made in step 1.
- Place the date field in the pivot table. In the PivotTable Fields pane, drag the date field into the Rows area (or Columns area). Excel groups the dates automatically into Years, Quarters, and Months in most versions. If you want a flat list of individual dates, right-click any date in the pivot table and choose Ungroup.
- Open the date filter menu. Click the drop-down arrow next to the date field label in the pivot table (for example, the arrow next to "Row Labels" or next to the date field name). In the menu, point to Date Filters.
- Choose a filter type. Pick the condition that matches your goal:
- Between – enter a start and end date for a custom range.
- After or Before – show records after or before a specific date.
- This Month, Last Month, This Year, etc. – relative filters that update when the data is refreshed.
- Year to Date – shows all dates from the start of the current year through today.
- Set the date values. In the dialog box that appears, type or pick the date(s) using the date picker. For "Between", enter both the From and To dates. Click OK.
- Check the result. The pivot table now shows only rows that meet the date condition. The filter icon on the date field label changes to a funnel with a filter symbol, indicating an active filter.
- Clear or change the filter later. Click the same drop-down arrow and choose Clear Filter from [field name], or go back to Date Filters and pick a different condition. To remove all filters at once, go to PivotTable Analyze > Clear > Clear Filters.
Common Mistakes
- Dates stored as text. If the date column is left-aligned or the filter menu shows Text Filters instead of Date Filters, Excel does not recognize the values as dates. Convert them first (step 1).
- Forgetting to refresh. After changing source data, the pivot table keeps the old cache until you refresh. A date filter can appear to show wrong results simply because the cache is stale.
- Grouping conflicts. If the date field is grouped by Years/Quarters/Months, the filter applies to the grouped items, not individual dates. Ungroup first if you need a precise day-level filter.
- Filtering the wrong field. The drop-down arrow must be on the date field label, not on a value field or a different row label. Clicking the arrow next to "Sum of Sales", for example, gives value filters, not date filters.
- Blank dates. Rows with blank date cells are excluded when a date filter is applied. If you need them included, fill the blanks or add a separate category.
- Using a filter on a field that is not in the pivot table. The date field must be placed in Rows, Columns, or Filters area before its drop-down appears.
Tips
- Use relative date filters (This Month, Last Month, Year to Date) when you refresh the pivot table regularly; they update automatically without re-entering dates.
- Add the date field to the Filters area instead of Rows if you want a single drop-down at the top of the pivot table to control the whole report.
- Combine a date filter with a slicer for a more visual, clickable filter. Select a cell in the pivot table, go to PivotTable Analyze > Insert Slicer, and choose the date field.
- If you need to filter by a date range that changes often, consider adding a helper column in the source data with a formula like
=AND(A2>=StartDate, A2<=EndDate)and filtering on that TRUE/FALSE field instead. - Keep the source data as an Excel Table (Ctrl+T) so the pivot table automatically includes new rows when refreshed.
Troubleshooting
- The Date Filters option is greyed out or missing. This usually means the field contains text, not dates, or the field is not in the Rows/Columns/Filters area. Check the source column format and refresh.
- Filter shows no data. The date range you entered may not overlap with any dates in the source. Clear the filter and check the actual date range in the data.
- Filter does not update after refreshing. Relative filters like "This Month" depend on the system date. If your computer's date is wrong, the filter will be wrong. Also confirm the pivot table is connected to the correct data range.
- Dates appear as numbers (e.g., 45123). The cell format is General or Number. Select the date cells in the pivot table, right-click, choose Number Format, and pick Date.
- Cannot ungroup or group dates. This can happen if the source data has blank or error values in the date column. Clean the data and refresh.
- Filter applies to only part of the pivot table. If you have multiple pivot tables from the same cache, a filter on one may affect others. Use separate caches or apply filters carefully.
Frequently Asked Questions
Can I filter a pivot table by a date range that I type in?
Yes. Use Date Filters > Between and enter the start and end dates in the dialog box. The filter is saved with the pivot table.
Why does my pivot table show "Text Filters" instead of "Date Filters"?
Excel sees the field as text. Convert the source column to real dates (Data > Text to Columns, then format as Date) and refresh the pivot table.
Do date filters work in Excel for the web?
Yes, but the menu location may differ. Click the drop-down arrow on the date field and look for Date Filters. Some older browsers may have limited support.
How do I remove a date filter?
Click the drop-down arrow on the date field and choose Clear Filter from [field name]. Or use PivotTable Analyze > Clear > Clear Filters.
Can I use a date filter on a field that is not in the Rows area?
Yes, as long as the date field is in the Filters area. Drag it there, then use the drop-down at the top of the pivot table.
Why does my date filter show the wrong month?
Check that your system date and regional settings are correct. Relative filters like "This Month" rely on the computer's clock and calendar settings.