formulastreak

FILTER #VALUE! error: what to check

Updated · Checked on a live sheet · Excel and Google Sheets

The most likely fix

Make the condition range cover exactly the same rows as the data: FILTER(A2:A9, B2:B9="North"), not B2:B8. Microsoft's FILTER page requires the include argument to be as tall (or as wide) as the array.

Fix it yourself

The formula in H2 shows the problem. Edit it to the fixed version and watch the sheet recalculate.

The condition covers B2:B8, one row shorter than the names in A2:A9 · edit H2 and watch it recalculate
Click a cell (or use the arrow keys) to insert its address · Enter shows the resultH2 = #VALUE!
ABCDEFGH
1RepRegionJulAugSepTargetNorth reps
2Amara OseiNorth$12,400$13,100$11,800$36,000#VALUE!
3Ben FischerSouth$9,800$10,250$12,100$30,000
4Lina ChenEast$15,200$14,800$16,900$45,000
5Diego AlvarezWest$8,700$9,100$8,400$28,000
6Eva NovakNorth$11,200$12,600$13,900$36,000
7Farid HaddadSouth$13,300$12,900$14,100$39,000
8Grace KimEast$10,100$9,600$10,800$33,000
9Hugo MartinWest$14,500$15,800$15,100$42,000

Shows the problem

=FILTER(A2:A9,B2:B8="North")

Fixed

=FILTER(A2:A9,B2:B9="North")

Causes, most likely first

  1. 1The condition range is a different size

    FILTER's include argument is a column of TRUE/FALSE, one per row of the array, so the two must line up. Microsoft's page states the requirement but not which error a mismatch produces, so we won't promise #VALUE!; formulastreak's engine shows #VALUE! in the sheet above. Start and end both ranges on the same rows.

    Wrong

    =FILTER(A2:A9,B2:B8="North")

    Fixed

    =FILTER(A2:A9,B2:B9="North")
  2. 2An error inside the condition

    Microsoft's FILTER page: if any value of the include argument is an error (#N/A, #VALUE! and so on), FILTER returns an error. A single broken cell in the condition column is enough. Fix that cell, or make the condition skip errors: ISNUMBER(SEARCH("North", B2:B9)) returns FALSE instead of an error.

  3. 3AND() or OR() inside FILTER

    AND and OR return one TRUE or FALSE for the whole range, not one per row, so FILTER gets a single value instead of a column. Multiply conditions for AND and add them for OR: (B2:B9="South")*(E2:E9>12000).

    Wrong

    =FILTER(A2:A9,AND(B2:B9="South",E2:E9>12000))

    Fixed

    =FILTER(A2:A9,(B2:B9="South")*(E2:E9>12000))
  4. 4It's not #VALUE! but #CALC!

    When the sizes are right but no row matches, Excel's FILTER shows #CALC! instead, because Excel can't return an empty array. Give it a third argument for that case: FILTER(A2:A9, B2:B9="Central", "None"). See the #CALC! error page.

  5. 5Text compared where numbers were expected

    A condition like E2:E9>12000 compares numbers. If the sales column was imported as text, every comparison is FALSE (or the condition errors), and FILTER returns nothing or an error. Check with ISNUMBER and convert the column with VALUE before filtering.

Stop it happening again

Build FILTER conditions from the same rows as the data every time: if the data is A2:A9, every condition range is something2:something9. When the data grows, extend all of them together, or point them at a whole Excel table so they grow automatically. Give every FILTER a third argument for the empty case unless an error is what you want to see. Clean the condition column of errors first, or test it with functions that return FALSE instead of an error. And for complex conditions, build the TRUE/FALSE column in a helper column first to check it, then move it into FILTER.

Questions

Why does FILTER work on one sheet but not another?

Usually the data on the second sheet is a different height, so the condition range no longer lines up, or a column holds text or errors where the first had clean numbers. Compare the first and last rows of every range in the formula.

Does FILTER exist in my Excel?

FILTER is in Excel 2021, Excel 2024, Microsoft 365 and Google Sheets, not in Excel 2019 or older. In older versions the formula shows #NAME?; the FILTER guide has a workaround that works everywhere.

In Google Sheets

In Google Sheets, FILTER takes the conditions as separate arguments, FILTER(range, condition1, [condition2]), and returns rows that meet all of them; it has no if_empty argument and returns #N/A when nothing matches. Its conditions must also be the same length as the range.

Why this happens

FILTER pairs each row of the data with one TRUE or FALSE from the condition, so anything that breaks that pairing breaks the result: a shorter range, a single value from AND, or an error in the middle. Once the shapes match, FILTER is the simplest way to pull matching rows. The FILTER guide has live examples of AND, OR and the fallback, and the course's FILTER lesson lets you practise them.

Sources

Official documentation the facts on this page were checked against.

Practise this in 5 minutes

FILTER is taught in Lesson 38: FILTER (Unit 11, Dynamic arrays), on a live sheet with instant feedback. Pro

Open “FILTER”

Get the formulastreak newsletter

Bite-sized formula tips you can use at work the next day, plus a heads-up when new free tools and lessons land. It arrives now and then, never in a flood.

No spam, unsubscribe in one click. We store your email, this consent and when you gave it. Details in our privacy policy.

Need a quick reference? The formula cheat sheet is free to read and print.