How to Automatically Fill Supplier Details for Part Numbers in Excel
Question details
The user needs a reliable method to automatically populate supplier information, such as names and numbers, whenever a specific part number is entered in a spreadsheet.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Managing product inventories, purchase orders, or supplier databases where part numbers are repeatedly entered.
- Observed behavior
- Instead of typing details manually or relying on Excel's inconsistent autocomplete feature, the user requires an automated lookup solution to ensure data consistency.
Ensure you have a dedicated reference table where each unique part number is listed exactly once alongside its correct supplier details to prevent lookup errors.
Use XLOOKUP to Auto-Fill Supplier Details
XLOOKUP is the most robust and modern function to search for a part number and return multiple supplier details simultaneously.
Creating a lookup table is more reliable than using Excel's autocomplete, especially for repetitive data across different sheets.
On a separate sheet (e.g., 'Suppliers'), list unique part numbers in column A, and supplier names and numbers in columns B and C.
In your working sheet, click the cell where you want the supplier name to automatically appear when a part number is entered.
Type the formula =XLOOKUP(A2, Suppliers!A:A, Suppliers!B:B) assuming A2 contains the entered part number.
Press Enter to apply the formula, then click and drag the fill handle down to apply it to the remaining rows.

Use VLOOKUP for Older Versions of Excel
If you are using an older version of Excel that does not support XLOOKUP, VLOOKUP is a reliable alternative.
Enable Excel Autocomplete for Simple Lists
For simple, single-column lists in the same worksheet, Excel's autocomplete can assist with repetitive typing.
Easily Auto-Fill Supplier Details with WPS Spreadsheet
WPS Spreadsheet fully supports advanced functions like XLOOKUP and VLOOKUP, making it incredibly easy to automate your data entry and manage inventory tables.
- 1. Open your data file: Launch WPS Spreadsheet and open your inventory or supplier workbook.
- 2. Organize reference data: Keep your unique part numbers and supplier data neatly organized in a dedicated reference sheet.
- 3. Select the target cell: In your main order sheet, click the cell where the automated detail should appear.
- 4. Insert the lookup formula: Use =XLOOKUP() or the 'Insert Function' (fx) tool to quickly build your lookup formula and drag it down.

Frequently Asked Questions
Why does my XLOOKUP formula return an #N/A error?
This error occurs when the entered part number cannot be found in your reference table. Ensure there are no extra spaces, hidden characters, or typos in either the source data or the searched value. Using Data Validation for part number entry can prevent this.
Can I auto-fill multiple columns of supplier details at once?
Yes. With XLOOKUP, you can select a return array that spans multiple columns (e.g., Suppliers!B:D), and the spreadsheet will spill the corresponding supplier name, number, and part number into adjacent cells automatically.
Why is Excel's autocomplete not suggesting my supplier names?
Excel's autocomplete only works for contiguous data within the same column. If there are blank rows, or if the data is on a different worksheet, autocomplete will not function. Using a lookup table is highly recommended for cross-sheet referencing.




