Use an Excel Drop-Down List to Return Related Information
Question details
Create a drop-down list of names and display related information beside each selected name.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A worksheet needs a name selector in each row and lookup formulas in adjacent columns.
- Observed behavior
- Selecting a person should display that person's matching information in the same row.
On Sheet2, put the names in A2:A100 and the corresponding details in B2:B100, with each person's information on the same row. Adjust the ranges below to match your actual data, and use unique names when possible.
Create a drop-down list and return details with VLOOKUP
Use data validation for name selection and VLOOKUP to display the matching detail beside it.
Select Sheet2!A2:A100, then choose Formulas > Define Name. Enter PeopleNames as the name and confirm.
On the worksheet where you want selections, select A2 and choose Data > Data Validation. Under Allow, choose List, enter =PeopleNames in Source, and click OK.
In B2, enter =IF(A2="","",IFERROR(VLOOKUP(A2,Sheet2!$A$2:$B$100,2,FALSE),"")) to return the detail associated with the selected name.
Copy A2 and B2 down to the rows you need. Select a name from each drop-down to display its matching detail in column B.

Use XLOOKUP to return the selected person's details
Use XLOOKUP instead of VLOOKUP if your Excel version supports it.
Create a name drop-down and lookup in WPS Spreadsheets
Use data validation and a VLOOKUP formula in WPS Spreadsheets to select a person and display their related information in the same row.
- 1. Prepare the source table: In WPS Spreadsheets, enter names in Sheet2!A2:A100 and their matching details in Sheet2!B2:B100.
- 2. Name the source range: Select Sheet2!A2:A100 and use Formulas > Define Name to create the name PeopleNames.
- 3. Add the drop-down: Select A2 on the entry sheet, open Data > Data Validation, choose List, and enter =PeopleNames as the source.
- 4. Return the matching detail: Enter =IF(A2="","",IFERROR(VLOOKUP(A2,Sheet2!$A$2:$B$100,2,FALSE),"")) in B2. Copy A2 and B2 down, then select a name.

Frequently Asked Questions
Why does the lookup cell remain blank after I select a name?
The example formula returns a blank when no match is found. Check that the selected name matches an entry in Sheet2 column A and that the lookup range includes that entry.
Can I return more than one detail for each person?
Yes. Add each detail in a separate source column and use a separate lookup formula for each output column. For VLOOKUP, extend the table range and use the appropriate column index.
What happens if two people have the same name?
VLOOKUP and XLOOKUP return the first matching entry in these examples. Use a unique identifier, such as an employee ID, in the drop-down and lookup range to distinguish people.
Which Excel versions support XLOOKUP?
XLOOKUP is available in Microsoft 365 and Excel 2021 and later. Use the VLOOKUP solution if your version does not support XLOOKUP.




