Function Problems

How to Automatically Fill Descriptions from Part Numbers in Excel

Phi Hung VoPhi Hung Vo Oct 29, 2026 874 views

Question details

The user needs a way to automatically retrieve and display a product description when a corresponding part number is entered, regardless of the entry order.

How to Automatically Fill Descriptions from Part Numbers in Excel
Product
Excel
Device & OS
not provided
Scenario
Creating proposals or invoices where part numbers are entered in varying orders, and corresponding descriptions need to auto-populate dynamically.
Observed behavior
The user wants a dynamic formula that automatically returns the correct description for any part number entered, regardless of its row or position in the document.
Before you start

Ensure you have a master reference table created in your workbook that contains all unique part numbers in one column and their corresponding descriptions in another column.

Solution 1Recommended

Use the XLOOKUP Function

The easiest and most modern way to find and return data from a reference table dynamically.

XLOOKUP is a powerful and flexible function that searches a range or an array and returns an item corresponding to the first match it finds. It can search in any direction and does not require the lookup value to be in the first column.

1
Set up your reference table

Create a dedicated area or a new sheet containing your master list. Place your Part Numbers in Column A and Descriptions in Column B.

2
Select the target cell

Click on the cell in your proposal or invoice where you want the description to automatically appear.

3
Enter the XLOOKUP formula

Type the formula: =XLOOKUP(A2, PartNumbersRange, DescriptionsRange, ""). Replace 'A2' with the cell containing the part number you just entered. Replace 'PartNumbersRange' with the column of part numbers in your master list, and 'DescriptionsRange' with the column of descriptions.

4
Apply the formula to other rows

Press Enter. Then, click the small square at the bottom-right corner of the cell and drag it down to apply the formula to the rest of your rows.

Use the XLOOKUP Function
Handling Missing Items: The fourth argument in the XLOOKUP formula ("") ensures that if a part number is not found or left blank, the description cell will remain neatly blank instead of showing an ugly #N/A error.
Automate with WPS Office

Use WPS Spreadsheet for Advanced Data Lookup

WPS Spreadsheet fully supports powerful lookup functions like XLOOKUP, VLOOKUP, and INDEX/MATCH, making it incredibly easy to automate your proposals, invoices, and inventory sheets.

  1. 1. Open your workbook: Launch WPS Spreadsheet and open your proposal or invoice document.
  2. 2. Organize your reference data: Place your part numbers and descriptions into a dedicated reference sheet.
  3. 3. Select the description cell: Click on the cell where you want the description to automatically populate.
  4. 4. Insert the formula: Type =XLOOKUP( and select your lookup value, lookup array, and return array using your mouse.
  5. 5. Fill down: Press Enter and drag the fill handle down to apply the automation to all other rows.
Fully compatible with Microsoft Excel formulas and the .xlsx formatSupports XLOOKUP, VLOOKUP, and INDEX/MATCH for dynamic data entryFree, lightweight, and easy to use on Windows, Mac, and LinuxBuilt-in templates for proposals and inventory management
microsoft office alternative - wps office

Frequently Asked Questions

Why does my formula return a 0 instead of a blank when the description is empty?

If the lookup function successfully finds the part number but the corresponding description cell in your master list is empty, the software returns a 0. You can append &"" to the very end of your formula to force it to return a blank text string instead.

Can I use VLOOKUP instead of XLOOKUP?

Yes, you can use a formula like =IFERROR(VLOOKUP(A2, LookupTable, 2, FALSE), ""). However, VLOOKUP requires the part number to be in the leftmost column of your lookup table, whereas XLOOKUP and INDEX/MATCH do not have this structural restriction.

How do I prevent the lookup range from shifting when I copy the formula down?

You must use absolute references for your lookup arrays by pressing F4 when selecting the range (e.g., changing A2:A100 to $A$2:$A$100). Alternatively, you can use entire column references (e.g., A:A) so the range stays locked regardless of where you copy the formula.