FILTER Function in Excel: Return Every Row That Matches

FILTER Function in Excel: Return Every Row That Matches featured illustration

πŸ“Ž This article includes 1 downloadable practice file ↓

⏱ 2 min readUpdated 5 October 2026

Dynamic ArrayLevel: ExpertAvailable in: Excel 365 / 2021+

In this article
  1. Syntax
  2. Examples
  3. Example 1
  4. Example 2
  5. Example 3
  6. Power combo
  7. Common errors and fixes
  8. FILTER in practice
  9. Where you will use it
  10. Worked example
  11. Mistakes people make
  12. Related functions
  13. Continue learning

FILTER returns all rows (or columns) that meet a condition, and the result updates live as data changes.

Advertisement

Syntax

=FILTER(array, include, [if_empty])
Argument What it means
array The data to filter.
include TRUE/FALSE test with the same height, e.g. B2:B500=”North”.
if_empty What to show when nothing matches.

Examples

Example 1

=FILTER(A2:E500, B2:B500="North", "None")

All North rows.

Example 2

=FILTER(A2:E500, (B2:B500="North")*(E2:E500>50000))

AND: multiply conditions.

Example 3

=FILTER(A2:E500, (B2:B500="North")+(B2:B500="East"))

OR: add conditions.

Power combo

=SORT(FILTER(A2:E500, E2:E500>50000), 5, -1)

Live β€œbig deals” report sorted by amount.

Common errors and fixes

You see Why, and the fix
#SPILL! Something is in the way of the results β€” clear the cells below/right.
#CALC! Nothing matched and if_empty is missing.

FILTER in practice

Where you will use it

  • All orders of one customer
  • Overdue invoices only
  • Live lists that update as data changes

Worked example

Customers in the region, joined into one cell.

RegionFormulaResult
North=IFERROR(TEXTJOIN(", ",,FILTER({"Patel";"Shah";"Mehta";"Iyer"},{"North";"South";"North";"South"}=A2)),"none")Patel, Mehta
South=IFERROR(TEXTJOIN(", ",,FILTER({"Patel";"Shah";"Mehta";"Iyer"},{"North";"South";"North";"South"}=A3)),"none")Shah, Iyer
East=IFERROR(TEXTJOIN(", ",,FILTER({"Patel";"Shah";"Mehta";"Iyer"},{"North";"South";"North";"South"}=A4)),"none")none

Results calculated in Excel.

Mistakes people make

MistakeWhat to do instead
No matches#CALC!; use the if_empty argument
Spill blockedClear cells below the formula

SORT Β· UNIQUE Β· XLOOKUP Β· TEXTJOIN

πŸ“š Part of the free Excel course: Beginner β†’ Expert Β· Try it in the Formula Lab or ask the AI Helper.

⚑ Interactive Practice Lab & Formula Tester:

Test formulas dynamically in our web formula laboratory or download the companion Excel workbook.

πŸ“Ž Practice files for this article

  • πŸ“—
    Practice workbook: Dynamic arrays18 tasks on realistic sales data β€” type your formula, the Check column turns green when it is right. Answers sheet included.
    ⬇ XLSX Β· 35 KB

Free to use for learning. Files with macros (.bas) are plain text β€” import them with Alt+F11 β†’ File β†’ Import File, and always test on a copy.

✨ Ask AI about this article

Stuck on a step? Ask a question and the AI answers using this article.

Free Β· AI can be wrong

Leave a Reply

Your email address will not be published. Required fields are marked *