If Excel's FILTER function returns a #CALC!, #VALUE!, #SPILL!, or #NAME? error, or simply shows the wrong rows, the cause is almost always one of five things: the formula is not entered as a dynamic array (older Excel versions), the return range is a different size than the include range, the include argument is not a true/false test, the spill range is blocked by existing data, or the workbook is in a compatibility mode that does not support dynamic arrays. Work through the checks below in order — most people fix it at step 2 or step 4.
What You'll Need
- Excel for Microsoft 365, Excel 2021, or Excel for the web (FILTER is not available in Excel 2019 or earlier).
- A data range with a single header row and no merged cells.
- An empty area of at least as many rows and columns as your expected result, so the formula can spill.
- Your data saved in .xlsx or .xlsm format — not .xls.
Step-by-Step
- Confirm your Excel version supports FILTER. Type
=FILTER(in an empty cell. If Excel does not show the function in the autocomplete list, your version does not have it. FILTER is a dynamic array function available in Microsoft 365, Excel 2021, and Excel for the web. Excel 2019 and earlier will always return #NAME?. There is no workaround that makes FILTER work in those versions — use AutoFilter, Advanced Filter, or a helper column with IF instead. - Check that the workbook is not in Compatibility Mode. Look at the title bar. If it says "[Compatibility Mode]", save a copy via File > Save As and choose Excel Workbook (*.xlsx). Compatibility Mode disables dynamic arrays, so FILTER may return #NAME? or behave like a legacy formula.
- Make the include argument a real TRUE/FALSE test. The second argument must evaluate to TRUE or FALSE for every row.
=FILTER(A2:C100, B2:B100="North")is correct.=FILTER(A2:C100, "North")is not — it returns #VALUE!. If you need multiple conditions, join them with multiplication (AND) or addition (OR):(B2:B100="North")*(C2:C100>100)for AND,(B2:B100="North")+(C2:C100>100)for OR. Wrap OR conditions in parentheses so the arithmetic works correctly. - Match the sizes of the include and return ranges. The include range must have the same number of rows as the return range.
=FILTER(A2:C100, B2:B50="North")returns #VALUE! because the ranges are different heights. Count rows carefully, or reference whole columns consistently:=FILTER(A:C, B:B="North")works but is slower on large sheets. - Clear the spill range. A #SPILL! error means something is already in the cells the result needs. Click the error icon and choose "Select Obstructing Cells" to jump to the blocker, then delete or move it. Merged cells in the spill area also cause #SPILL! — unmerge them. The formula only needs to be entered in the top-left cell; do not copy it down.
- Handle empty results with the third argument. If no rows match, FILTER returns #CALC!. Add a fallback:
=FILTER(A2:C100, B2:B100="North", "No matches"). This is the most common cause of a formula that "works sometimes" — it is not broken, it is just finding nothing. - Check for text vs. number mismatches. If you filter on a number stored as text (common after CSV imports), the comparison fails silently and returns #CALC!. Use VALUE() or convert the column via Data > Text to Columns. Likewise, trailing spaces break text matches — use TRIM() in the include argument.
- Recalculate and re-enter the formula. Press F9 to force a recalculation. If the formula was entered before you converted the file out of Compatibility Mode, delete it and retype it — Excel sometimes keeps the legacy parsing until the cell is re-entered.
Common Mistakes
- Dragging the FILTER formula down a column. It is a single dynamic array formula; copying it creates overlapping spill ranges and #SPILL! errors.
- Using
AND()orOR()inside the include argument. These functions collapse an array to a single value, so FILTER gets one TRUE/FALSE for the whole range instead of one per row. Use*and+instead. - Forgetting the third argument and assuming #CALC! means the formula is broken. It usually just means zero matches.
- Referencing a table column with the wrong syntax. In an Excel Table, use
Table1[Region], notB2:B100, or the range may not resize as rows are added. - Leaving blank rows inside the source range. Blank rows produce FALSE in the include test and are simply excluded — but they can also break size matching if the return range is shorter.
Tips
- Use
FILTERwithSORTto return ordered results:=SORT(FILTER(A2:C100, B2:B100="North"), 3, -1). - Wrap the source range in an Excel Table (Ctrl+T) so the formula auto-expands as you add rows.
- Combine with
UNIQUEto list distinct matching values:=UNIQUE(FILTER(B2:B100, C2:C100>0)). - If you need the result to stay in a fixed range (for printing or a dashboard), reference the spill with
#— for example=SUM(D2#)— rather than hard-coding the output cells. - On shared workbooks, remember that dynamic arrays require all editors to use a compatible Excel version; older versions will see a static value or an error.
Troubleshooting
If FILTER still fails after the steps above, work through these in order. First, open a brand-new blank workbook and test a minimal formula: =FILTER(A2:A10, A2:A10>5) with numbers in A2:A10. If that works, the problem is in your original data or references, not in Excel. Second, check for hidden characters or non-breaking spaces in text criteria — copy a value directly from the cell into the formula rather than typing it. Third, if you see #NAME?, confirm the workbook is .xlsx and not .xls, and that you have not typed the function name with a typo or a locale-specific separator (some regions use semicolons instead of commas). Fourth, if the formula returns only the first row instead of all matches, you are likely in a version without dynamic arrays or the formula was entered as a legacy array — delete it and re-enter it normally. Fifth, if the result is correct but the wrong size, check for merged cells in the output area and unmerge them. Finally, if nothing works, copy your data into a fresh .xlsx file and rebuild the formula there; corruption in the original workbook is rare but does happen.
Frequently Asked Questions
Why does FILTER return #NAME? in my workbook?
Almost always because your Excel version does not support dynamic arrays (Excel 2019 or earlier), or the file is in Compatibility Mode. Save as .xlsx and confirm you are on Microsoft 365, Excel 2021, or Excel for the web.
Why does FILTER return #CALC! instead of an empty result?
#CALC! means no rows matched the criteria. Add a third argument such as "No matches" to display a friendly message instead of the error.
Can I use FILTER with multiple criteria?
Yes. Multiply conditions for AND, add them for OR, and wrap each condition in parentheses: (B2:B100="North")*(C2:C100>100).
Why does my FILTER formula show #SPILL!?
The output area is blocked by existing data or merged cells. Select the obstructing cells and clear them, or move the formula to an empty area.
Does FILTER work in Excel for the web and Mac?
Yes, in Excel for the web and current Microsoft 365 for Mac. Menu labels and separator characters can differ slightly by version and region.
Can I filter by a cell reference instead of typed text?
Yes — reference a cell, e.g. =FILTER(A2:C100, B2:B100=F1), so the result updates when F1 changes. Make sure the referenced cell contains the exact value, with no extra spaces.