Filtering rows with FILTER
1 / 4
Show only the orders with sales of at least F1, 470, as a list that updates by itself.
keyboard Typing formulas is easiest on a computer with a keyboard.
A1
| A | B | C | D | E | F | G | H | |
|---|---|---|---|---|---|---|---|---|
| 1 | Rep | Region | Sales | Sales at least | 470 | |||
| 2 | Tariq | West | 470 | |||||
| 3 | Nadia | West | 450 | |||||
| 4 | Daniel | West | 420 | |||||
| 5 | Quinn | North | 340 | |||||
| 6 | Jamal | North | 600 | |||||
| 7 | Isla | West | 780 | |||||
| 8 | Kofi | South | 390 | |||||
| 9 | Yusuf | West | 390 | |||||
| 10 | Sam | East | 290 | |||||
| 11 | Rosa | West | 540 | |||||
| 12 | Chloe | East | 430 | |||||
| 13 | Elif | North | 250 | |||||
| 14 | ||||||||
| 15 | ||||||||
| 16 | ||||||||
| 17 |
orders
filtered list
Type to enter a value or a formula starting with =. F2 edits, F4 adds $ to a reference.
How FILTER works
What does
FILTERdo?It returns the rows of a table that meet a condition, as a live copy that spills into the cells below:
=FILTER(A2:C13,B2:B13="North") What are its parts?
array: the rows to return, usually the whole table without its headers.include: a test for each row, such asB2:B13="North"orC2:C13>=500. It must be as tall as the array.[if_empty]: what to show when no row passes. Without it you get #CALC!.
Why put the condition in a cell?
=FILTER(A2:C13,B2:B13=F1)lets anyone changeF1and watch the list update. That's a simple report or dashboard with no clicking.How do I use two conditions?
Multiply the tests for
AND, add them forOR:(B2:B13="North")*(C2:C13>=500): North and at least 500.(B2:B13="North")+(B2:B13="South"): North or South.
How is it different from the filter button?
The filter button hides rows in the original table.
FILTERleaves the table alone and builds a second copy that updates by itself.
Know someone fighting with a spreadsheet? Send them this page.