Back to functions
Lookup & Reference2026-03-187 related articles

FILTER Function in Excel

Return only the rows or columns in an array that meet criteria you define.

Syntax

FILTER(array, include, [if_empty])
Table of Contents

Arguments

array

Required

The range or array to filter.

include

Required

A TRUE/FALSE array that indicates which records to keep.

if_empty

Optional

The value to return if no records match the filter criteria.

What it returns

Returns a filtered array containing only the rows or columns that meet the criteria.

What FILTER does

FILTER returns only the records that meet one or more logical tests. It is one of Excel's dynamic array functions, so the results spill into neighboring cells automatically.

Practical examples

Filter rows for one region

=FILTER(A2:D20,C2:C20="West","No matches")
Excel

This returns only the rows from A2:D20 where the region in column C is West.

Filter rows with two conditions

=FILTER(A2:D20,(B2:B20="Open")*(D2:D20>=1000),"No matches")
Excel

Use * to combine conditions with AND logic. This example returns only open items with values of at least 1000.

Common mistakes and notes

The include array must align with the data

If array has 19 rows, the include argument must evaluate to 19 TRUE/FALSE results. Misaligned dimensions cause errors.

FILTER spills into adjacent cells

If cells below or beside the formula are not empty, Excel may return #SPILL!. Clear the spill area or move the formula.

Use * for AND and + for OR

When you combine conditions inside FILTER, multiplication acts like AND and addition acts like OR. That pattern is common in dynamic array formulas.

Related functions

Related articles

Deep dives, troubleshooting guides, and practical examples that use FILTER.

FormulasTroubleshooting
2026-10-30

Excel Formula Errors: Find the Cause Before Hiding It

Diagnose six common Excel formula errors, check inputs and references, and fix the cause before using IFERROR to show a fallback....

#formulas#troubleshooting#errors
12 min read
Read Article
FormulasIntermediate
2026-09-15

How to Count Unique Values in Excel

Count unique values in Excel, ignore blanks, count values that appear once, and add criteria. Includes modern formulas and an older Excel alternative....

#unique values#duplicates#data cleanup
8 min read
Read Article
FormulasBeginner
2026-06-08

Compare Two Columns in Excel

Learn how to compare two columns in Excel for matches, differences, duplicates, missing values, and case-sensitive text....

#formulas#data cleanup#lookup
7 min read
Read Article
FormulasIntermediate
2025-08-28

How to Use XLOOKUP with Wildcards for Partial Matches

Use XLOOKUP wildcards for starts-with, contains, and ends-with SKU matches. Return the first or last match, or use FILTER to show every matching row....

#xlookup#wildcards#text-cleanup
7 min read
Read Article
FormulasIntermediate
2025-05-15

How to Use XLOOKUP with Multiple Criteria in Excel

Learn how to use XLOOKUP with multiple criteria in Excel by combining Boolean logic or concatenation for cleaner, more flexible lookups....

#criteria#lookup#formulas
5 min read
Read Article
General Updates
2019-03-29

Sort Your Life into Neat Little Boxes with These Excel Basics

Jobs nowadays require basic knowledge of Excel. Spark your skills with these excel basics we have on this article that will surely speed up your workflow....

28 min read
Read Article
FormulasIntermediate
2011-05-25

A Dynamic Dependent Drop Down List in Excel

Create dependent Excel dropdowns from an expanding Table, with separate lists for each input row and a legacy method for older versions....

#excel-legacy#excel-for-mac#names
11 min read
Read Article

Official documentation