
The FILTER function in Google Sheets returns only the rows that meet a rule, and it updates when your data changes. This guide shows FILTER with one condition, with several conditions, with OR logic and with text rules, using made-up data. It also covers the "no matches" error and how to fix it.
FILTER syntax
FILTER takes the range to return and one or more conditions:
=FILTER(A2:D100, D2:D100 > 100)
Each condition must cover the same number of rows as the range. This example returns every row in A2:D100 where the amount in column D is over 100. The results spill into the cells below and to the right, so those cells must be empty.

FILTER with a text condition
If column C holds the status, use an equals sign and quotes:
=FILTER(A2:D100, C2:C100 = "Open")
The match ignores upper and lower case, so "open" and "Open" both match.

FILTER with multiple conditions (AND)
Add another condition after a comma. Every condition must be true:
=FILTER(A2:D100, C2:C100 = "Open", D2:D100 > 100)
This returns open orders over 100.

FILTER with OR logic
For OR, add the conditions with a plus sign inside one condition:
=FILTER(A2:D100, (C2:C100 = "Open") + (C2:C100 = "Pending"))
A row passes when either part is true.
FILTER with partial text
To keep rows where column B contains the word north, use REGEXMATCH:
=FILTER(A2:D100, REGEXMATCH(B2:B100, "north"))
REGEXMATCH is case sensitive, so lower the case of the text first if needed, for example with LOWER.
Sort the filtered result
Wrap FILTER in SORT to order the output:
=SORT(FILTER(A2:D100, D2:D100 > 100), 4, FALSE)
The 4 is the column number inside the result, and FALSE means largest first.

Fix the "no matches" error
If no row passes, FILTER shows an error. Wrap it in IFERROR to show a message:
=IFERROR(FILTER(A2:D100, D2:D100 > 100), "No rows found")
Common FILTER mistakes
- Ranges of different sizes. The condition range must match the data range in rows.
- Results blocked. Clear cells below and to the right of the formula.
- Text without quotes. Write "Open" in quotes.
- Header row inside the range. Start the ranges below the header.
FILTER function in Google Sheets: common questions
What is the difference between FILTER and QUERY?
FILTER is simpler for keeping rows. QUERY can also sort, group and total. See our QUERY function guide.
Does FILTER work in Excel?
Newer versions of Excel have a FILTER function too. Check your version's help page.
Can FILTER read another spreadsheet?
Yes, with IMPORTRANGE. Read about IMPORTRANGE with conditions.
Related guides on Sheets AI Hub
See SUMIF with multiple criteria and conditional formatting.
