Searchable Dropdown List in Excel

Last Updated on 20/03/2025
Reading time: 2 minutes

This guide will teach you how to use the FILTER and SEARCH functions to create a searchable dropdown list in Microsoft 365 or Excel Online.

Searchable dropdown list Excel

Step 1: Implementing the SEARCH Function

First, we use the SEARCH function to check if what you type is in the client list. This looks through the entire column and returns the position of a match.

  • If a match is found, SEARCH returns the position.
  • If no match exists, the function returns #VALUE!
SEARCH function to find the searchable string

Step 2: Convert to a Logical Test

We don’t need the actual position from the SEARCH function—just a simple YES (TRUE) or NO (FALSE) if there’s a match. The ISNUMBER function simplifies this by converting SEARCH results into a clear logical test.

=ISNUMBER(SEARCH(D1, A2:A30))

Convert the result with true and false with ISNUMBER

Step 3: Filter the List

To extract only the matching names, we apply the FILTER function. FILTER retains values where its second argument evaluates to TRUE. Therefore, we directly insert the logical test formula from the previous step as the function’s second argument.

FILTER function to keep the name matching the string

Step 4: Managing Error Handling

If no matches are found, we can show a custom message instead. The third argument in FILTER lets us display a message without results.

Managing error if no string is found

The formula works just as expected! Now, we need to create a dropdown list that uses it. We'll need a workaround since Excel doesn’t allow formulas directly as a dropdown source.

Step 5: Create the Dropdown List

  1. Select the cell where you insert your searchable string, D1 in this example
  2. Open Data > Data Validation to create your dropdown list.
  3. Choose List as the validation type.
  4. In the Source box, enter the cell reference where your formula is.
  5. Add # at the end to include all results from the FILTER formula.
Setting of the searchable dropdown list
  1. Go to the Error Alert tab
  2. Uncheck the Error Alert. Otherwise, you will see an error each time you type any characters
Unchecked data validation error alert

Conclusion

And that’s it! 🎉 You’ve now built a searchable dropdown list in Excel that updates as you type. With the FILTER function, your dropdown stays dynamic and always reflects matching results. Try it out and make your Excel sheets even smarter! 🚀

Leave a Reply

Your email address will not be published. Required fields are marked *

Searchable Dropdown List in Excel

Reading time: 2 minutes
Last Updated on 20/03/2025

This guide will teach you how to use the FILTER and SEARCH functions to create a searchable dropdown list in Microsoft 365 or Excel Online.

Searchable dropdown list Excel

Step 1: Implementing the SEARCH Function

First, we use the SEARCH function to check if what you type is in the client list. This looks through the entire column and returns the position of a match.

  • If a match is found, SEARCH returns the position.
  • If no match exists, the function returns #VALUE!
SEARCH function to find the searchable string

Step 2: Convert to a Logical Test

We don’t need the actual position from the SEARCH function—just a simple YES (TRUE) or NO (FALSE) if there’s a match. The ISNUMBER function simplifies this by converting SEARCH results into a clear logical test.

=ISNUMBER(SEARCH(D1, A2:A30))

Convert the result with true and false with ISNUMBER

Step 3: Filter the List

To extract only the matching names, we apply the FILTER function. FILTER retains values where its second argument evaluates to TRUE. Therefore, we directly insert the logical test formula from the previous step as the function’s second argument.

FILTER function to keep the name matching the string

Step 4: Managing Error Handling

If no matches are found, we can show a custom message instead. The third argument in FILTER lets us display a message without results.

Managing error if no string is found

The formula works just as expected! Now, we need to create a dropdown list that uses it. We'll need a workaround since Excel doesn’t allow formulas directly as a dropdown source.

Step 5: Create the Dropdown List

  1. Select the cell where you insert your searchable string, D1 in this example
  2. Open Data > Data Validation to create your dropdown list.
  3. Choose List as the validation type.
  4. In the Source box, enter the cell reference where your formula is.
  5. Add # at the end to include all results from the FILTER formula.
Setting of the searchable dropdown list
  1. Go to the Error Alert tab
  2. Uncheck the Error Alert. Otherwise, you will see an error each time you type any characters
Unchecked data validation error alert

Conclusion

And that’s it! 🎉 You’ve now built a searchable dropdown list in Excel that updates as you type. With the FILTER function, your dropdown stays dynamic and always reflects matching results. Try it out and make your Excel sheets even smarter! 🚀

Leave a Reply

Your email address will not be published. Required fields are marked *