Sample Data
This table shows names and ages of four people.
| Cell | Value |
|---|---|
| A1 | Name |
| B1 | Age |
| A2 | Alice |
| B2 | 30 |
| A3 | Bob |
| B3 | 25 |
| A4 | Charlie |
| B4 | 35 |
| A5 | Diana |
| B5 | 28 |
This table shows names and ages of four people.
| Cell | Value |
|---|---|
| A1 | Name |
| B1 | Age |
| A2 | Alice |
| B2 | 30 |
| A3 | Bob |
| B3 | 25 |
| A4 | Charlie |
| B4 | 35 |
| A5 | Diana |
| B5 | 28 |
=FILTER(A2:A5, B2:B5>28)A B 1 |Name | Age | 2 |Alice | 30 | 3 |Bob | 25 | 4 |Charlie| 35 | 5 |Diana | 28 | Formula references A2:A5 and B2:B5 for filtering.
C 1 |Filtered Names| 2 |Alice | 3 |Charlie |
FILTER function do in Google Sheets?A1: Name B1: Score A2: Amy B2: 85 A3: Bob B3: 90 A4: Cara B4: 75 A5: Dan B5: 95
=FILTER(A2:A5, B2:B5 > 80) return?=FILTER(A2:A5, B2:B5 > 80, C2:C5 = "Yes")Product (A2:A10), Region (B2:B10), and Sales (C2:C10).=FILTER(A2:A10, B2:B10 = "East", C2:C10 > 1000) [OK]Pass the test and this pattern moves unknown