How to Automatically Fill Descriptions from Part Numbers in Excel
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.

- 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.
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.
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.
Create a dedicated area or a new sheet containing your master list. Place your Part Numbers in Column A and Descriptions in Column B.
Click on the cell in your proposal or invoice where you want the description to automatically appear.
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.
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 INDEX and MATCH with IFERROR
A robust alternative if you are using an older version of Excel that does not support the XLOOKUP function.
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. Open your workbook: Launch WPS Spreadsheet and open your proposal or invoice document.
- 2. Organize your reference data: Place your part numbers and descriptions into a dedicated reference sheet.
- 3. Select the description cell: Click on the cell where you want the description to automatically populate.
- 4. Insert the formula: Type =XLOOKUP( and select your lookup value, lookup array, and return array using your mouse.
- 5. Fill down: Press Enter and drag the fill handle down to apply the automation to all other rows.

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.




