Most Excel Users Don't Understand FILTER: How Multiple Conditions Really Work

Oct 15, 2026 • 6 min read

The Excel FILTER function feels easy when there is one condition. Add two or three conditions, mix multiplication with addition, and suddenly there are brackets everywhere.

Why does multiplication mean AND? Why does addition mean OR? And why does a formula stop working just because a pair of brackets is missing?

Personally, I think it’s understandable that people struggle with this syntax. Compared with SUMIFS, where we repeat a criteria range and a criterion, FILTER can look unnecessarily complicated.

But there is a much simpler way to think about it: FILTER needs one set of inclusion values, not a collection of separate criteria. Once we understand how those values are calculated, the symbols and brackets start to make sense.

What You'll Learn

  • FILTER uses one inclusion array to decide which source rows to retain.
  • Multiplication creates AND logic, while addition creates OR logic through nonzero results.
  • Brackets control calculation order and determine how mixed AND and OR requirements are grouped.

Start with a simple FILTER formula

Our example data occupies B6:F21, with these five columns:

  • Column B: Item
  • Column C: Size
  • Column D: Region
  • Column E: Units
  • Column F: Value

To return every row where the item is Alpha, we can use:

=FILTER(B6:F21,B6:B21="Alpha")

The first argument, B6:F21, is the range we want to return rows from. The second argument, B6:B21="Alpha", determines which rows to include.

So far, so good.

Now suppose we want the item to be Alpha and the size to be Small. The formula becomes:

=FILTER(B6:F21,(B6:B21="Alpha")*(C6:C21="Small"))

We have introduced multiplication and wrapped each comparison in brackets.

To return rows where the item is Alpha and the size is Small, or where the region is North, we add another comparison:

=FILTER(B6:F21,(B6:B21="Alpha")*(C6:C21="Small")+(D6:D21="North"))

This is usually where FILTER starts to look difficult. Rather than memorizing that multiplication means AND and addition means OR, we need to look at what the include argument actually receives.

The include argument is the key to FILTER

FILTER has three arguments:

=FILTER(array,include,[if_empty])
  • array: The data to return values from.
  • include: The values that determine which rows or columns to retain.
  • if_empty: An optional result to return when nothing matches.

We are filtering rows in these examples, so the inclusion values need to line up with the rows in our source data. Microsoft’s FILTER function reference provides the full argument details.

Here is a useful experiment. Enter the logical value TRUE in every cell from H6:H21, then use:

=FILTER(B6:F21,H6:H21)

There is no comparison inside FILTER. We are simply giving it a column of TRUE values.

The result includes every row.

Now change H6 to FALSE. The first row disappears from the result, while the remaining rows stay.

Excel worksheet with a FALSE inclusion value and a callout marking the excluded first data row
Changing one inclusion value to FALSE removes the corresponding row.

That is the essential mechanism. FILTER matches each inclusion value to its corresponding source row:

  • TRUE: Retain the row.
  • FALSE: Exclude the row.

For this example, the source contains 16 rows, so our inclusion column also contains 16 rows.

FILTER does not need to know why a row should be included. It only needs the final inclusion value. The comparisons, multiplication, addition, and brackets are how we calculate that value.

A comparison creates an array of TRUE and FALSE values

Clear the manually entered inclusion values, then enter this formula in H6:

=B6:B21="Alpha"

Excel checks each item against Alpha and spills the results into the cells below. Each matching row produces TRUE; each nonmatching row produces FALSE.

We can now refer to that spilled result from FILTER:

