The Excel Date Filter Is Not Grouping by Month – 3 Solutions

This is an overview.

Overview image of Excel Date Filter not grouping by month


The dataset showcases product code, selling date, and the company’s sales amount.

Dataset for demonstrating the reason and solution of Excel date filter not grouping by month

 

Solution 1 – If Dates Are Not in Proper Format

If the date is in Text format, it will be left aligned.

If you select more than one cell with dates, you will see only the cell count in the status bar.

Showing that dates are not in proper format

If you add a filter to C4:C14, there is no month-based date filtering option.

Illustrating that Excel date filter not grouping by month

If the inputs are in Date format, after applying the Filter month names will appear as a filtering option.

Illustrating that the date filter is filtering by month

Solutions:

Convert the Date inputs into Date format.

  • Select the cell range to filter. Here, C5:C14.
  • Go to the Data tab and select Text to Columns in Data Tools.

Choosing the Text to Column option for changing the format of date inputs

  • The Convert text to Columns Wizard will open.
  • Select Delimited in Original data type.
  • Click Next.

Selecting Delimited from the Original data type options

  • Click Next.

Setting Tab as delimiter

  • Select MDY date format in Column data format and click Finish.

Selecting column data format

  • Date format will be displayed and you will be able to Filter the dates by month..

Date inputs changed into date format from text format

 


Solution 2 – Not All Rows Are Selected When Grouping

In the image below only B4:D8 was selected while applying the Filter.

Showing all the rows not selected for filtering

If you click the Drop-down beside Sales Date, you can only see March, April, and July as filtering options.

All months option is not available as all rows are not selected for filtering

Solutions:

  • Selection all the rows you want to filter. Here, B4:D15.
  • Go to the Data tab and click Filter twice in Sort & Filter.

Select all rows and apply the filter

Click the drop-down option, and you will be able to see all the months.

All months' option being visible as all rows have been included before applying filter


Solution 3 – Grouping Dates in the AutoFilter Menu Is Disabled

The Group dates in the AutoFilter menu is disabled:

Showing Grouping Dates in the Autofilter Menu is disabled

Solutions:

Go to the File tab and click Options.

Choosing options after clicking the File tab

  • In Excel Options, click Advanced.
  • In Display options for this workbook,  click Group dates in the AutoFilter menu.
  • Click OK.

Enabling Group dates in the AutoFilter menu from the Advanced options

The AutoFilter menu is enabled and you will be able to filter dates by month.


How to Use a Pivot Table to Automatically Filter Dates Grouped by Month  in Excel

  • Select the cell range you want to filter by month. Here, B4:D14.
  • Go to Insert and select From Table/Range in Pivot Table.

Creating pivot table with selected cells

  • The PivotTable from table or range dialog box will display the selected range.
  • Choose a location to paste the pivot table. Here, B16 in Existing Worksheet.
  • Click OK.

Creating pivot table in the existing worksheet

  • Drag Sales Date and Months into Rows, and Sales into Values.

Selecting pivot table fields for creating the table

  • In B16 you will see the pivot table.

Illustrating the pivot table with the selected fields

  • Click the drop-down beside Row Labels.
  • In Select Field,  choose filter by Months or Sales Date.

Viewing the months' option filtering the date


How to Turn Off Automatic Date Filter Grouped by Month in Excel

  • Go to File.
  • Select Option.
  • Click Data.
  • Click Disable automatic grouping of Date/Time columns in PivotTables in Data options.
  • Click OK to turn off the Automatic Date Filter.

Disabling automatic grouping of Date/Time columns in PivotTable from Data excel options


3 Other Common Reasons that prevent Excel from Filtering the Date

 

1. Existing Blank Rows

Showing the data set containing blank rows

 

  • Click the drop-down in the Sales Date column and you will be able to see Blanks as an option along with the month names.
  • Uncheck Blanks.
  • Click OK.

Selecting blanks from the filtering options

  • Blank cells are hidden.

Illustration of blank cells hidden


2. Presence of Merged Cells

Illustration of the presence of merged cells

  • Click the drop-down in Sales date and select Sort Newest to Oldest.

Selecting Sort Newest to Oldest option for filtering

In the Sort Warning, select Expand the selection and click Sort.

Appearance of Sort warning message box

A message box is displayed: all cells need to be the same size.

Appearance of message box for making all cells of the same size

Unmerge the cells:

  • Select the merged cells. Here, C7.
  • Holding Ctrl, click C11.
  • Go to the Home tab, click  Merge & Center, and select Unmerge Cells.

Selecting Unmerge Cells option for unmerging the merged cells

  • Dates  are sorted from newest to oldest.

Illustration of being able to filter after unmerging the merged cells


3. Protected Worksheet

The sheet is protected.

Illustration of worksheet being protected

  • Go to the Home tab
  • Click Format in Cells.
  • Select Unprotect Sheet… in Protection.

Selecting Unprotect Sheet from Format options


Frequently Asked Questions

1. How do I group dates by Month in the Excel filter?

Select all Date inputs, including the header in the dataset. Go to the Data tab and click Filter. Click the drop-down, and you will see months as filtering options. If you have date inputs of different years, after clicking the drop-down, click Date Filters and All Dates in the Period. Choose a month.

2. What should I do if I need help with the suggestions above?

The Excel “MONTH” function allows you to extract the month value from a date and use it to build a pivot table or perform other data analysis tasks.


Download Practice Workbook

Download the practice workbook here!

 

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

Get FREE Advanced Excel Exercises with Solutions!
Priti
Priti

Priti Halder holds a BSc degree in Naval Architecture and Marine Engineering from Bangladesh University of Engineering and Technology. She has been a part of the ExcelDemy project for 6 months and during this time, she has written over 30 articles and 5 comments for the platform. Priti is currently employed as an Excel and VBA content developer and provides effective solutions to various Excel-related issues. She is passionate about expanding her knowledge of data analysis and Microsoft... Read Full Bio

2 Comments
  1. Hello,

    Using the “Convert text to Columns Wizard” method to convert the data helped. I was getting really frustrated because nothing seen on the internet seemed to work, but this method saved me.

    Thank you very much and have a great day/night!

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo