Function Problems

How to Create a Product Drop-Down and Retrieve Price in Excel

Steven ParkerSteven Parker Nov 10, 2026 870 views

Question details

The user wants to create a drop-down menu for selecting products and automatically fetch the corresponding price from a separate data table.

How to Create a Product Drop-Down and Retrieve Its Price in Excel
Product
Excel
Device & OS
not provided
Scenario
Building an order form or invoice where selecting a product from a drop-down menu automatically populates its price.
Observed behavior
A dynamic data-validation list needs to be linked to a lookup formula (XLOOKUP, INDEX/MATCH, or VLOOKUP) to accurately fetch matching prices based on the user's selection.
Before you start

Ensure your product and price data is organized in clean, adjacent columns, preferably without blank rows, to make table creation and formula referencing easier.

Solution 1Recommended

Use Data Validation and XLOOKUP (Modern Excel)

Convert your source data into an Excel Table for dynamic updates, create a drop-down list, and use the robust XLOOKUP function to fetch prices.

Using an Excel Table ensures that any new products you add later will automatically appear in your drop-down list without needing to adjust the data validation range manually.

1
Create an Excel Table

Highlight your product and price data range. Navigate to Insert > Table on the ribbon, check 'My table has headers', and click OK. Name the table 'ProductTable' for easier reference.

2
Create a Named Range

Go to Formulas > Define Name. Enter 'ProductList' as the Name. In the 'Refers to' box, select just the product column of your new table.

3
Build the Drop-Down List

Select the target cell where you want the drop-down (e.g., C5). Go to Data > Data Validation. Under the 'Allow' drop-down, select 'List'. In the 'Source' box, type =ProductList and click OK.

4
Retrieve the Price with XLOOKUP

Click the cell where the price should appear. Enter the formula: =XLOOKUP(C5,ProductTable[Product],ProductTable[Price],""). Press Enter. Now, selecting a product in C5 will instantly display its price.

Use Data Validation and XLOOKUP (Modern Excel)
Dynamic Updates Enabled: Because your source data is formatted as an Excel Table, adding new products at the bottom of the table will instantly update your drop-down list and formula ranges.
Manage Data Efficiently

Create Dynamic Drop-Downs and Lookups Easily in WPS Spreadsheet

WPS Spreadsheet fully supports advanced functions like XLOOKUP, VLOOKUP, and Data Validation, making it incredibly simple to build automated forms, invoices, and dynamic data tables without any compatibility issues.

  1. 1. Organize your data: Open your workbook in WPS Spreadsheet and ensure your product names and prices are listed in adjacent columns.
  2. 2. Create the Drop-Down: Select the target cell, navigate to the Data tab, and click 'Validation' to open the Data Validation dialog.
  3. 3. Configure the List: Select 'List' in the Allow drop-down box, click the Source field, and highlight your column of product names.
  4. 4. Apply Lookup Formula: In the adjacent cell, type your preferred lookup formula, such as =XLOOKUP() or =VLOOKUP(), referencing the drop-down cell to pull the corresponding price.
Fully compatible with Microsoft Excel formulas including XLOOKUP, VLOOKUP, and INDEX/MATCHIntuitive Data Validation tool to create drop-down menus quicklyFree to download and use with a lightweight installationCross-platform support for Windows, Mac, Linux, iOS, and Android
microsoft office alternative - wps office

Frequently Asked Questions

Why is my drop-down list not updating when I add new products?

If your source data is just a standard range, the drop-down won't update automatically. Convert your source data to an Excel Table (Insert > Table) or use a dynamic Named Range to ensure new items are added to the list automatically.

Why does my VLOOKUP formula return an #N/A error after selecting a product?

The #N/A error usually means the selected product cannot be found in your source table. Check for accidental trailing spaces in your drop-down list or source data, and ensure your VLOOKUP formula is set to exact match by using FALSE as the last argument.

Can I place the product list data on a different worksheet?

Yes. The best way to do this is to create a Named Range for your product column on the source sheet. Then, in the Data Validation source box on your main sheet, simply type an equals sign followed by the name (e.g., =ProductList).