Function Problems

How to Create an Excel Drop-Down List with Automatic Data Auto-Fill

Kushani NimanthikaKushani Nimanthika Nov 11, 2026 869 views

Question details

The user wants to build a drop-down selector that automatically retrieves and displays corresponding part numbers and costs when an item is selected.

Create an Excel Drop-Down List with Automatic Part Numbers and Costs
Product
Excel
Device & OS
not provided
Scenario
Creating an inventory, pricing, or parts selector tool where picking an item from a list auto-fills its detailed attributes in adjacent cells.
Observed behavior
The goal is to select an item from a drop-down menu and have the spreadsheet dynamically populate related data columns without manual entry.
Before you start

Ensure your source data is organized in a structured table or contiguous range on a separate sheet, and verify that your spreadsheet software supports the XLOOKUP function.

Solution 1Recommended

Use XLOOKUP and Data Validation to Auto-Fill Details

This method uses Data Validation to create the drop-down menu and XLOOKUP to dynamically spill the related part numbers and costs into adjacent cells.

XLOOKUP is a powerful function that allows you to search for a value in an array and return corresponding values from another array. By combining it with Data Validation, you can create a seamless selection tool.

1
Organize source data

Create a sheet named 'Parts'. Place your unique item names in column A (A2:A60), part numbers in column B (B2:B60), and costs in column C (C2:C60).

2
Apply Data Validation

On your main sheet, select cell A1. Navigate to the Data tab on the ribbon, click 'Data Validation', choose 'List' under the Allow dropdown, and enter ='Parts'!$A$2:$A$60 in the Source box. Click OK.

3
Enter the XLOOKUP formula

Select cell B1 on your main sheet and enter the formula: =XLOOKUP(A1,'Parts'!$A$2:$A$60,'Parts'!$B$2:$C$60,""). Press Enter to apply.

Use XLOOKUP and Data Validation to Auto-Fill Details
Dynamic Array Spilling: The XLOOKUP formula will automatically spill both the part number and cost into cells B1 and C1 simultaneously, eliminating the need to write separate formulas for each column.
Solve Data Lookups Easily

Create Dynamic Drop-Down Lists with WPS Spreadsheet

WPS Spreadsheet offers full support for advanced functions like XLOOKUP and VLOOKUP, along with intuitive data validation tools, making it easy to build custom inventory selectors.

  1. 1. Prepare reference data: Open your workbook in WPS Spreadsheet and organize your reference items, part numbers, and costs.
  2. 2. Create the list: Go to the Data tab, click 'Data Validation', and select 'List' to build your drop-down menu using your reference items.
  3. 3. Insert the lookup function: Use the built-in function wizard or manually type your XLOOKUP or VLOOKUP formula to link the related data to the drop-down cell.
  4. 4. Save your work: Save your file in .xlsx format to retain full cross-platform compatibility with Microsoft Excel.
Fully compatible with Microsoft Excel file formats (.xlsx), ensuring complex lookup formulas work seamlessly.Advanced formula support including XLOOKUP, VLOOKUP, and dynamic arrays.Free, lightweight, and easy to use with a familiar tabbed interface.Built-in templates for inventory, pricing, and order management.
microsoft office alternative - wps office

Frequently Asked Questions

Why is my XLOOKUP formula returning a #NAME? error?

This error typically occurs if you are using an older version of Excel that does not support the XLOOKUP function. You will need to upgrade to Microsoft 365, Excel 2021, or use VLOOKUP instead.

How do I hide the #N/A error when the drop-down cell is empty?

In XLOOKUP, you can use the built-in 'if_not_found' argument by placing "" at the end of the formula. For VLOOKUP, you can wrap the formula in the IFERROR function, like this: =IFERROR(VLOOKUP(...), "").

How can I make my drop-down list source expand automatically when I add new parts?

Format your source data range as a Table (using Ctrl+T) or create a dynamic named range. This ensures any new items added to the bottom of the list will automatically appear in your drop-down menu without needing to update the validation source.

Can I pull lookup data from a different workbook?

Yes, both XLOOKUP and VLOOKUP can reference ranges in external workbooks. However, for better performance and to prevent broken links, it is highly recommended to keep the reference data in a separate sheet within the same workbook.