Function Problems

Look Up a Price by Part Number in Another Excel Sheet or Workbook

Camila MilosovichCamila Milosovich Dec 2, 2026 868 views

Question details

Find a part number on a source sheet and return its corresponding price to a destination sheet.

Look Up a Price by Part Number in Another Excel Sheet or Workbook
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.
Before you start

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.

Solution 1Recommended

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.

1
Enter the formula

On the destination sheet, select C2 and enter =XLOOKUP(B2,'Source Sheet'!$C$2:$C$200,'Source Sheet'!$F$2:$F$200,"").

2
Fill down

Press Enter, then drag the fill handle from C2 down alongside the remaining part numbers.

3
Reference another workbook if needed

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 XLOOKUP to return the matching price
No match: The final empty string makes XLOOKUP return a blank when it cannot find the part number. Excel may update an external reference to include the source file path.
Work with spreadsheets in WPS Office

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. 1. Open the workbook: Open your Excel file in WPS Spreadsheet and select the destination sheet.
  2. 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. 3. Fill down: Press Enter, then drag the fill handle from C2 down to retrieve prices for the other part numbers.
  4. 4. Save the workbook: Choose File > Save or Save As to save the updated spreadsheet in an Excel format.
Retrieve prices by exact part numberOpen and save Microsoft Excel XLSX and XLS filesFill a lookup formula down for multiple partsWork with a familiar spreadsheet interface
microsoft office alternative - wps office

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.