Look Up a Price by Part Number in Another Excel Sheet or Workbook
Question details
Find a part number on a source sheet and return its corresponding price to a destination sheet.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Part numbers are entered on a destination sheet, while the source sheet or workbook contains part numbers in column C and prices in column F.
- Observed behavior
- The destination sheet should display the matching price for each entered part number.
Confirm that the source sheet is named Source Sheet, with part numbers in C2:C200 and prices in F2:F200, and that the first destination part number is in B2. Adjust the sheet name and ranges in the formulas if your data is arranged differently.
Use XLOOKUP to return the matching price
Use this approach in Microsoft 365 or Excel 2021 when the source data is on another sheet or in another workbook.
On the destination sheet, select C2 and enter =XLOOKUP(B2,'Source Sheet'!$C$2:$C$200,'Source Sheet'!$F$2:$F$200,"").
Press Enter, then drag the fill handle from C2 down alongside the remaining part numbers.
Open the source workbook and use a reference such as =XLOOKUP(B2,'[Prices.xlsx]Source Sheet'!$C$2:$C$200,'[Prices.xlsx]Source Sheet'!$F$2:$F$200,""). Replace Prices.xlsx and Source Sheet with your actual file and sheet names.

Use VLOOKUP in older Excel versions
Use this formula when your Excel version does not support XLOOKUP.
Look up part prices with WPS Spreadsheet
Use VLOOKUP in WPS Spreadsheet to match part numbers on a source sheet and return prices to your destination sheet.
- 1. Open the workbook: Open your Excel file in WPS Spreadsheet and select the destination sheet.
- 2. Enter the formula: Select C2 and enter =IFERROR(VLOOKUP(B2,'Source Sheet'!$C$2:$F$200,4,FALSE),""). Adjust the sheet name and range to match your source data.
- 3. Fill down: Press Enter, then drag the fill handle from C2 down to retrieve prices for the other part numbers.
- 4. Save the workbook: Choose File > Save or Save As to save the updated spreadsheet in an Excel format.

Frequently Asked Questions
Why does the price cell appear blank?
The formulas return a blank when a part number is not found. Check that B2 matches a value in the source sheet's column C, including spaces and whether the values are stored as text or numbers. IFERROR can also hide other formula errors.
What if my source data extends beyond row 200?
Increase the end row in both XLOOKUP ranges, or in the VLOOKUP table range, to include all source rows. Keep the XLOOKUP part-number and price ranges the same size.
What happens if a part number appears more than once?
Both formulas return the price from the first matching part number in the source range. Check column C for duplicates if each part should have only one price.
Can I look up a price in a different workbook?
Yes. Open the source workbook and include its file and sheet names in the reference, such as '[Prices.xlsx]Source Sheet'!$C$2:$F$200 for VLOOKUP. Excel may add the file path to the reference.




