Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Excel Filter Based on Drop Down List: How-To

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To filter Excel data based on a drop-down list, you create a small list of allowed values (often with Data Validation), then point an AutoFilter or Advanced Filter at that list. The simplest reliable method is to use a helper column with a formula that checks each row against the selected drop-down value, then filter that helper column for TRUE. This works in Excel for Microsoft 365, Excel 2021, 2019, and 2016 on Windows and Mac; menu labels can differ slightly by version and region.

What You'll Need

  • Excel 2016 or later (Microsoft 365, 2021, 2019) on Windows or Mac. The steps below use the ribbon; Excel for the web has the same Data Validation and Filter commands but fewer formula options.
  • A table of data with a header row, and a blank cell where the drop-down will live.
  • Your list of allowed values typed somewhere in the workbook (a separate sheet is fine).

Step-by-Step

  1. Set up your source data. Put your data in a contiguous range with a single header row. Select the range and press Ctrl+T (Cmd+T on Mac) to convert it to an Excel Table. Tables expand automatically when you add rows, which keeps the filter working.
  2. Create the list of values. On a spare sheet or off to the side, type each value you want to filter by in its own cell in a single column, with a header such as FilterList. Do not leave blank cells inside the list.
  3. Insert the drop-down. Click the cell where you want the drop-down (for example, cell H2 above your table). Go to Data > Data Validation. In the Allow box choose List. In Source, click the range containing your values (or type its address, e.g. =Sheet2!$A$2:$A$10). Tick In-cell dropdown and click OK.
  4. Add a helper column. In the first empty column of your table, type a header such as Show. In the first data row of that column, enter a formula that compares the relevant field to the drop-down cell. For example, if column B holds the category and H2 holds the drop-down: =[@Category]=$H$2. If you are not using a Table, use =B2=$H$2 and fill down.
  5. Fill the formula down. In a Table, the formula fills automatically. Otherwise, drag the fill handle down to the last row. Each row now shows TRUE or FALSE.
  6. Apply the filter. Click any cell in the table and go to Data > Filter (or use the filter arrow on the helper column header). Open the helper column's filter drop-down and tick only TRUE. Click OK.
  7. Test it. Change the value in the drop-down cell. The helper column recalculates and the visible rows update to match. If nothing changes, press F9 to force a recalculation.
  8. Optional: show all values. To let the drop-down show every row, add a value such as All to the list and change the formula to =OR($H$2="All",[@Category]=$H$2). Then choose All in the drop-down to clear the filter effect.

Common Mistakes

  • Mixing absolute and relative references. The drop-down cell must be locked with dollar signs ($H$2) or the formula will point at a different cell on every row.
  • Filtering the wrong column. Filter the helper column, not the original data column, or the drop-down will not control the result.
  • Leaving blanks in the validation list. Blank entries create an empty option in the drop-down and can make the filter show nothing.
  • Typing values that do not match exactly. Extra spaces or different capitalisation can cause mismatches. Use TRIM or consistent entry.
  • Forgetting to refresh after adding rows. Outside a Table, new rows are not included in the filter range until you reapply it.

Tips

  • Name the validation range (Formulas > Define Name) so the Source box reads =FilterList and is easier to maintain.
  • Use a Table so the helper formula and filter extend automatically as data grows.
  • For multiple criteria, add more helper columns (one per drop-down) and filter each for TRUE.
  • If you need the filtered rows copied elsewhere, use Advanced Filter with a criteria range instead of AutoFilter; it can copy results to another location in one step.
  • Keep the drop-down cell outside the filtered table so it never gets hidden by the filter.

Troubleshooting

  • Drop-down does not appear: Reopen Data Validation and confirm In-cell dropdown is ticked and the Source range contains values, not formulas that return blanks.
  • All rows show FALSE: Check that the drop-down cell reference is absolute and that the compared column contains the same text. Look for leading or trailing spaces.
  • Filter shows no results: Clear the filter, confirm the helper column has TRUE values, then reapply. Also check that the filter is not also applied to another column.
  • Formula errors: If you see #NAME? or #VALUE!, confirm the column header used in the structured reference matches exactly, including spaces.
  • Changes do not update: Set calculation to Automatic under Formulas > Calculation Options, or press F9.
  • Validation list is greyed out: The sheet may be protected. Unprotect it via Review > Unprotect Sheet, then reapply.

Frequently Asked Questions

Can I filter without a helper column?

Yes. You can use Advanced Filter with a criteria range that references the drop-down cell, but it is less intuitive and does not update live. The helper column method is easier to maintain.

Does this work in Excel for the web?

Data Validation and AutoFilter work in Excel for the web, and the helper formula method works too. Some advanced functions may not be available, so stick to simple comparisons.

Can the drop-down filter multiple columns at once?

Not directly. Add one helper column per criterion and filter each for TRUE. Alternatively, build a single formula that checks all conditions with AND.

Why does my filter show blank rows?

Blank rows in the source data often appear because the helper formula returns FALSE for them. Delete or fill blank rows, or adjust the formula to treat blanks as excluded.

Can I use a drop-down to filter a PivotTable?

Yes, but not with Data Validation directly. Add a slicer to the PivotTable (PivotTable Analyze > Insert Slicer) and use that instead; it gives the same click-to-filter behaviour.

Will the filter update automatically when I change the drop-down?

Yes, as long as calculation is automatic and the helper column is part of the filtered range. If you add rows outside a Table, reapply the filter.