To pull data from a date range in Excel, select a cell in your data, choose Data > Filter, open the date column's arrow and pick Date Filters > Between, or type =FILTER(A2:C200,(A2:A200>=F1)*(A2:A200<=F2),"No rows") in Excel for Microsoft 365, 2024 or 2021.
Below are all seven ways, from a quick filter to formulas that update on their own, plus a version table and fixes for date criteria that return nothing.
1. Using filters to extract data for a date range
AutoFilter hides every row outside the dates you choose. It works in every desktop version of Excel and in Excel for the web, and it needs no formula.
The examples in this guide use order dates in column A, customer names in column B and amounts in column C, with headers in row 1.
- Select any cell in the data range.
- Select Data > Filter. A filter arrow appears in every header cell.
- Select the arrow in the date column header, such as Order Date.
- Point to Date Filters and select Between.
- Enter the start date in the first box and the end date in the second box.
- Select OK. Only rows with dates inside that range stay visible.
- To copy just those rows elsewhere, select the visible data, choose Home > Find & Select > Go To Special, select Visible cells only > OK, then press Ctrl+C and paste with Ctrl+V.
The same Date Filters menu also has Before, After, Equals and dynamic periods under All Dates in the Period, such as Today or Next Month. To show every row again, select the column arrow and choose Clear Filter from followed by the column name.

Excel filter between two dates by version and result
The seven methods differ in what they return and whether they update when the source data changes. Match your case to a row.
| Your situation | Use this | Why |
|---|---|---|
| You want a quick look at the rows in a range | 1. Date Filters > Between | No formula, and the filter is cleared in one click |
| You need a static copy of matching rows in another place | 2. Advanced Filter with Copy to another location | Writes the rows out; does not update when criteria change |
| You have Excel for Microsoft 365, 2024 or 2021 and want a live list | 3. FILTER function | Results spill and recalculate when dates or data change |
| You need a total, count or average for the period, not the rows | 4. SUMIFS and COUNTIFS | One cell answer with start and end date criteria |
| Your data feeds a PivotTable report | 5. PivotTable timeline | Drag across months or days to filter the report |
| The data is large, imported, or refreshed from another file | 6. Power Query | The date filter is saved as a query step and reapplied on refresh |
| You use Excel 2019 or older and need a live list | 7. INDEX and AGGREGATE | A formula list without dynamic arrays |
2. Using Advanced Filter for extracting date range data
Advanced Filter reads its conditions from a criteria range on the sheet. To set a start and an end date for one column, give the criteria range two columns with the same header, which Excel treats as an AND condition when both values sit on the same row.
- Insert at least three blank rows above your data to hold the criteria range, leaving one blank row between the criteria and the data.
- In two adjacent cells of the top row, type the date column's header twice, for example Order Date and Order Date.
- Under the first header, type the start condition, such as
>=1/1/2026. - Under the second header, on the same row, type the end condition, such as
<=3/31/2026. - Select any cell in the data, then on the Data tab, in the Sort & Filter group, select Advanced.
- Choose Filter the list, in-place to hide other rows, or Copy to another location to write the matching rows out.
- In the Criteria range box, enter the criteria cells including the headers, such as
$A$1:$B$2. If you chose to copy, enter the destination cell in the Copy to box. - Select OK.
Advanced Filter does not update when you change the criteria values, so run it again after editing a date. To copy only some columns, put those column headers in the first row of the destination and point Copy to at them. Clear the result with Data > Clear.

3. Using the FILTER function (Excel 365 and Excel 2021)
FILTER(array,include,[if_empty]) returns every row whose include test is TRUE, and the result spills into the cells below and to the right. It is available in Excel for Microsoft 365, Excel 2024, Excel 2021, Excel for the web and the Excel mobile apps.
Multiplying two conditions with * makes an AND test, which is exactly what a date range needs.
- Type the start date in
F1and the end date inF2. - Select an empty cell with enough free space below and to the right, such as
H2. - Type
=FILTER(A2:C200,(A2:A200>=F1)*(A2:A200<=F2),"No rows")and press Enter. - Change
F1orF2to a new date. The spilled list updates straight away. - To sort the result by date, wrap it:
=SORT(FILTER(A2:C200,(A2:A200>=F1)*(A2:A200<=F2),"No rows"),1,1). - Format the first result column as a date if it shows serial numbers.
Keep the third argument. Without it, a range with no matching rows returns #CALC!, because Excel does not support empty arrays. If the data is an Excel table and you use structured references, the result also resizes as rows are added to the table.

