Filtering by date in Excel lets you show only the rows that fall within a specific date range, such as a single day, a month, a quarter, or a custom period like the last 30 days. You can do this using the built-in date filters on a column that contains real Excel dates (not text that looks like dates). This guide covers the quick filter method, the custom date filter, and how to handle common problems like blank cells or mixed data types.
What You'll Need
- A worksheet with a column containing dates. These must be actual Excel dates (numbers formatted as dates), not text. If your dates are left-aligned in the cell, they are probably text.
- Excel 2010 or later (the steps are the same in Excel for Microsoft 365, Excel 2016, 2019, and 2021; menu labels may differ slightly by version and language).
Step-by-Step
Method 1: Use the Quick Date Filter
- Select any cell inside your data range (for example, a cell in the date column). If your data has a header row, select a cell in that row.
- Go to the Data tab on the ribbon and click the Filter button (it looks like a funnel). Alternatively, press Ctrl+Shift+L on your keyboard. This adds drop-down arrows to each header cell.
- Click the drop-down arrow on the header of your date column. A menu appears with a list of all unique values in that column, plus a checkbox list at the bottom.
- Hover over Date Filters (or Filters if your Excel version uses that wording). A submenu appears with options like Equals, Before, After, Between, Tomorrow, Today, Yesterday, Next Week, This Week, Last Week, Next Month, This Month, Last Month, Next Quarter, This Quarter, Last Quarter, Next Year, This Year, Last Year, Year to Date, and All Dates in the Period (which expands to show quarters and years).
- Choose a quick option, such as This Month or Last Year. Excel immediately filters the rows to show only those that match that period.
- To remove the filter, click the drop-down arrow again and choose .
Method 2: Use a Custom Date Range
- Follow steps 1–3 above to open the date filter menu.
- Hover over Date Filters and choose Custom Filter (or Between if available). A dialog box opens.
- In the dialog box, set the first drop-down to is after or equal to (or is on or after) and enter the start date in the box next to it. For example, type
1/1/2024. - Set the second drop-down to is before or equal to (or is on or before) and enter the end date. For example, type
12/31/2024. - Make sure the And radio button is selected (not Or). Click OK. Excel shows only rows where the date is within that range.
Method 3: Filter by a Specific Day or Month
- If you want to see all rows for a particular day (e.g., all entries on March 15, 2024), use the Equals option in the Date Filters submenu and type that date.
- If you want all rows from a specific month but across multiple years (e.g., every March), use the All Dates in the Period option and then choose March from the list. This filters to all March dates regardless of year.
Method 4: Filter Using a PivotTable (for complex analysis)
- Select your data, go to Insert > PivotTable, and choose where to place it.
- Drag the date field to the Rows area and the value field to the Values area.
- Right-click on any date in the PivotTable and choose Group. You can group by months, quarters, or years, and then use the field's filter arrow to select specific periods.
Common Mistakes
- Dates are text, not real dates. If your date column is left-aligned, Excel treats it as text. The Date Filters menu may not appear, or it will show text options. To fix, select the column, go to Data > Text to Columns, click Next twice, choose Date under Column data format, and pick the correct date format (e.g., MDY). Then click Finish.
- Blank cells in the date column. Blank cells are ignored by date filters, but they can cause issues if you filter by a specific period and then sort. To see blanks, use the filter drop-down and uncheck Select All, then check Blanks at the bottom.
- Filtering on a merged cell. Merged cells can break filtering. Unmerge any merged cells in your data range before filtering.
- Using the wrong column. Make sure you click the drop-down on the date column, not the one next to it.
Tips
- Use Ctrl+Shift+L to toggle filters on and off quickly.
- If you filter by a date range and then copy the visible cells, Excel copies only the filtered rows. To copy only visible cells, select the range, press Alt+; (or go to Home > Find & Select > Go To Special > Visible cells only), then copy.
- To filter by a relative date like "last 30 days," use the custom filter with
is after or equal toand enter=TODAY()-30in the date box. Excel will calculate the date dynamically. - If your data has a header row, keep it unmerged and make sure it's in the first row of the selection. Excel uses the header to name the filter.
- For large datasets, consider converting your data to an Excel Table (select the data and press Ctrl+T). Tables make filtering easier and keep the filter range automatic when you add new rows.
Troubleshooting
If the date filter does not work as expected, try these checks in order:
- Check if the column contains text dates. Select a cell with a date and look at the formula bar. If it shows a date like
3/15/2024instead of a number like45366, it's text. Convert it using Text to Columns as described above. - Check for hidden rows. If you filter and see no rows, but you know data exists, clear all filters by going to Data > Clear (or clicking the Clear button on the ribbon).
- Check for merged cells. Merged cells in the date column can cause the filter to ignore some rows. Unmerge them.
- Check the region settings. If you type a date like
3/15/2024and Excel interprets it as15 March 2024(because your system uses DD/MM/YYYY), the filter may not match your intended range. Use a date format that matches your system, or use the date picker in the dialog box. - Restart Excel. If the filter menu is not showing date options, close and reopen the workbook. Sometimes Excel needs a refresh.
Frequently Asked Questions
Can I filter by date in Excel without using the Data tab?
Yes. You can use the keyboard shortcut Ctrl+Shift+L to add filter arrows directly, or you can right-click on a cell in the date column and choose Filter > By Selected Cell's Value (this filters to that exact date).
How do I filter by date and another column at the same time?
Apply the date filter first, then click the drop-down on the other column and select the criteria. Both filters work together, showing only rows that match both conditions.
Why does my date filter show "Equals" but not "Between"?
The quick filter menu shows only the most common options. To get "Between," choose Custom Filter from the submenu, or use the Between option if it appears. The custom filter dialog lets you set a between condition.
How do I filter by a date range that updates automatically (e.g., last 7 days)?
Use the custom filter and enter =TODAY()-7 for the start date and =TODAY() for the end date. Excel recalculates the filter each time the workbook opens.
Can I filter by year only?
Yes. Use the All Dates in the Period option in the date filter submenu, then choose the year. Or use a custom filter with is after or equal to January 1 of that year and is before January 1 of the next year.
What if my dates include time as well?
If your cells contain both date and time (e.g., 3/15/2024 14:30), a date filter like "equals 3/15/2024" will not match because the time makes the value different. Use a custom filter with is after or equal to 3/15/2024 0:00 and is before 3/16/2024 0:00 to capture the whole day.