How to Group Dates by Filter in Excel: 3 Easy Methods

Method 1 – Using Filter Command to Group Dates by Filter in Excel

1.1. Utilizing AutoFilter Simply

Steps:

  • Select any data or the entire dataset on your worksheet. Go to Editing > Sort & Filter > Filter.

How to Group Dates in Excel Filter Using AutoFilter

Note: You can enable the AutoFilter option by pressing CTLR + SHIFT + L.

  • The Filter option is now enabled, and the Filter icon can be found on the right side of each Header. Click the Filter icon in the Order Date Header to filter dates.

How to Group Dates in Excel Filter Using AutoFilter

  • You’ll see various options presented, such as the image below.

How to Group Dates in Excel Filter Using AutoFilter

  • Filter data only for January and February, check those boxes, uncheck the rest, and click OK.

How to Group Dates in Excel Filter Using AutoFilter

  • Excel only displays data for January and February. Rows 9 to 14 are hidden because they don’t contain data from those months.

How to Group Dates in Excel Filter Using AutoFilter


1.2. Applying Date Filters

Steps:

  • Open the filter choices by pressing the Filter icon in the Order Date’s header, just as you did in the previous section. Choose Date Filters > Last Month.

How to Group Dates in Excel Filter Using Date Filters

  • It will show the filtered data for the last month. As it is June, data for May month will be shown here.

How to Group Dates in Excel Filter Using Date Filters


1.3. Implementing Custom AutoFilter Option

Steps:

  • Click Date Filters > Custom Filters.

How to Group Dates in Excel Filter Using Custom AutoFilters

  • A Custom Autofilter dialog box opens. The two boxes above are for the start date and the remaining lower two’s are for the end date. Fill up boxes sequentially like the picture below to get the data between 1 Feb to 31 May of the year 2022 and click OK.

How to Group Dates in Excel Filter Using Custom AutoFilters

  • Obtain all of the filtered data for the dates we’ve chosen.

How to Group Dates in Excel Filter Using Custom AutoFilters


Method 2 – Creating Table and Grouping Dates

Steps:

  • Select the entire range of cells containing data. Select Insert > Table.

How to Group Dates in Excel Filter Inserting Table

  • In the Create Table dialog box, our data range is already selected.Click OK.

How to Group Dates in Excel Filter Inserting Table

  • The Filter Data icon beside each header. You can use this icon to navigate the Date Filters option.

How to Group Dates in Excel Filter Inserting Table

  • Click on the Filter icon in the Order Date’s header, and you can filter your data by date easily, just like our previous method.

How to Group Dates in Excel Filter Inserting Table


Method 3 – Create Pivot Table to Group Dates

Steps:

  • Create a pivot table select the range of data in our Dataset worksheet. From the Insert tab, select Pivot Table.

How to Group Dates in Excel Filter Inserting Pivot Table

  • The PivotTable from table or range dialog box opens. Our dataset is already selected in the table selection box. Choose New Worksheet to place our pivot table, and click OK.

How to Group Dates in Excel Filter Inserting Pivot Table

  • The new worksheet interface will look like the image below. Drag down 2 fields Date and Sales into Rows and Values.

How to Group Dates in Excel Filter Inserting Pivot Table

  • Our pivot table is looking like this.

How to Group Dates in Excel Filter Inserting Pivot Table

  • There is a drop-down arrow beside each header. Click the arrow beside Row Labels’ header to filter data by date like Method 1.

Inserting Pivot Table

  • To group dates, select any date from Row Labels and right-click on it. Choose the Group option from the list.

Inserting Pivot Table

  • The Grouping dialog box opens. You can see that starting and ending dates are automatically set. Choose Months and Years from the list to group the data by this condition. Click OK.

Inserting Pivot Table

  • You can see that our table is magically transformed to show the data in months and years instead of the date format. We can easily visualize the monthly total sales. Here our dates are grouped into months as per our preference.

Inserting Pivot Table

  • Group dates on a weekly base. Select Days and write down 7 in the Number of days box in the Grouping dialog box. Click OK.

Inserting Pivot Table

  • Our pivot table shows just like below.

Inserting Pivot Table

Our Order Dates are now grouped into weeks with a range of 7 days.


Possible Reasons If You’re Unable to Group Dates by Filter in Excel


Reason 01: If Grouping Dates in Filters Is Disabled

Solution:

  • Select File > Options > Advanced > Check box Group dates in the AutoFilter menu.

Enabling Group Dates in Filters


Reason 02: When Your Filter Doesn’t Cover All Rows

Solution:

  • Select filtered cells on your worksheet. Select as follows.

Editing > Sort & Filter > Filter.

Removing Filter

  • We filtered range of cells will look like this.

Removing Filter


Download Practice Workbook

You may download the following Excel workbook for better understanding and practice yourself.


<< Go Back to Date Filter | Filter in Excel | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Shahriar Abrar Rafid
Shahriar Abrar Rafid

Shahriar Abrar Rafid, BSc, Naval Architecture and Marine Engineering, Bangladesh University of Engineering and Technology, Bangladesh, has worked with the ExcelDemy project for more than 1 year. He has written over 100+ articles for ExcelDemy. He is a professional visual content developer adept at crafting scripts, meticulously editing Excel files, and delivering insightful video tutorials for YouTube channels. His work and learning interests vary from Microsoft Office Suites and Excel to Data Analysis, VBA, and Video recording and... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo