Google Sheets FILTER function

Returns only the rows that meet the conditions and spills them downward. It has the same name in Spanish Sheets.

Syntax

English Sheets

=FILTER(range, condition1, [condition2], …)

Spanish Sheets (Mexico locale)

=FILTER(intervalo, condición1, [condición2], …)

Spanish Sheets (Spain, Latin America)

=FILTER(intervalo; condición1; [condición2]; …)

ArgumentWhat it is
rangeThe data to filter, without headers.
condition1A column of conditions the same height, like B2:B11="CDMX".
condition2optionalMore conditions; all must hold.

Example

FILTER(range, condition) returns only the rows that meet the condition and spills them downward. The condition compares a whole column, like B2:B11="CDMX". When the data changes, the result updates.

=FILTER(A2:D11,B2:B11="Monterrey")

Common mistake

If nothing matches it returns #N/A; wrap it in IFERROR. For "either one", add the conditions: (A2:A10="X")+(A2:A10="Y").

About Ads

This site uses Google AdSense to display ads. These ads help us keep WebHerramientas completely free. Ads are managed by Google and meet strict security and privacy standards.

Advertising
Loading ad...

Ads help us keep WebHerramientas free for everyone

Practice FILTER

Type the formula in the sheet and check it instantly. Spanish or English function names both work. See all lessons

FILTER

FILTER(range, condition) returns only the rows that meet the condition and spills them downward. The condition compares a whole column, like B2:B11="CDMX". When the data changes, the result updates.

Example=FILTER(A2:D11,B2:B11="CDMX")FILTER: same name in Spanish

In F2, show the full rows of the orders from Monterrey.

F2
ABCDEFGHIJ
1OrderCitySellerAmountOrders from Monterrey
2P-101MonterreyCarmen1200
3P-102GuadalajaraJorge850
4P-103CDMXCarmen2300
5P-104MonterreyLucía640
6P-105CDMXJorge1750
7P-106GuadalajaraLucía980
8P-107MonterreyJorge1500
9P-108CDMXLucía410
10P-109GuadalajaraCarmen1320
11P-110MonterreyCarmen760
12

The dotted outline shows how far the result should spill.

Frequently asked questions

What is FILTER called in Spanish?
It has the same name: FILTER. Functions that started in Google Sheets keep their English name even in a Spanish spreadsheet. What changes is the separator: Spain and much of Latin America separate arguments with semicolons.
Why does FILTER use semicolons in some spreadsheets?
It depends on each spreadsheet's locale, under File > Settings. Where the comma is the decimal mark (Spain, much of South America), arguments are separated by semicolons. Mexico and United States locales use commas.
What is the most common FILTER mistake?
If nothing matches it returns #N/A; wrap it in IFERROR. For "either one", add the conditions: (A2:A10="X")+(A2:A10="Y").