4. Using SUMIFS and COUNTIFS to total a date range in Excel
When you need a number for the period rather than the rows themselves, SUMIFS and COUNTIFS take the same date column twice: once with a start criterion and once with an end criterion. Join each operator to a cell with &.
- Type the start date in
F1and the end date inF2. - To total the amounts, type
=SUMIFS(C2:C200,A2:A200,">="&F1,A2:A200,"<="&F2)in an empty cell. - To count the orders, type
=COUNTIFS(A2:A200,">="&F1,A2:A200,"<="&F2). - To average the amounts, use the same criteria with
=AVERAGEIFS(C2:C200,A2:A200,">="&F1,A2:A200,"<="&F2). - Add another pair to narrow the result, for example
,B2:B200,"Contoso"for one customer. - Press Enter and check the result against Method 1 once to confirm the criteria.
In SUMIFS the sum range comes first, which is the opposite of SUMIF. Every criteria range needs the same number of rows and columns as the sum range.
5. Using a PivotTable timeline to filter dates in Excel
A timeline is a date slicer for a PivotTable. It works in Excel for Microsoft 365, Excel 2024, 2021, 2019 and 2016, and the range you drag also filters any PivotChart built on the same PivotTable.
- Select a cell in the data and choose Insert > PivotTable, then build the report with your date field.
- Select any cell in the PivotTable.
- On the Analyze tab, select Insert Timeline.
- In the Insert Timelines dialog, tick the date field, such as Order Date, and select OK.
- Select the arrow next to the current time level and choose years, quarters, months or days.
- Select the first period tile and drag across the adjacent tiles to cover your range. Drag the handles at each end to fine-tune it.
- Select the Clear Filter button on the timeline to show all dates again.
A timeline filters only PivotTables and PivotCharts. To pull the rows themselves into a sheet, use Method 3, 6 or 7 instead.

6. Using Power Query to filter a date range in Excel
Power Query saves the date filter as a step in a query. Each time you refresh, it reapplies the same range to the new data, which suits monthly exports and large files.
- Select any cell in the data range, then select Data > From Table/Range.
- In the Create Table dialog, tick My table has headers and select OK. The Power Query Editor opens.
- Select the arrow next to the date column header.
- Point to the date filter menu and select Between.
- In the Filter Rows dialog, enter the start and end dates in Basic mode and select OK.
- Select Home > Close & Load > Close & Load to write the filtered rows to a new worksheet.
- When the source changes, select Data > Refresh All or press Ctrl + Alt + F5.
The same menu offers Before, After, In the Previous, In the Next and preset periods such as Month and Year, which need no dialog. A rolling filter like In the Previous keeps a report current without editing dates.

