AnalystPracticeGuides
DashboardSign up

The Excel FILTER function

FILTER returns every row that meets a condition, as a live result that updates when the data changes: =FILTER(array, include, [if_empty]). It is available in Microsoft 365 and Excel 2021 or later.

Watch it solved. Task 10: a list with two conditions (FILTER), from 7:05, in our video “Excel Interview Questions and Answers: 10 Practical Tasks, Solved”. Pressing play loads the video from YouTube (privacy). Open on YouTube

How do you write a basic FILTER?

Orders in A2:D50, regions in column B. All North orders:

=FILTER(A2:D50,B2:B50="North","No orders")

The result spills into as many rows as needed.

How do you combine conditions?

Multiply for AND, add for OR:

=FILTER(A2:D50,(B2:B50="North")*(D2:D50>1000))
=FILTER(A2:D50,(B2:B50="North")+(B2:B50="South"))

What does #SPILL! mean?

Something is in the way of the result: a cell below or to the right isn't empty. Clear those cells. Results can't spill inside an Excel table either, so put the formula outside it.

What does #CALC! mean?

Nothing matched and you left out the third argument. Add a text such as "No orders".

FILTER or the filter button?

The filter button hides rows in place, for looking at the data. FILTER builds a separate result that other formulas can use, such as a report that always shows this month's open orders.

Try it yourself. Practise this in a real spreadsheet in your browser, with instant feedback.
Practise FILTER Practise table filters

Updated November 2026.

← All free guides