Category: FUNCTION | Updated: 2026-11-20

How to Use the FILTER Function in Google Sheets | Extract Multiple Matching Rows at Once

How to Use the FILTER Function

The FILTER function extracts only the data that matches specified conditions and automatically spills (expands) all matching rows (or columns). Without modifying the source data, you can build live filtered lists in another area or sheet.

Syntax

=FILTER(range, condition1, [condition2, ...])
  • range: The source cell range to filter and display (required).
  • condition1: A TRUE/FALSE conditional expression with the same number of rows (or columns) as range (required).
  • condition2, …: Additional conditional expressions separated by commas. Specifying multiple conditions creates an AND condition where all must be met (optional).

Table Example

Here is an example of automatically extracting rows from the "Project List" in Columns A–C where Status is "In Progress" and Amount is 100,000 or more, starting at cell E2.

Row Column A (Project Name) Column B (Status) Column C (Amount) Column D Column E (Extracted: Project Name) Column F (Status) Column G (Amount)
1 Project Name Status Amount Project Name Status Amount
2 Website Redesign In Progress 300,000 =FILTER(A2:C5, B2:B5="In Progress", C2:C5>=100000) (Auto-spilled) (Auto-spilled)
3 Banner Creation Completed 50,000 SEO Article Writing In Progress 150,000
4 SEO Article Writing In Progress 150,000
5 Logo Revision In Progress 30,000
  • Formula in cell E2: =FILTER(A2:C5, B2:B5="In Progress", C2:C5>=100000)
  • Result: Two rows (Website Redesign and SEO Article Writing) automatically spill into E2:G3.

Common Errors and Notes

  • No matching data (#N/A error): If no rows meet the criteria, FILTER returns #N/A (no matches found). Wrap it in IFERROR—such as =IFERROR(FILTER(...), "No matching data")—to display a friendly fallback.
  • Row count mismatch between range and condition (#VALUE! error): If range is A2:C5 (4 rows) while condition is B2:B10="In Progress" (9 rows), an error occurs. Always match the start and end rows.
  • Existing data in spill destination (#REF! error): If any cell in the spill area already contains text or a formula, FILTER cannot overwrite it and returns #REF!. Leave enough empty space for the output.

Frequently Asked Questions

Q. How do I specify multiple "AND" conditions in the FILTER function?

A. Simply separate multiple condition expressions with commas (,), such as =FILTER(A2:C10, B2:B10="Tokyo", C2:C10>=100), and they are automatically evaluated as AND conditions.

Q. How do I specify multiple "OR" conditions in the FILTER function?

A. Wrap each condition in parentheses and connect them with "+" (plus), such as =FILTER(A2:C10, (B2:B10="Tokyo")+(B2:B10="Osaka")), to extract rows matching either condition.