=FILTER(B6:F21,H6#)

The hash symbol in H6# refers to the entire spill range beginning at H6.

This returns exactly the same rows as placing the comparison directly inside FILTER:

=FILTER(B6:F21,B6:B21="Alpha")

These are not two different filtering methods. In both cases, FILTER receives the same array of TRUE and FALSE values. The only difference is where we calculate it.

Why multiplication creates AND logic

Now enter the second comparison in I6:

=C6:C21="Small"

We now have two spilled arrays:

  • H6# identifies rows where Item equals Alpha.
  • I6# identifies rows where Size equals Small.

In J6, multiply them together:

=H6#*I6#

Instead of TRUE and FALSE, the result contains ones and zeros. That is because arithmetic treats TRUE as 1 and FALSE as 0.

  • TRUE * TRUE becomes 1 * 1, which equals 1.
  • TRUE * FALSE becomes 1 * 0, which equals 0.
  • FALSE * TRUE becomes 0 * 1, which equals 0.
  • FALSE * FALSE becomes 0 * 0, which equals 0.

Only rows where both comparisons are TRUE produce 1. That is why multiplication gives us AND logic.

Excel worksheet showing two TRUE and FALSE calculation columns alongside a column of ones and zeros
Multiplying the comparison arrays produces 1 only where both conditions are true.

We can pass that result to FILTER:

=FILTER(B6:F21,J6#)

The result contains rows where Item equals Alpha and Size equals Small.

There is no special AND instruction being passed to FILTER. We have simply calculated an inclusion array containing 1 for the rows we want and 0 for those we do not.

Why each comparison needs brackets

Once the separate calculations work, we can combine them:

=(B6:B21="Alpha")*(C6:C21="Small")

But why do we need the brackets? Why not write this?

=B6:B21="Alpha"*C6:C21="Small"

The problem is Excel’s order of calculation. Multiplication happens before equality comparisons.

Without brackets, Excel tries to multiply "Alpha" by C6:C21 before completing the comparisons. That is not the calculation we intended, and this example produces a #VALUE! error.

The brackets force Excel to complete each comparison first:

  1. Calculate whether each item equals Alpha.
  2. Calculate whether each size equals Small.
  3. Multiply the resulting TRUE and FALSE arrays together.

So the brackets are not a mysterious requirement of FILTER. They control the order of calculation in the expression we give it.

Why addition creates OR logic

Our next requirement is to include rows where Item is Alpha and Size is Small, or where Region is North.

The region comparison is:

=D6:D21="North"

Again, this creates an array of TRUE and FALSE values. We add that array to the result of our existing AND calculation:

=(B6:B21="Alpha")*(C6:C21="Small")+(D6:D21="North")

For each row, the combined result can be:

  • 0: Neither the Alpha-and-Small requirement nor the North requirement is met.
  • 1: One of those requirements is met.
  • 2: Both requirements are met.

That last result matters. We do not get only ones and zeros when we use addition.

Fortunately, FILTER treats any nonzero number as TRUE. A result of 2 includes the row just as a result of 1 does. Zero excludes it.

That is why addition creates OR logic: either side can contribute a nonzero value, and either is enough to retain the row.

Put the calculations back inside FILTER

Once we have tested the inclusion calculation separately, we can place the whole expression inside FILTER:

=FILTER(B6:F21,(B6:B21="Alpha")*(C6:C21="Small")+(D6:D21="North"))

Read this as two separate jobs:

  1. The include expression calculates a value for every source row.
  2. FILTER returns the rows whose inclusion values are TRUE or nonzero.

If the formula feels difficult to follow, select just the inclusion expression while editing the formula and press F9. Excel displays its calculated array, revealing the twos, ones, and zeros that FILTER receives.

Excel formula displaying an evaluated inclusion array of twos, ones, and zeros inside FILTER
Evaluating the inclusion expression exposes the numbers FILTER uses to retain or exclude rows.

The apparent complexity is all in building that array. FILTER itself is still doing the same simple job as it did with our manually entered TRUE and FALSE values.

Extra brackets change how AND and OR are grouped

There is one final point about brackets. They do more than separate comparisons from arithmetic. They also let us control how AND and OR requirements fit together.

In our current formula, multiplication happens before addition:

=FILTER(B6:F21,(B6:B21="Alpha")*(C6:C21="Small")+(D6:D21="North"))

This means:

Include rows where Item is Alpha AND Size is Small, OR where Region is North.

A North row qualifies regardless of its item or size.

Now suppose we want a different rule:

Include rows where Item is Alpha AND either Size is Small OR Region is North.

We need the OR calculation to happen first, so we add brackets around the addition:

=FILTER(B6:F21,(B6:B21="Alpha")*((C6:C21="Small")+(D6:D21="North")))

Now Excel:

  1. Adds the Size-is-Small and Region-is-North results.
  2. Multiplies that result by the Item-is-Alpha result.
  3. Passes the final inclusion array to FILTER.

If the item is not Alpha, the multiplication produces zero, even when the region is North. So this formula returns a different set of rows.

The same comparisons and operators can express different requirements depending on how we group them. Before changing brackets, write the intended rule in plain English. Then make the calculation match that rule.

FILTER is simple once we separate the logic

It is tempting to think of FILTER as a function with increasingly complicated criteria. But the more useful approach is to separate filtering from calculation.

First, calculate which rows qualify. Then give those results to FILTER.

Multiplication works for AND because both comparisons must contribute 1. Addition works for OR because any nonzero result is enough. Brackets ensure those calculations happen in the intended order.

Once that clicks, multiple-condition FILTER formulas stop being a collection of symbols to memorize. They become TRUE and FALSE calculations we can build, inspect, and understand.

My free Modern Excel Reporting with FILTER course takes these concepts further and shows how to apply them to modern reporting scenarios.

Share

Excel Off The Grid

I help you reduce repetitive Excel work with practical guides to formulas, Power Query, reporting, and automation.

© 2026 Excel Off The Grid
Powered by Convella