Excel Dropdown List with Search: Setup and Guide
In this article
You can create a searchable dropdown list in Excel by combining a Data Validation list with a dynamic array formula (FILTER) and a helper column. This allows users to type a few characters into a cell and have the dropdown list automatically filter to show only the matching options, eliminating the need to scroll through hundreds of entries. This method is available in Microsoft 365 and Excel 2021 or later versions that support dynamic arrays.
What You'll Need
- Microsoft 365 or Excel 2021 (required for the FILTER and UNIQUE functions).
- A source list of data (the items you want to appear in your dropdown).
- A dedicated area for a "helper column" where the filtered results will be calculated.
- Basic knowledge of how to name ranges or use table references.
Step-by-Step
- Prepare Your Source Data: Start by listing all the items you want in your dropdown in a single column. For the best results, convert this list into an official Excel Table. Select your data range, press Ctrl + T, and ensure "My table has headers" is checked. Name the table something clear, such as
ProductTable, via the Table Design tab. This ensures that if you add new items to the list later, the searchable dropdown updates automatically. - Create the Input Cell: Decide which cell will be your searchable dropdown (e.g., cell E2). This is where the user will type their search query and select the final value.
- Set Up the Helper Column Formula: You need a formula that looks at what is typed in the input cell and filters the source list accordingly. In a separate column (e.g., column G), enter the following formula:
=FILTER(ProductTable[ProductName], ISNUMBER(SEARCH(E2, ProductTable[ProductName])), "No results found").
Breakdown of this formula: -SEARCH(E2, ProductTable[ProductName])looks for the text in cell E2 within the product name column. It returns a number if found and an error if not. -ISNUMBER(...)converts those results into TRUE or FALSE. -FILTER(...)returns only the rows that are TRUE. - Define a Dynamic Named Range: Because the filtered list changes size based on the search, you cannot use a fixed range for Data Validation. You must use the "spill operator" (#). Go to the Formulas tab > Name Manager > New. Name the range
SearchListand in the "Refers to" box, click the cell where you wrote the FILTER formula and add a hashtag at the end (e.g.,=Sheet1!$G$2#). This tells Excel to include every cell that the formula "spills" into. - Apply Data Validation: Select your input cell (E2). Go to the Data tab > Data Validation. Under the "Allow" dropdown, select "List". In the "Source" box, type
=SearchList. - Disable Error Alerts: By default, Excel will show an error if you type something into the cell that isn't already in the list. Since you need to type a search term *before* selecting from the list, you must turn this off. In the Data Validation window, go to the "Error Alert" tab and uncheck "Show error alert after invalid data is entered". Click OK.
- Test the Search: Click on cell E2 and type a few letters of an item in your list. Click the dropdown arrow, and you will see that only the items containing those letters are now visible.
Common Mistakes
One of the most frequent errors is forgetting to disable the Error Alert in the Data Validation settings. If this is left on, Excel will block you from typing your search query because the partial word doesn't yet match a full entry in the list. You must allow "invalid" data so the user can type the search term.
Another common mistake is using a static range instead of a dynamic named range with the # symbol. If you simply select G2:G10, the dropdown will always show ten items, regardless of whether the search results contain two items or fifty. The spill operator is essential for the list to expand and contract in real-time.
Users also often place the helper column in a visible area of the spreadsheet, which looks cluttered. It is a best practice to place helper columns on a separate "Settings" or "Backend" worksheet and then hide that sheet before sharing the workbook with others.
Finally, some users try to use this method in older versions of Excel (like 2016 or 2019). The FILTER function is a dynamic array function; if you enter it in an older version, it will return a #NAME? error because the software does not recognize the command.
Tips
To make your search more robust, wrap your source data in the UNIQUE function within your filter formula: =FILTER(UNIQUE(ProductTable[ProductName]), ...). This prevents the dropdown from showing duplicate entries if your source table has repeated values.
For a cleaner user experience, use Conditional Formatting on the input cell. You can set the cell to change color when it is empty or when it contains a search term, signaling to the user that the cell is interactive.
If your list is extremely long (thousands of rows), the SEARCH function can occasionally slow down the workbook. To optimize, ensure your source data is sorted alphabetically. While the FILTER function doesn't require sorting to work, a sorted list is much easier for the end-user to navigate once the results are filtered.
You can also make the search case-insensitive by default, as the SEARCH function does not care about capitalization. If you specifically need a case-sensitive search, replace the SEARCH function with the FIND function in your helper formula.
Troubleshooting
If the dropdown is empty or shows "No results found" even when you know the item exists, check for leading or trailing spaces in your source data. A space at the end of a word in your table (e.g., "Apple ") will not match a search for "Apple". Use the =TRIM() function on your source data to clean it up.
If you see a #SPILL! error in your helper column, it means there is existing data in the cells below the formula that is blocking the results from expanding. Clear all cells below the FILTER formula to give it room to display the results.
If the dropdown list does not update when you type, ensure that your Calculation Options are set to "Automatic". Go to the Formulas tab > Calculation Options > Automatic. If it is set to Manual, the FILTER formula won't recalculate until you press F9.
If the Named Range SearchList is not working, go back to the Name Manager and verify that the reference includes the hashtag (#). Without the hashtag, the name refers only to the first cell of the results rather than the entire dynamic array.
Frequently Asked Questions
Can this be done without a helper column?
Not using standard Data Validation. Data Validation requires a range or a formula that returns a range; it cannot execute a complex FILTER logic directly inside the "Source" box. A helper column is necessary to store the intermediate filtered results.
Does this work on Excel for the Web?
Yes, Excel for the Web supports dynamic arrays and the FILTER function. The setup process is identical to the desktop version, though the interface for the Name Manager may look slightly different.
Will this work if I share the file with someone using Excel 2016?
The file will open, but the searchable functionality will break. The person using Excel 2016 will see a #NAME? error in the helper column, and the dropdown will likely be empty or static. This feature requires a version of Excel that supports dynamic arrays.
Can I search for multiple keywords at once?
Yes, but you would need to modify the helper formula. You can use a nested SEARCH or a combination of boolean logic (using the * operator) within the FILTER function to check for multiple different criteria simultaneously.
How do I stop the dropdown from showing the "No results found" text?
In the FILTER function, the third argument is the "if_empty" value. If you change "No results found" to "" (two double quotes), the cell will simply remain blank when no matches are found.