How to Add Filter Formula in Excel 2019
In this article
The FILTER function is not available in Excel 2019. Microsoft introduced dynamic array functions, including FILTER, in Excel 365 and Excel 2021. In Excel 2019, you cannot type =FILTER(...) and have it work; the formula will return a #NAME? error because the function does not exist in that version. To achieve the same result, use the built-in Filter feature (Data > Filter) or write a traditional array formula with INDEX, SMALL, IF and ROW to extract matching rows. This guide explains both approaches step by step, plus what to do if you expected FILTER to work and it does not.
What You'll Need
- Excel 2019 on Windows or Mac (the steps below apply to both; menu labels can differ slightly by version, device or region).
- A data range with a header row and no completely blank rows inside the range.
- Basic familiarity with entering formulas and pressing Enter.
Step-by-Step
Option A: Use the built-in Filter feature (no formula)
- Click any cell inside your data range.
- Go to the Data tab and click Filter. Drop-down arrows appear in each header cell.
- Click the arrow in the column you want to filter by.
- Untick (Select All), then tick the values you want to keep. Use the search box in the filter menu to find a specific value quickly.
- Click OK. Only matching rows are shown; the row numbers on the left turn blue to indicate a filter is active.
- To remove the filter, click the arrow again and choose Clear Filter from the column, or click Filter on the Data tab to turn the feature off entirely.
This is the fastest method and is fully supported in Excel 2019. It hides rows rather than extracting them to a new location, so use Option B if you need a separate list of results.
Option B: Extract matching rows with an array formula
This approach copies rows that meet a condition into a separate area. It works in Excel 2019 because it uses only functions that exist in that version.
- Set up your source data in columns A to C, with headers in row 1 and data starting in row 2. For this example, column A is Name, column B is Region, and column C is Amount.
- In a separate area, say columns E to G, copy the same headers into E1:G1.
- Decide your condition. For example, show only rows where Region equals "North". Enter the word North in cell I1 as the criteria cell.
- In cell E2, enter this array formula: =IFERROR(INDEX(A$2:A$100,SMALL(IF($B$2:$B$100=$I$1,ROW($B$2:$B$100)-ROW($B$2)+1),ROWS($E$2:E2))),"")
- Press Ctrl+Shift+Enter (Windows) or Command+Shift+Enter (Mac) instead of plain Enter. Excel wraps the formula in curly braces { } to mark it as an array formula. If you press Enter alone, the formula will not spill correctly.
- Copy E2 across to F2 and G2. The column letters adjust automatically because of the relative references.
- Select E2:G2 and drag the fill handle down as many rows as you expect results (for example, 20 rows). Blank cells appear once the matching rows run out, thanks to IFERROR.
- Change the value in I1 (for example, to "South") and the extracted list updates automatically.
Notes on the formula: adjust the ranges ($2:$100) to match your data. The ROWS($E$2:E2) part creates a running count so each copied row returns the next match. If your data extends beyond row 100, increase the range. This formula is case-insensitive for text comparisons.
Option C: Use Advanced Filter to copy results to another location
- Set up a criteria range above or beside your data. For example, put the header Region in cell I1 and the value North in cell I2.
- Click any cell in your data range.
- Go to Data > Advanced (in the Sort & Filter group).
- Choose Copy to another location.
- Set the List range to your data (for example, $A$1:$C$100).
- Set the Criteria range to your criteria cells (for example, $I$1:$I$2).
- Set the Copy to box to the top-left cell where you want results (for example, $E$1).
- Click OK. Matching rows are copied to the new location. This is a one-time copy; re-run Advanced Filter to refresh after data changes.
Common Mistakes
- Typing =FILTER() in Excel 2019. The function does not exist in this version, so you get #NAME?. There is no add-in or setting that adds it; you need Excel 365 or Excel 2021, or one of the alternatives above.
- Pressing Enter instead of Ctrl+Shift+Enter. Array formulas in Excel 2019 require the three-key combination. Without it, you get a single wrong result or an error.
- Forgetting to lock ranges. If you copy the array formula and the source range shifts, results break. Use absolute references like $A$2:$A$100 for the source data.
- Leaving blank rows in the source range. Blank rows can cause the formula to return zeros or skip matches. Clean the data first.
- Not copying the formula across all output columns. Each output column needs its own copy of the formula with the correct column reference.
Tips
- Use a named range for your criteria cell to make the formula easier to read and update.
- If you only need to view filtered data, Option A is faster and less error-prone than any formula.
- Convert your data to an Excel Table (Insert > Table) before using Advanced Filter; the range then expands automatically as you add rows.
- To count matches instead of listing them, use =COUNTIF($B$2:$B$100,$I$1).
- If you plan to upgrade, note that FILTER in Excel 365 spills results automatically and needs no Ctrl+Shift+Enter.
Troubleshooting
- #NAME? error: You typed a function that Excel 2019 does not recognise, most likely FILTER, SORT, UNIQUE or XLOOKUP. Replace it with the array formula or the built-in filter.
- Formula returns blank for every row: Check that the criteria cell value matches the data exactly (no extra spaces). Also confirm the source range includes the rows you expect.
- Only the first result appears: You pressed Enter instead of Ctrl+Shift+Enter, or you did not drag the formula down far enough.
- Results shift when you sort the source: Array formulas reference cell positions, so re-sorting the source changes which rows match. Re-enter or refresh the formula after sorting, or use Advanced Filter again.
- Curly braces disappear after editing: Editing an array formula and pressing Enter removes the array status. Press Ctrl+Shift+Enter again to restore it.
- Filter arrows disappeared: The Filter toggle was turned off, or the active cell is outside the data range. Click inside the data and turn Filter on again.
Frequently Asked Questions
Does Excel 2019 have the FILTER function?
No. FILTER is a dynamic array function available in Excel 365 and Excel 2021, not in Excel 2019. In Excel 2019 it returns #NAME?.
Can I install an add-in to get FILTER in Excel 2019?
No official add-in adds it. The practical alternatives are the built-in Filter feature, an INDEX/SMALL/IF array formula, or Advanced Filter.
Why do I need Ctrl+Shift+Enter for the array formula?
Excel 2019 does not support dynamic arrays, so formulas that process ranges must be entered as array formulas. Ctrl+Shift+Enter tells Excel to evaluate the formula across the whole range.
Will the array formula update automatically when I change the data?
Yes, as long as the formula is still an array formula and the source range covers the changed cells. If you add rows beyond the referenced range, extend the range in the formula.
Can I filter by more than one condition in Excel 2019?
Yes. The built-in Filter feature supports multiple columns, and Advanced Filter supports multiple criteria rows. For array formulas, combine conditions with multiplication (for AND) or addition (for OR) inside the IF function.
Is there a way to get spill behaviour in Excel 2019?
No. Spilling is a feature of dynamic arrays, which Excel 2019 lacks. You must copy the formula down manually.