We’re improving Formula Genius. We’re redesigning the app and fixing issues along the way. Sorry for any disruption, and thank you for your patience.
Excel intermediate

Excel FILTER Function: Dynamic Data Extraction

FILTER extracts rows that match your criteria and spills the results automatically. No helper columns, no manual filtering.

Formula Genius can generate a draft from a plain-English prompt. Supported formulas can be checked with sample cases; review the coverage on the result.

The formula

Prompt

"Show all orders over $1000 from the East region"

Excel
=FILTER(A2:D100, (C2:C100>1000) * (B2:B100="East"), "No matching orders")

FILTER returns rows from A2:D100 where column C (amount) is over 1000 AND column B (region) is East. The asterisk (*) acts as AND between conditions. The third argument provides a default value if no rows match.

Step-by-step breakdown

  1. FILTER(array, include, [if_empty]) takes the data range and criteria
  2. C2:C100>1000 creates a TRUE/FALSE array for the amount condition
  3. B2:B100="East" creates a TRUE/FALSE array for the region condition
  4. Multiplying (*) the arrays gives AND logic (both must be TRUE)
  5. "No matching orders" displays when zero rows match — prevents #CALC! error

Edge cases & warnings

  • Without the if_empty argument, FILTER returns #CALC! when no rows match
  • Results spill automatically — make sure there's enough empty space below
  • Use + instead of * for OR logic between conditions
  • Requires Excel 365 or Excel 2021+

Examples

Prompt

"Region: East, Amount: $1500"

Excel
Included in results
Prompt

"Region: West, Amount: $2000"

Excel
Excluded (wrong region)
Prompt

"No matches found"

Excel
"No matching orders"

Frequently asked questions

How do I filter with OR instead of AND?

Replace * with +. Example: =FILTER(data, (region="East")+(region="West")) returns rows where region is East OR West.

Can I sort the filtered results?

Yes. Wrap FILTER in SORT: =SORT(FILTER(data, criteria), column_number, 1) where 1 = ascending, -1 = descending.

Can't find what you need?

Describe a formula in plain English. Formula Genius drafts and explains it, and can check supported formulas on sample cases.