To add a filter by date in Excel, select your data range, go to the Data tab, and click Filter. Once the filter arrows appear in your column headers, click the arrow in the date column and select Date Filters to choose a specific time frame, such as "Tomorrow," "Last Month," or a custom date range. This process allows you to isolate specific time periods without deleting any data from your spreadsheet.
What You'll Need
- A computer with Microsoft Excel installed (Windows or macOS).
- A dataset containing a column specifically formatted as "Date."
- Administrative permissions to edit the workbook.
Step-by-Step
- Prepare Your Data: Ensure your date column is formatted correctly. Select the column, go to the Home tab, and in the Number group, ensure the dropdown is set to Short Date or Long Date. If the dates are stored as text, the date-specific filtering options will not appear.
- Activate the Filter: Click any single cell within your data range. Navigate to the Data tab on the top ribbon and click the Filter button (represented by a funnel icon). Alternatively, you can use the keyboard shortcut Ctrl + Shift + L (Windows) or Cmd + Shift + F (Mac).
- Open the Date Menu: Look for the small drop-down arrow that has appeared in the header cell of your date column. Click this arrow to open the filter menu.
- Select Date Filters: Hover your mouse over Date Filters. A side menu will appear with several predefined options:
- Tomorrow, Today, Yesterday: Quick filters for the immediate present.
- Next Week, This Week, Last Week: Filters based on the current calendar week.
- Next Month, This Month, Last Month: Filters based on the current calendar month.
- This Year, Last Year, Next Year: Filters based on the current calendar year.
- All Dates in Period: Allows you to select a specific month or year regardless of the current date.
- Apply a Custom Range: If the predefined options do not fit your needs, select Between... from the Date Filters menu. A dialog box will appear where you can enter a start date and an end date. Click OK to apply the filter.
- Clear the Filter: To see all your data again, click the filter icon in the column header and select Clear Filter From [Column Name], or go to the Data tab and click Clear.
Common Mistakes
- Incorrect Data Formatting: The most common error is having dates entered as text. If Excel sees "January 1, 2023" as a text string rather than a date value, the "Date Filters" menu will be replaced by a generic "Text Filters" menu.
- Empty Rows: If there is a completely empty row in the middle of your dataset, Excel may stop the filter range at that gap. Always ensure your data is a contiguous block or manually select the entire range before clicking Filter.
- Filtering Multiple Columns: Users often forget that applying a second filter to a different column further narrows the results of the first filter. If your list suddenly looks empty, check if other columns are still filtered.
Tips
- Use Tables: Convert your data range into an official Excel Table by pressing Ctrl + T. Tables automatically add filter buttons to the headers and expand the filter range automatically when you add new rows.
- Slicers for Visual Filtering: If you have converted your data into a Table or PivotTable, go to the Insert tab and select Slicer. While standard slicers are for categories, a "Timeline" slicer (available for PivotTables) provides a visual slider to filter dates.
- Keyboard Shortcuts: Use Alt + A + T (on Windows) to quickly toggle the filter on and off without using the mouse.
Troubleshooting
If the date filter is not working as expected, try these steps in order:
- Check for "Text" Dates: Select your date column. If the dates are aligned to the left of the cell, Excel is treating them as text. Select the column, go to the Data tab, select Text to Columns, click Next twice, and in the third step, select Date and the correct format (e.g., MDY). Click Finish.
- Refresh the Filter: If you have changed the dates in your cells while the filter was active, the view will not update automatically. Click the filter arrow and check/uncheck a box to refresh the data.
- Remove Existing Filters: If you cannot find the data you are looking for, go to Data > Clear to remove all active filters across the entire sheet and start over.
Frequently Asked Questions
Why does my filter say "Text Filters" instead of "Date Filters"?
This happens because Excel does not recognize the values in that column as dates. This is usually due to the cells being formatted as "Text" or the dates being entered in a format that doesn't match your computer's regional settings.
Can I filter for a specific day of the week?
Excel's built-in date filters do not have a "Monday only" option. To achieve this, create a helper column using the formula =TEXT(A2, "dddd") (where A2 is the date). You can then filter this new column for the specific day of the week.
How do I filter for dates that are blank?
Click the filter arrow in the date column, scroll to the bottom of the list of checkboxes, and check the box labeled (Blanks). This will hide all rows that have a date and only show the empty ones.
Will filtering my dates delete the other rows?
No. Filtering only hides the rows that do not meet your criteria. The data remains in the workbook and will reappear as soon as you clear the filter.
Can I filter by date on the Excel mobile app?
Yes, though the interface differs. Tap the column header, select Filter from the menu, and choose your criteria. Note that the advanced "Between" and "Custom" date options are more limited on mobile than on the desktop version.