Function Problems

Use IFERROR and VLOOKUP to Keep Existing Prices in Excel

Amos GikundaAmos Gikunda Dec 2, 2026 868 views

Question details

Retrieve updated prices by SKU while retaining existing prices for SKUs without a match.

Use IFERROR and VLOOKUP to Keep Existing Prices in Excel
Product
Microsoft Excel
Device & OS
not provided
Scenario
A cost column needs to use a price list in another workbook to update prices for matching SKUs.
Observed behavior
Matching SKUs should return the updated price, while unmatched SKUs should retain their existing price.
Before you start

Identify the SKU and existing-price columns in the original list, and confirm that the updated list has SKUs in its first lookup column and prices in the next column. Open the updated-price workbook if you plan to create an external reference.

Solution 1Recommended

Use IFERROR and VLOOKUP in a New Price Column

Use a helper column to return updated prices without overwriting the existing prices used as the fallback.

In this example, A2 contains the SKU, D2 contains the existing price, and the updated price list has SKUs in column I and prices in column J. Adjust these references to match your workbook.

1
Add a result column

Insert or select an empty column, such as column E, next to the existing prices. Enter a heading such as Updated Cost in E1.

2
Enter the formula

In E2, enter =IFERROR(VLOOKUP(A2,PriceList!$I$2:$J$1000,2,FALSE),D2). This looks for an exact SKU match on the PriceList sheet and uses D2 if the lookup returns an error.

3
Reference another workbook

If PriceList is in another workbook, use an external reference instead, such as =IFERROR(VLOOKUP(A2,'[UpdatedPrices.xlsx]PriceList'!$I$2:$J$1000,2,FALSE),D2). Replace the workbook name, sheet name, and range with your actual details.

4
Fill and check the results

Drag the fill handle from E2 down through the remaining rows. Check a matched SKU and an unmatched SKU to confirm that the results show the updated and existing prices respectively.

5
Replace the original prices if needed

After checking the results, copy the cells in column E, select the corresponding cells in column D, and use Paste Special > Values. This replaces the original prices with the calculated results without copying the formulas.

Use IFERROR and VLOOKUP in a New Price Column
IFERROR catches more than missing matches: IFERROR also returns the existing price for other lookup errors, such as an invalid reference. If prices do not update as expected, check the source range and workbook reference.
Work with price lists in WPS

Update SKU Prices with WPS Spreadsheets

Use IFERROR and VLOOKUP in WPS Spreadsheets to bring in updated prices by SKU while keeping the existing price when a lookup returns an error.

  1. 1. Open the price lists: Open your existing price workbook and the updated-price workbook in WPS Spreadsheets.
  2. 2. Add a result column: Select an empty column next to the existing prices and enter a heading such as Updated Cost.
  3. 3. Enter the lookup formula: In the first result cell, enter =IFERROR(VLOOKUP(A2,'[UpdatedPrices.xlsx]PriceList'!$I$2:$J$1000,2,FALSE),D2), replacing the workbook, sheet, and cell references with your own.
  4. 4. Fill and verify: Drag the result cell's fill handle down the column, then check that matching SKUs show updated prices and unmatched SKUs show their existing prices.
Match updated prices to SKUs with an exact lookupKeep existing prices as the fallback in a separate result columnOpen and edit Microsoft Excel XLSX filesWork in a familiar spreadsheet interface
QA img-9

Frequently Asked Questions

Why should I put the formula in a new column?

The formula needs to refer to the existing price in D2. Entering it directly in D2 would create a circular reference, so place it in a separate cell such as E2.

How do I look up prices from another workbook?

Open the source workbook and use a reference such as '[UpdatedPrices.xlsx]PriceList'!$I$2:$J$1000 as the VLOOKUP table range. Replace the file name, sheet name, and range with the actual source details.

What does FALSE do in the VLOOKUP formula?

FALSE requests an exact match for the SKU. If no exact match is found, VLOOKUP returns an error and IFERROR returns the existing price.

Why is an existing price showing even though the SKU should match?

IFERROR hides any error returned by VLOOKUP, not just a missing match. Check the SKU values, the source workbook reference, and whether the lookup range starts with the SKU column.

What happens if the updated price list contains duplicate SKUs?

VLOOKUP returns the price from the first matching row in the lookup range. Review duplicate SKUs in the source list if that is not the price you expect.