Excel 2010 Filter Formula: Step-by-Step Guide
In this article
Excel 2010 does not have a FILTER function. The dynamic array FILTER function arrived in Excel 365 and Excel 2021, so typing =FILTER() in Excel 2010 returns #NAME?. What Excel 2010 does offer is AutoFilter for hiding rows, the Advanced Filter for copying matches to another location, and formulas such as IF, INDEX, SMALL and ROW that can build a filtered list on a second sheet. This guide shows the working methods in Excel 2010, the formula technique that mimics a filter, and the mistakes that make it fail.
What You'll Need
- Excel 2010 on Windows (the ribbon and dialog labels below are for that version; labels can differ slightly by service pack, edition or region).
- A data range with a single header row and no completely blank rows or columns inside it.
- If you plan to use formulas, a spare sheet or a clear area to the right of the data for the results.
- For the Advanced Filter copy method, a small criteria range with the same header text as the column you want to filter.
Step-by-Step
Method 1: AutoFilter to hide non-matching rows
- Click any cell inside your data range. On the Data tab, in the Sort & Filter group, click Filter. Drop-down arrows appear in the header row.
- Click the arrow on the column you want to filter. Clear the (Select All) checkbox, then tick only the values you want to keep. For text, you can type a term in the search box above the list to narrow the checkboxes.
- Click OK. Excel hides the rows that do not match and the row numbers turn blue to show a filter is active.
- To filter on a condition rather than a list of values, choose Number Filters or Text Filters from the drop-down and pick a comparison such as Greater Than or Contains. Enter the value and click OK.
- To remove the filter, click the arrow again and choose Clear Filter From, or click Filter on the Data tab to turn AutoFilter off entirely.
AutoFilter hides rows but does not delete them. Copying a filtered range copies only the visible rows, which is often what you want when pasting results elsewhere.
Method 2: Advanced Filter to copy matches to another location
- Set up a criteria range on the same sheet, away from the data. Put the exact header text of the column you want to test in one cell, and the condition underneath it. For example, put Region in A20 and North in A21 to match rows where Region equals North.
- Click a cell in the data range, then on the Data tab click Advanced in the Sort & Filter group.
- In the Advanced Filter dialog, choose Copy to another location.
- Confirm the List range box covers your data including headers. In the Criteria range box, select the header and condition cells you just created.
- In the Copy to box, click the top-left cell where the results should start. Choose an empty area or another sheet so the original data is not overwritten.
- Click OK. Excel copies every matching row to the destination. If you tick Unique records only, duplicate rows are removed from the copy.
For conditions such as greater than a number, use a criteria cell containing an operator and value, for example >500 under a numeric header. For text that contains a term, use *term* under the header. The criteria range must use the same header spelling as the data, or Excel will not match the column.
Method 3: A formula that lists matches on another sheet
- On a results sheet, copy the header row from the source data so the columns line up.
- Decide which column you will test and what value you will match. Put that value in a cell you can change, for example a cell named or referenced as the criteria.
- In the first result row, enter a formula that returns the row number of each match in turn. A common pattern uses SMALL, IF and ROW entered as an array formula with Ctrl+Shift+Enter: =SMALL(IF(Source!$B$2:$B$100=$C$1,ROW(Source!$B$2:$B$100)-ROW(Source!$B$2)+1),ROWS($A$2:$A2)). Replace Source!$B$2:$B$100 with the column you are testing and $C$1 with the cell holding the match value.
- Wrap that in INDEX to pull the actual data: =IFERROR(INDEX(Source!A$2:A$100,SMALL(IF(Source!$B$2:$B$100=$C$1,ROW(Source!$B$2:$B$100)-ROW(Source!$B$2)+1),ROWS($A$2:$A2))),""). Enter with Ctrl+Shift+Enter, then fill down and across.
- Change the value in the criteria cell and the list updates. Blank results at the bottom mean there are no more matches.
This formula approach is the closest Excel 2010 gets to a live filter formula. It is more fragile than AutoFilter because the ranges must be sized correctly and the array entry must be used.
Common Mistakes
- Typing =FILTER() and expecting it to work. Excel 2010 does not support it; use AutoFilter, Advanced Filter or the INDEX/SMALL formula instead.
- Leaving blank rows or columns inside the data range. AutoFilter and Advanced Filter stop at the gap, so some rows are never filtered.
- Using criteria headers that do not exactly match the data headers in spelling or spacing. Advanced Filter then returns nothing or the wrong rows.
- Forgetting Ctrl+Shift+Enter on the array formula. Without it the formula returns a single wrong result or an error.
- Copying a filtered range and pasting over the original data. Only visible rows are copied, so hidden rows are effectively lost from the paste area.
- Pointing the Copy to destination at cells that already contain data. Excel overwrites them without warning.
Tips
- Convert the data range to a table with Insert > Table so filters and formulas expand automatically as rows are added. Tables work in Excel 2010 and make range sizing less error-prone.
- Use a cell for the criteria value rather than hard-coding it in the formula, so the filtered list can be changed without editing formulas.
- Keep the criteria range small and clearly labelled, and leave a blank row between it and the data so Advanced Filter does not treat it as part of the list.
- If you need the filtered result to persist as values, copy the visible rows and paste as values into a new sheet.
- Name the source range with Formulas > Define Name so formulas read more clearly and are easier to resize.
Troubleshooting
If AutoFilter arrows do not appear, click a single cell inside the data first; if the range contains merged cells, unmerge them because filtering behaves unpredictably with merged cells. If Advanced Filter returns no rows, check that the criteria header matches the data header exactly and that the criteria range includes the header cell. If the copy destination shows an error about the copy area, choose a location with enough empty space and no existing content. If the array formula returns #NUM!, there are fewer matches than the number of filled-down rows, which is expected; IFERROR hides it. If it returns #VALUE!, the ranges in the formula are different sizes or the formula was not entered with Ctrl+Shift+Enter. If results stop partway down, extend the source ranges in the formula to cover all rows. If the workbook is shared, filtering can be limited; unshare it or work on a copy. For any step that overwrites cells, make a backup copy of the sheet first, because the original values in the destination area are lost.
Frequently Asked Questions
Does Excel 2010 have a FILTER function?
No. The FILTER function requires Excel 365 or Excel 2021. In Excel 2010 use AutoFilter, Advanced Filter or an INDEX/SMALL array formula.
Can I filter with a formula in Excel 2010?
You can build a formula that lists matching rows on another sheet, but there is no single built-in filter formula. The INDEX, SMALL, IF and ROW combination is the standard workaround.
Why does my Advanced Filter return nothing?
Usually the criteria header does not exactly match the data header, or the criteria range was selected without its header cell. Check spelling, spacing and that the criteria range includes the header.
How do I copy only the filtered rows?
Select the filtered range, copy, then paste into the destination. Excel copies visible rows only when a filter is active. Paste as values if you do not want formulas carried over.
Can I filter by more than one condition?
Yes. In Advanced Filter, put conditions on the same criteria row to require all of them, or on separate rows to match any of them. AutoFilter also allows custom filters with two conditions per column.
Why does my array formula show #NUM! at the bottom?
That means there are fewer matches than rows filled down. Wrap the formula in IFERROR to show a blank instead.