The excel filter function is a formula that pulls matching rows out of a list and puts them somewhere new. In fact, you type one formula, and Excel copies every row that passes your test. Then the result updates on its own when the data changes.
Indeed, this formula saves real time if you work with lists a lot. First, this guide builds one small UK orders list for every example. Next, it covers one formula, then AND and OR, then the errors. Our PDF to Word converter guide shows the same plain approach for turning files into editable text.
What the Excel FILTER Function Does
Three parts, one job. First, the formula takes three parts. They are the range to return, the test to apply, and an optional message for no matches. Then the test runs row by row, and only the rows that pass come out. For example, a test on the region column keeps only the North rows.
Next, the result spills. You type the formula in one cell, and Excel fills the cells below and to the right on its own. In fact, those spill cells must stay empty, or you will see #SPILL!.
Finally, the result also stays live. Change a region, and the filtered list updates at once. As a result, you build the formula once and trust it.
Your First Excel Filter Function Formula: One Condition
First, our list has four columns — Customer, Region, Amount, Date — and eight orders in cells A2:D9. Ava Thompson and Noah Patel are both from the North, at £420 on 3 March and £650 on 5 March. Next, Liam Garcia is from the South at £180 on 8 March, and Emma Wilson is from the Midlands at £310 on 12 March. Then Olivia Brooks and Sophia Martin are from the North at £95 on 15 March and £275 on 18 March. Meanwhile, Ethan Nguyen is from the South at £540 on 21 March and Mason Clark from the Midlands at £720 on 25 March.
The excel filter function returns only the rows that pass your test. For example, to list every order from the North, type this in a blank cell:
`=FILTER(A2:D9, B2:B9=”North”, “No orders”)`
As a result, four rows spill out: Ava Thompson, Noah Patel, Olivia Brooks and Sophia Martin. Then edit any region and the four rows change with it. In addition, start both ranges on row 2: the formula leaves the header out.
AND and OR: Two or More Conditions
Multiply for AND, add for OR. For example, keep only the North orders over £250. Test the region and the amount together:
`=FILTER(A2:D9, (B2:B9=”North”)*(C2:C9>250), “No orders”)`
As a result, three rows pass: Ava Thompson at £420, Noah Patel at £650 and Sophia Martin at £275. Meanwhile, Olivia Brooks drops out at £95. Each test gives TRUE or FALSE per row. In other words, TRUE counts as 1 and FALSE as 0. A row passes only when both tests give 1.
For OR, add the tests instead:
`=FILTER(A2:D9, (B2:B9=”South”)+(B2:B9=”Midlands”), “No orders”)`
Then four rows pass: Liam Garcia, Emma Wilson, Ethan Nguyen and Mason Clark. In other words, a row passes when the sum is 1 or more. Furthermore, you can mix both ideas: this formula keeps South or Midlands orders over £500:
`=FILTER(A2:D9, ((B2:B9=”South”)+(B2:B9=”Midlands”))*(C2:C9>500), “No orders”)`
As a result, only Ethan Nguyen and Mason Clark pass. The extra brackets round the OR part matter, because Excel multiplies before it adds.
Never use AND() or OR() inside the formula. AND(B2:B9=”North”, C2:C9>250) gives one single TRUE or FALSE for the whole range. As a result, the formula returns #VALUE!. Instead, use * for AND and + for OR, and the logic works row by row.
Which Filter Should You Use? FILTER, AutoFilter or Advanced Filter
Excel gives you three ways to filter, and each one fits a different job. AutoFilter hides rows in place. First, click the arrow on a column header, tick the values you want, and the rest vanish. Advanced Filter copies matching rows elsewhere, and it handles tricky rules with a criteria range. However, the excel filter function is the right pick when the result must stay live and feed another formula.
Next, choose by how often the list changes. For instance, if the data never changes, AutoFilter is the fastest route. When the rules are complex but the data stays still, Advanced Filter fits. If the data changes often, or the result feeds a chart or a total, use the formula.
One more difference matters: AutoFilter and Advanced Filter work in every version of Excel, even old ones. Overall, most everyday jobs suit AutoFilter, while repeat reports suit the formula.
Keep Your Criteria in Cells, Not in the Formula
Hard-coded values make a formula brittle. Instead, put the region in a cell, and the formula reads it from there. For example, type North in cell G1, then use this formula:
`=FILTER(A2:D9, B2:B9=G1, “No orders”)`
Then change G1 to South, and the result switches at once.
This pattern turns a formula into a small report. Next, put the region in G1 and the minimum amount in G2:
`=FILTER(A2:D9, (B2:B9=G1)*(C2:C9>=G2), “No orders”)`
For example, type Midlands in G1 and 300 in G2 for Emma Wilson and Mason Clark. In fact, a few input cells can drive a whole dashboard.
FILTER, SORT and UNIQUE in One Formula
One formula can feed straight into another. First, wrap the result in SORT to list the North orders from largest to smallest:
`=SORT(FILTER(A2:D9, B2:B9=”North”), 3, -1)`
For example, the 3 sorts by the third column, Amount, and -1 means largest first. Noah Patel at £650 comes first, then Ava Thompson, Sophia Martin and Olivia Brooks.
To list each region once, wrap a filter in UNIQUE:
`=UNIQUE(FILTER(B2:B9, C2:C9>300))`
Next, five orders pass £300, across three regions. As a result, the list shows North, Midlands and South, each once. You can nest all three in one formula, too:
`=SORT(UNIQUE(FILTER(B2:B9, C2:C9>300)))`
That gives Midlands, North and South in order, with one formula doing the whole job instead of three helper columns.
Filter by Dates and Text with the Excel Filter Function
Dates work like numbers, because Excel stores each date as a number. For example, to list orders after 10 March 2026, use this:
`=FILTER(A2:D9, D2:D9>DATE(2026,3,10), “No orders”)`
Then five orders pass: Emma Wilson, Olivia Brooks, Ethan Nguyen, Sophia Martin and Mason Clark. Similarly, a date range tests the same column twice.
Text needs a different trick, because = cannot do a partial match. Next, use SEARCH to find customers whose names contain “son”:
`=FILTER(A2:D9, ISNUMBER(SEARCH(“son”, A2:A9)), “No orders”)`
As a result, three rows pass: Ava Thompson, Emma Wilson and Mason Clark. In fact, SEARCH is not case-sensitive, so “SON” works the same way. However, a trailing space breaks a match, so clean the data with TRIM first.
Which Excel Versions Have the Excel FILTER Function?
It works in Excel for Microsoft 365, Excel 2021 and Excel 2024, on Windows and Mac. It also works in Excel for the web and the mobile apps. Unfortunately, Excel 2019 and earlier do not. Type it there, and you will see #NAME?. Meanwhile, if your work computer runs an old version, ask your IT team about an update, or use AutoFilter instead. In addition, the file still opens in old Excel, but the result shows #NAME?.
Errors and Fixes: #SPILL!, #CALC!, #VALUE! and #NAME?
#SPILL! means the result has nowhere to go. The cells below or beside the formula are not empty. Then clear them or move the formula.
#CALC! means nothing matched. The excel filter function shows #CALC! when no rows pass the test and you left out the third part. Instead, add a message, such as “No orders”, and the error turns into plain text. First, check the test for typos or spaces.
#VALUE! means the ranges do not line up. The array and the test must cover the same rows. For instance, A2:D9 with B2:B10 gives #VALUE!, since the test has one row too many. Therefore, match the rows, and the error clears. Likewise, AND() or OR() inside the formula gives the same error, so use * and + instead.
#NAME? means your Excel is too old. The formula does not exist in Excel 2019 or earlier. Then check the version, and use AutoFilter there. Finally, #REF! can appear when the formula points at another workbook. Keep that workbook open, or copy the data into the same file.
What the Excel FILTER Function Cannot Do
The formula has limits. It cannot change the source data in place, so it never edits your list. Similarly, sorting needs SORT. Likewise, a closed workbook breaks the link, so keep linked files open. Finally, a running total needs SUM. Overall, it does one job well: it copies the matching rows to a new spot.
The excel filter function turns a messy list into a clean answer with one formula. First, start with one condition, add AND or OR when you need them, and keep your criteria in cells. Then your reports update themselves.
Frequently Asked Questions
Can I use the excel filter function in older versions of Excel?
No. In fact, it works in Microsoft 365, Excel 2021 and Excel 2024. It also works in Excel for the web and the mobile apps. Excel 2019 and earlier show #NAME? instead, so use AutoFilter there.
Why does my formula show #CALC!?
Unfortunately, no rows passed the test, so the result is empty. Add a third part, such as “No orders”, to show a message instead. Then check for typos or extra spaces in the test.
Why does my formula show #SPILL!?
The cells where the result should go are not empty. Then clear them, or move the formula.
Can I filter by two conditions at once?
Yes, multiply the tests for AND, and add them for OR. For example, (B2:B9=”North”)*(C2:C9>250) keeps North orders over £250. However, never use AND() or OR() inside it.
Does the formula update when I change the data?
Yes. Indeed, the result stays live, so any change shows at once. That live link is the main reason to use a formula instead of a menu filter.
