How to Create an Excel 365 Drop-Down Search by Column
Question details
The user wants to set up a drop-down list in Excel 365 to select specific columns (such as last name or customer number) and dynamically filter or search records based on that selection.

- Product
- Excel 365
- Device & OS
- not provided
- Scenario
- Creating an interactive search interface where users can choose which data field to search by before entering their query.
- Observed behavior
- The goal is to link a data-validation drop-down list with lookup or filter formulas to return matching records depending on the chosen column.
Ensure your dataset is organized in a clear tabular format with distinct column headers, and decide whether your search needs to return a single exact match or multiple filtered rows.
Combine Data Validation with Dynamic Formulas
Create a drop-down menu of your headers and use Excel's dynamic array formulas to fetch matching results based on the selection.
Excel 365's dynamic array functions make it simple to build an interactive search tool. By linking a drop-down list to a FILTER or XLOOKUP formula nested with CHOOSECOLS or INDEX/MATCH, the search results update instantly when a user changes the search criteria.
List your searchable column headers (e.g., Last Name, ZIP Code, Customer Number) in a separate range or copy them to a dedicated setup area in your worksheet.
Select the cell where you want the drop-down to appear. Go to the 'Data' tab, click 'Data Validation', choose 'List' from the Allow menu, and select your column headers as the Source.
Designate a cell immediately next to or below your drop-down where users will type their specific search query (the actual text or number they are looking for).
In your results area, enter a FILTER or XLOOKUP formula. Use the CHOOSECOLS or XMATCH function inside your formula to tell Excel to search within the specific column selected in the drop-down list.

Easily Create Drop-Down Searches in WPS Spreadsheet
WPS Spreadsheet supports advanced data validation and powerful dynamic array functions. You can build interactive drop-down search tools efficiently with full format compatibility.
- 1. Open your data: Launch WPS Spreadsheet and open your dataset containing the records to be searched.
- 2. Insert Data Validation: Navigate to the 'Data' tab and click 'Validation' to create your drop-down list from the column headers.
- 3. Set up input criteria: Dedicate a blank cell for the user's text input to act as the primary search query.
- 4. Apply dynamic formulas: Type =FILTER() or =XLOOKUP() in your results section, referencing your data validation cell to dynamically pull records based on the drop-down selection.

Frequently Asked Questions
Can I make the drop-down search return multiple matching rows?
Yes, by combining the drop-down cell reference with the FILTER function, the spreadsheet can return an array of all rows that match your specific search criteria.
Why is my drop-down list not updating when I add new columns?
If your data validation source range is static, it won't include newly added columns. Format your headers as a Table or use a dynamic named range to ensure the drop-down updates automatically.
Which formula is better for this search: XLOOKUP or FILTER?
Use XLOOKUP if you only need the first matching record (e.g., searching by a unique Customer ID). Use FILTER if your search might yield multiple results (e.g., searching by State or ZIP code).