7. Using INDEX and AGGREGATE to pull date range data in older Excel
Excel 2019 and earlier have no FILTER function, but AGGREGATE can return the row numbers that match a date range. Function number 15 is SMALL and option 6 ignores error values, so rows that fail the test (a divide-by-zero) are skipped.
- Type the start date in
F1and the end date inF2. - In
H2, type=IFERROR(INDEX($A$2:$C$200,AGGREGATE(15,6,(ROW($A$2:$A$200)-ROW($A$2)+1)/(($A$2:$A$200>=$F$1)*($A$2:$A$200<=$F$2)),ROWS(H$2:H2)),COLUMNS($H2:H2)),""). - Press Enter.
- Drag the fill handle from
H2across toJ2to return the customer and amount columns. - Select
H2:J2and drag the fill handle down until the cells come back blank. - Format column H as a date.
ROWS(H$2:H2) counts up 1, 2, 3 as you fill down, so each row asks for the next match. COLUMNS($H2:H2) does the same across, choosing which column of the source to return. The IFERROR wrapper leaves blanks once the matches run out.
How Excel stores dates for date range criteria
Every method above compares numbers. Excel stores a date as a serial number, and by default January 1, 1900 is serial number 1, so a later date is simply a larger number.
| What you see | What Excel compares | Effect on a date range |
|---|---|---|
| A real date | A serial number | Works with Between, >= and <= |
| A date stored as text | Text | The column shows Text Filters instead of Date Filters, and formulas skip it |
| A date with a time, such as 3/31/2026 4:30 PM | A serial number plus a fraction | <=3/31/2026 misses it; use <4/1/2026 instead |
| A mix of dates and text in one column | Mixed types | Excel shows the filter type that occurs most often |
To fix text dates, add a helper column with =DATEVALUE(A2), format it as a date, and filter or reference that column instead.
Excel date filter not working
The column arrow shows Text Filters instead of Date Filters
Most of the values in the column are text that looks like dates.
- Insert a column next to the dates.
- Type
=DATEVALUE(A2)and fill it down. - Format the new column as a date.
- Copy it and paste as values over the original column, then reapply the filter.
FILTER returns #CALC!
No row falls inside the range and the if_empty argument is missing.
- Add a third argument, such as
"No rows". - Check that the start date in
F1is earlier than the end date inF2. - Confirm the date column holds real dates, not text.
SUMIFS or COUNTIFS returns 0 for a date range
The operator is not joined to the cell, or the dates are text.
- Write each criterion as
">="&F1, with the operator in quotes and&before the cell. - Make sure
F1andF2contain dates, not text. - Check that the sum range and both criteria ranges cover the same rows.
The last day of the range is missing
The dates include times, so they are larger than the end date's midnight value.
- Change the end test to less than the next day, such as
"<"&F2+1. - In AutoFilter or Advanced Filter, enter the day after the end date with a less-than condition.
Advanced Filter results did not change after editing the dates
Advanced Filter does not recalculate when the criteria change.
- Select a cell in the data.
- Select Data > Advanced again and select OK.
- For a list that updates on its own, use Method 3 or Method 7.

Excel date range FAQ
How do I filter data between two dates in Excel?
Select a cell in the data, choose Data > Filter, open the date column's arrow, point to Date Filters and select Between. Enter the start and end dates and select OK. Rows outside that range are hidden until you clear the filter.
What is the formula to extract data between two dates in Excel?
In Excel for Microsoft 365, 2024 or 2021, use =FILTER(A2:C200,(A2:A200>=F1)*(A2:A200<=F2),"No rows") with the start date in F1 and the end date in F2. In older versions, use INDEX with AGGREGATE to return matches one row at a time.
How do I sum values between two dates in Excel?
Use SUMIFS with the date column twice: =SUMIFS(C2:C200,A2:A200,">="&F1,A2:A200,"<="&F2). The first criterion sets the start date and the second sets the end date. Swap SUMIFS for COUNTIFS or AVERAGEIFS to count or average the same period.
Why does my Excel date filter show Text Filters?
The column holds mostly text rather than real dates, so Excel offers the filter type it finds most often. Convert the values with DATEVALUE in a helper column, format the result as a date, and the arrow then shows Date Filters.
Does the FILTER function work in Excel 2019 or 2016?
No. FILTER is available in Excel for Microsoft 365, Excel 2024, Excel 2021, Excel for the web and the mobile apps. In Excel 2019 or 2016, use Advanced Filter for a one-off copy, or an INDEX and AGGREGATE formula for a list that updates.
Can Advanced Filter copy date range rows to another location?
Yes. In the Advanced Filter dialog, choose Copy to another location and enter a destination cell in the Copy to box. The copied rows are a snapshot, so run Advanced Filter again whenever you change the dates in the criteria range.
How do I filter dates by month in Excel?
Open the date column's filter arrow and point to Date Filters, then All Dates in the Period, and pick a month. Those periods filter by month regardless of year. For a PivotTable, insert a timeline and set its time level to months.
How do I pull data from a date range on another sheet?
Point the formula at the other sheet's ranges, for example =FILTER(Sheet2!A2:C200,(Sheet2!A2:A200>=F1)*(Sheet2!A2:A200<=F2),"No rows"). The start and end dates can stay on the sheet where the results appear.


![Find scanned documents on your computer [3 ways]](https://techdows.com/wp-content/uploads/2026/12/Find-scanned-documents-on-your-computer-3-ways-1-600x338.jpg)

