Maintenance Notification: We are upgrading our servers today so you may experience intermediate outages. Thank you for your patience.
Perform data analysis
MO-211

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.

Films (the video spills E2:G4)
ABC
1FilmScreenSeats
2Dune180
3Up245
4Heat1120
5Jaws360
6Alien290
7Babe330
One column, one condition
=FILTER(A2:A7, B2:B7=1)
Returns Dune, Heat (spilled down two cells)

The films on screen 1.

Two conditions, both true
=FILTER(A2:A7, (B2:B7=2)*(C2:C7>=40))
Returns Up, Alien

Multiplying the tests keeps only rows where both are true: screen 2 with at least 40 seats sold.

Either condition
=FILTER(A2:A7, (B2:B7=1)+(C2:C7<40))
Returns Dune, Heat, Babe

Adding the tests keeps rows where either is true: screen 1, or under 40 seats.

Nothing matches
=FILTER(A2:A7, B2:B7=4, "None")
Returns None

There is no screen 4. The third argument is what to show instead of an error.

Whole rows
=FILTER(A2:C7, C2:C7>=80)
Returns Dune 1 80, Heat 1 120, Alien 2 90, spilling into E2:G4

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

AND() inside FILTER

=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.

Something in the way

A spill needs empty cells. If anything sits in the range the result would fill, the formula shows #SPILL! until you clear it.

No match and no if_empty

=FILTER(A2:A7, B2:B7=4) returns #CALC!. If the task says what to show when nothing matches, that is the third argument.

A test of a different height

=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.com

Try 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.