AI · 2 min read

FILTER

FILTER function in Excel: Filters data by criteria.

Excel functions / Lookup & Reference
Lookup & Reference function · Excel

FILTER function

FILTER returns only the rows that meet your condition. The result spills into the cells below and updates when the data changes.

Syntax

=FILTER(array, include, [if_empty])
Switch to the Google Sheets page

Arguments

ArgumentRequiredMeaning
arrayYesThe data to return.
includeYesA TRUE or FALSE test with the same height as the data.
if_emptyNoExcel only. The result when nothing matches.

Worked example

ABC
1RegionMonthSales
2EastJan1200
3WestJan950
4EastFeb1400
5WestFeb800
6EastFeb300
=FILTER(C2:C6,A2:A6="East")
Result: 1200, 1400, 300

Three rows have East in column A, so their sales spill into three cells.

Try it

Edit the formula and run it against the table above. Results come from a browser spreadsheet engine.

Availability

PlatformStatus
ExcelMicrosoft 365, Excel 2024, Excel 2021, Excel for the web.
Google SheetsAvailable. Extra conditions are separate arguments.

Common mistakes

  • Occupied cells below the formula cause #SPILL! in Excel and a #REF! error in Sheets.
  • In Excel, join conditions with * for AND and + for OR.

Do it with AI

Paste this prompt into Copilot, Gemini or another assistant. Check the result on a small sample first.

Write a FILTER that returns all columns from A2:C100 where region is East and sales are above 1000. Give the Excel and Google Sheets versions.