How to Convert Text Filter to Date Filter in Excel (3 Examples)

The basic method to convert a text filter to a date filter in Excel is simple – just disable the text filter first, then move on to work with the date filter. If a date filter is not already present, one will have to be applied.

To illustrate our examples of how to replace a text filter with a date filter, we’ll use the dataset below.

dataset to convert text filter to date filter in excel

We can apply date filters directly on this dataset in two ways – either by converting it to a table or a pivot table.


Example 1 – Using CheckBoxes in a Table

Suppose we have already converted our dataset into a Table.

text filter before convert text filter to date filter in excel

A text filter is active for the “Woods” and “Shelf” values in the “Product” column. To apply a filter on the date column, we first need to disable the text filter on the “Product” column.

Steps:

  • Select the filter button beside the column header of the “Product” column.
  • Select Clear Filter from “Product” from the drop-down menu.

removing text filter to convert text filter to date filter in excel

This will remove the text filter.

text filter removed before converting to date filter in excel

  • Click on the filter button beside the “Date” Column.
  • Select/deselect your preferred dates by checking or unchecking them as the case may be.

convert text filter to date filter in excel using checkboxes

  • Click on OK.

convert text filter to date filter in excel using checkboxes result


Example 2 – Filtering for Specific Date Ranges

Now let’s take a look at a pivot table made from the same dataset.

pivot table with text filter

Together with the date values, the text values are already in the pivot table filter, which has the “Woods” and “Furniture” filters on. Let’s convert the text filter to a date filter on the pivot table, but this time within a specific date range.

Steps:

  • Select the filter button on the column header of the first column labeled “Row Labels”.
  • Select Clear Filter from Product from the drop-down menu.

clearing text filter from pivot table to convert text filter to date filter in excel

Excel will remove the text filters from the pivot table.

text filter removed while converting text filter to date filter in excel

  • Click on the filter button beside “Row Labels” again.
  • But this time, hover your mouse cursor over the Date Filters from the drop-down menu.
  • Select Between from the menu that pops up.

  • Select is between in the first field of the Date Filter (Date) box that pops up.
  • Select the dates between which you want to retain in the filtered pivot table.

  • Click on OK.

 date filters for a range


Example 3 – Applying Date Filter for Dynamic Date Ranges

As dates are continuously changing, dynamic filters will help us to reshuffle the data that the pivot table shows depending on the current date. This is very helpful if we are in constant need of filtering a pivot table for a specific period of time, say for the next month or today’s sales.

Returning to the previous pivot table with the text value filter on, let’s convert the text filter to a dynamic date filter.

Steps:

  • Click on the filter button beside the “Row Label” on the column header of the first column.
  • Select Clear Filter from Product from the drop-down menu.

Excel will clear the text filters from the pivot table.

  • Click on the filter button beside “Row Labels” again.
  • Select Date Filters from the drop-down first.
  • Select the period you want from the list on the right.

applying a dynamic date filter

The pivot table now contains a date filter that shows the data belonging to the current month.

If the month changes (in your operating system), the values shown in the pivot table will also change.

convert text filter to a dynamic date filter in excel


Download Practice Workbook


<< Go Back to Filter in Excel | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Abrar-ur-Rahman Niloy
Abrar-ur-Rahman Niloy

Abrar-ur-Rahman Niloy, holding a B.Sc. in Naval Architecture and Marine Engineering, has contributed to Exceldemy for nearly 1.5 years. As a leader in Excel, VBA, and Content Development teams, he authored 114+ articles and assisted the Exceldemy forum. Presently, as a project writer, he prioritizes stepping out of his comfort zone, aiming for constant technical improvement. Niloy's interests encompass Excel & VBA, Pivot Table, Power Query, Python, Data Analysis, and Machine Learning libraries, showcasing his commitment to diverse... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo