Use IFERROR and VLOOKUP to Keep Existing Prices in Excel
Question details
Retrieve updated prices by SKU while retaining existing prices for SKUs without a match.

- 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.
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.
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.
Insert or select an empty column, such as column E, next to the existing prices. Enter a heading such as Updated Cost in E1.
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.
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.
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.
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.

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. Open the price lists: Open your existing price workbook and the updated-price workbook in WPS Spreadsheets.
- 2. Add a result column: Select an empty column next to the existing prices and enter a heading such as Updated Cost.
- 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. 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.

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.




