Filter data by using FILTER()
=FILTER(A2:C7, C2:C7>=80)Spill every film whose seats sold are at least 80, all three columns, from one formula in one cell. The second argument is a test on a column the same height as the data.
What the MO-211 task asks
A FILTER task in our MO-211 practice exams asks for one formula that brings back matching rows: “in F4, one formula must spill every show starting at or after 18:00 onto the Late Board — all four columns of A4:D11, selected on the Start column.”
“One formula must spill” is the key phrase. Our grader checks that the cell holds a dynamic-array formula and that the spilled values are right, so copying the rows by hand, or using the AutoFilter, scores nothing even when it looks identical.
The include argument is a comparison on one column of the data. To combine conditions, multiply the tests for AND and add them for OR; the AND() and OR() functions do not work here.
Worked examples
Type these into a blank sheet to follow along. Every result below is what Excel showed.
| A | B | C | |
|---|---|---|---|
| 1 | Film | Screen | Seats |
| 2 | Dune | 1 | 80 |
| 3 | Up | 2 | 45 |
| 4 | Heat | 1 | 120 |
| 5 | Jaws | 3 | 60 |
| 6 | Alien | 2 | 90 |
| 7 | Babe | 3 | 30 |
=FILTER(A2:A7, B2:B7=1)The films on screen 1.
=FILTER(A2:A7, (B2:B7=2)*(C2:C7>=40))Multiplying the tests keeps only rows where both are true: screen 2 with at least 40 seats sold.
=FILTER(A2:A7, (B2:B7=1)+(C2:C7<40))Adding the tests keeps rows where either is true: screen 1, or under 40 seats.
=FILTER(A2:A7, B2:B7=4, "None")There is no screen 4. The third argument is what to show instead of an error.
=FILTER(A2:C7, C2:C7>=80)Return all three columns by giving FILTER all three. This is what the video below builds, in E2.
Watch it done in Excel
The last example above, recorded in real Excel on the same grid.
Exam traps
=FILTER(A2:A7, AND(B2:B7=2, C2:C7>=40)) returns #CALC!: AND squeezes the whole column into a single TRUE or FALSE instead of one per row. Multiply the tests instead.
A spill needs empty cells. If anything sits in the range the result would fill, the formula shows #SPILL! until you clear it.
=FILTER(A2:A7, B2:B7=4) returns #CALC!. If the task says what to show when nothing matches, that is the third argument.
=FILTER(A2:A7, B2:B6=1) returns #VALUE!: the include range must be exactly as tall as the data.
FAQ
Does FILTER update when the data changes?
Yes. Change Up's seats to 85 and it joins the spill straight away; that is the difference from copying rows.
Can I sort the filtered rows?
Yes, by wrapping FILTER in SORTBY, which is on MO-211 too: =SORTBY(FILTER(A2:C7, C2:C7>=80), FILTER(C2:C7, C2:C7>=80), -1) spills Heat, Alien, Dune.
How do I refer to the whole spill?
Put # after its first cell: E2# means everything the formula in E2 spilled.
New to this function?
This page covers what the exam asks. For the full how-to — every argument, more examples and a practice workbook — read our guide on dfwexcel.com.
The FILTER function, explained — dfwexcel.comTry it under exam conditions
Take a full, timed MO-211 practice exam, upload the workbook you built, and get a score out of 1000 with a per-task breakdown of where the points went. Your first one is free.
No credit card needed.
