Formula Fixer

FILTER Function in Excel and Google Sheets: Multiple Conditions, Errors and Examples

Updated 2026-11-03

Lookups like XLOOKUP and VLOOKUP return one match. Very often you want all of them: every order from one region, every task assigned to one person, every transaction in November. That is what FILTER does. You write it once in a single cell, and the results spill into the rows below, updating automatically when the data changes.

Who has FILTER?

The basic syntax

Excel:          =FILTER(array, include, [if_empty])
Google Sheets:  =FILTER(range, condition1, [condition2, ...])

array / range is the data you want back, for example A2:D100. include / condition is a test that is TRUE for the rows to keep, the same height as the data, for example B2:B100="North". In Excel, the optional if_empty is what to show when nothing matches.

Imagine an orders table with Date in column A, Region in B, Product in C and Amount in D. To list every North order, type this in an empty cell with enough space below and to the right:

=FILTER(A2:D100,B2:B100="North")

Common recipes

GoalExcel (Microsoft 365, Excel 2021 or later)Google Sheets
One condition=FILTER(A2:D100,B2:B100="North")=FILTER(A2:D100,B2:B100="North")
Two conditions (AND)=FILTER(A2:D100,(B2:B100="North")*(D2:D100>500))=FILTER(A2:D100,B2:B100="North",D2:D100>500)
Either condition (OR)=FILTER(A2:D100,(B2:B100="North")+(B2:B100="South"))=FILTER(A2:D100,(B2:B100="North")+(B2:B100="South"))
Message when nothing matches=FILTER(A2:D100,B2:B100=G1,"No results")=IFNA(FILTER(A2:D100,B2:B100=G1),"No results")
Text contains a word=FILTER(A2:D100,ISNUMBER(SEARCH("lamp",C2:C100)))Same formula works
Dates in a month=FILTER(A2:D100,(A2:A100>=DATE(2026,11,1))*(A2:A100<=DATE(2026,11,30)))Same formula works

The key difference: in Excel, multiple conditions go inside one argument, joined with * for AND and + for OR. Google Sheets also accepts that style, and additionally lets you list AND conditions as separate arguments.

Use a cell instead of typing the value

Put the region you want in G1 and refer to it, so anyone can change the filter without touching the formula:

=FILTER(A2:D100,B2:B100=G1,"No results")

Add a drop-down to G1 (Data Validation in Excel, Insert > Drop-down in Google Sheets) and you have a simple interactive report. Our drop-down list guide shows how to fill it from a list that grows automatically.

Return only some columns

To get just Product and Amount, filter those columns only:

=FILTER(C2:D100,B2:B100=G1)

If the columns you want are not next to each other, Excel 365 can wrap them with CHOOSECOLS: =CHOOSECOLS(FILTER(A2:D100,B2:B100=G1),3,1) returns Product, then Date.

Sort and de-duplicate the results

Sorted by Amount, largest first:  =SORT(FILTER(A2:D100,B2:B100=G1),4,-1)
Unique products in that region:   =UNIQUE(FILTER(C2:C100,B2:B100=G1))
Total of the filtered amounts:    =SUM(FILTER(D2:D100,B2:B100=G1))

For a single total, SUMIFS is simpler and works in older Excel too, but FILTER is handy when the condition is complicated.

Fixing FILTER errors

Tips

← More guides