Excel FILTER function

Returns only the rows that meet a condition; the result spills and updates by itself. In Spanish Excel it is called FILTRAR.

Syntax

English Excel

=FILTER(array, include, [if_empty])

Spanish Excel (Mexico)

=FILTRAR(matriz, incluir, [si_está_vacío])

Spanish Excel (Spain, Latin America)

=FILTRAR(matriz; incluir; [si_está_vacío])

ArgumentWhat it is
arrayThe range to filter.
includeThe per-row condition, such as B2:B100="North".
if_emptyoptionalWhat to show when nothing matches.

Example

FILTER(range, condition) returns only the rows that meet the condition. The condition compares a whole column with a value, like B2:B11=F1, and is checked row by row.

=FILTER(A2:C11,B2:B11=F1)

Common mistake

For several conditions do not use AND: multiply them, (B2:B100="North")*(C2:C100>5000). With no matches and no third argument it returns #CALC!.

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. The condition compares a whole column with a value, like B2:B11=F1, and is checked row by row.

Example=FILTER(A2:C11,B2:B11=F1)FILTRAR = FILTER

In E3, show the sales (all three columns) for the region in F1.

E3
ABCDEFGH
1SalespersonRegionAmountRegionNorth
2CarmenNorth18,500
3JorgeSouth4,200
4LucíaNorth3,900
5AndrésCentral21,000
6PaolaSouth17,800
7RicardoNorth6,400
8ElenaCentral5,900
9MateoNorth19,900
10SofíaWest800
11DiegoCentral4,600
12

Tip: while typing, click a cell or drag across several to insert their reference.

Frequently asked questions

What is FILTER called in Spanish?
In Spanish Excel it is FILTRAR. The formula =FILTER(A2:C11,B2:B11=F1) is written =FILTRAR(A2:C11;B2:B11=F1) (or with commas in Mexico).
Why does FILTER use semicolons in some Excel versions?
It depends on regional settings. Where the comma is the decimal mark (Spain, much of South America), Excel separates arguments with semicolons. English Excel and Mexican Spanish Excel use commas.
What is the most common FILTER mistake?
For several conditions do not use AND: multiply them, (B2:B100="North")*(C2:C100>5000). With no matches and no third argument it returns #CALC!.