
To return a unit price from a SKU catalog, enter the SKU in D1 and use =XLOOKUP(D1,A1:A3,B1:B3,”SKU Not Found”). With SKU-200 in D1, the formula returns 18.75 from the matching price row.
To return an XLOOKUP SKU price, enter the order SKU in D1 and put this formula in the cell where you want the unit price:
=XLOOKUP(D1,A1:A3,B1:B3,"SKU Not Found")
With SKU-200 in D1, the formula returns 18.75. It searches the SKU list in A1:A3, returns the value from the matching row in B1:B3, and displays SKU Not Found instead of #N/A when the SKU is absent.
XLOOKUP SKU price task and setup
Use this approach when an order-entry sheet has one SKU to check and a separate, row-aligned SKU and unit-price catalog. The lookup value can be on either side of the returned column: unlike older left-to-right lookup patterns, XLOOKUP takes a lookup range and a return range separately.
The following is synthetic data for a small catalog. Prices are numbers; format the result cell as Currency if that is how prices are displayed in your workbook.
| Cell | Purpose | Value |
|---|---|---|
| A1 | Catalog SKU | SKU-100 |
| A2 | Catalog SKU | SKU-200 |
| A3 | Catalog SKU | SKU-300 |
| B1 | Unit price | 12.5 |
| B2 | Unit price | 18.75 |
| B3 | Unit price | 24 |
| D1 | Order SKU to find | SKU-200 |

Return a price by SKU
- Place the catalog SKUs in A1:A3 and their corresponding unit prices in B1:B3.
- Enter the requested SKU in D1. In this example, enter SKU-200.
- In the intended result cell, enter
=XLOOKUP(D1,A1:A3,B1:B3,"SKU Not Found"). - Press Enter. The expected result is 18.75.
What each XLOOKUP input does
D1 is the lookup value: the SKU typed or supplied by the order sheet. A1:A3 is the lookup array, containing the catalog SKUs. B1:B3 is the return array, containing prices in the same row order. The final argument, “SKU Not Found”, is text XLOOKUP returns when it cannot find a valid match.
You do not need to add a match-mode argument for this task. Exact match is XLOOKUP’s default behavior. Microsoft’s XLOOKUP documentation describes the lookup and return arrays, the optional if_not_found argument, and the default exact-match mode.
Keep the two catalog ranges aligned. In this example, SKU-200 is in A2 and its price, 18.75, is in B2. If the SKU list starts on a different row or expands, make the price range start and end on the same corresponding rows.
Boundary cases: missing and duplicate SKUs
If D1 contains SKU-999, =XLOOKUP(D1,A1:A3,B1:B3,"SKU Not Found") returns SKU Not Found rather than #N/A. This makes a missing catalog item visible without masking it as a zero price or an empty result. For a focused variation on that outcome, see this guide to an XLOOKUP missing-SKU fallback.
A more serious boundary is a repeated catalog key. Suppose A2 and A3 both contain SKU-200, while B2 contains 18.75 and B3 contains 19.5. With SKU-200 in D1, the same formula returns 18.75, because XLOOKUP returns the first match it finds. It does not compare the two prices or choose the newest one.
This formula returns the first matching SKU, not every matching SKU. If SKU-200 appears twice, with 18.75 on its first row and 19.5 on its second row, the formula returns 18.75; correct duplicate catalog records before relying on the price. Use a duplicate-key check and decide which row is authoritative before publishing or using the catalog. Read more about preventing an XLOOKUP wrong record caused by duplicate keys.

Common mistakes and observable symptoms
| Symptom | Cause | Concrete fix |
|---|---|---|
| The result is SKU Not Found for a SKU you expect to see. | The typed SKU differs from the catalog value, or the lookup range omits the row. | Compare D1 with the catalog text and extend A1:A3 and B1:B3 together to include the missing catalog row. |
| The returned price belongs to the wrong SKU. | The lookup and return ranges do not represent the same rows. | Use equal-height aligned ranges, such as A1:A3 with B1:B3. |
| The result is an older or unexpected price. | The SKU occurs more than once, so XLOOKUP finds the first occurrence. | Remove or reconcile duplicate SKU records; do not expect this exact first-match formula to select among duplicates. |
| The formula name is not recognized. | The workbook is being edited in an Excel version without XLOOKUP. | Use an exact-match VLOOKUP only when the SKU column is the leftmost catalog column, or open the workbook in a supported version. |
Compatibility and limitations
XLOOKUP is available in Excel for Microsoft 365, Excel 2021, and Excel 2024, including the corresponding Mac versions. Microsoft states that XLOOKUP is not available in Excel 2016 or Excel 2019. Formula availability is separate from the workbook’s catalog quality: a supported Excel version will still return the first row when duplicate SKU values exist.
This tutorial covers an exact, first-match SKU lookup with a literal missing-item message. It does not calculate quantities, select a price by date, combine prices from multiple catalogs, or resolve duplicate SKU rows. If you need a refresher on the arguments before adapting the ranges, start with the site’s Excel XLOOKUP basics.
Next task: multiply the returned price by quantity
Once the unit-price result is reliable, keep the price lookup separate from the order quantity. For example, place quantity in another cell and multiply it by the returned price only after the SKU has been found. That separation keeps a missing SKU visible instead of silently producing a misleading order total.
Worked example details and boundary cases
Example inputs
Synthetic catalog input: A1 contains SKU-100 and B1 contains 12.5; A2 contains SKU-200 and B2 contains 18.75; A3 contains SKU-300 and B3 contains 24. Enter SKU-200 in D1.
Method
In the result cell, use =XLOOKUP(D1,A1:A3,B1:B3,”SKU Not Found”). D1 is the SKU to find, A1:A3 is the SKU catalog, B1:B3 is the aligned unit-price range, and “SKU Not Found” is the literal result for an absent SKU.
Expected result
With SKU-200 in D1, =XLOOKUP(D1,A1:A3,B1:B3,”SKU Not Found”) returns 18.75.
The SKU range and price range must cover corresponding rows. For example, A1:A3 must pair with B1:B3 so that each SKU returns the price from its own row.
Practice with the exact example data
Use a separate blank worksheet for each example. Enter each value at its listed cell address, then type the formula in AA1. Quoted text is shown in JSON notation to preserve spaces: enter the characters inside the quotes, without the quotes, using a leading apostrophe to keep text and spaces literal. An empty quoted string means an explicit empty text value; use an apostrophe entry where appropriate. Compare your result with the expected result below. These are synthetic practice data.
Example 1 — Main case
| Cell | Input value |
|---|---|
| A1 | “SKU-100” |
| A2 | “SKU-200” |
| A3 | “SKU-300” |
| B1 | 12.5 |
| B2 | 18.75 |
| B3 | 24 |
| D1 | “SKU-200” |
Formula in AA1: =XLOOKUP(D1,A1:A3,B1:B3,"SKU Not Found")
Expected result: 18.75
Example 2 — Boundary case
| Cell | Input value |
|---|---|
| A1 | “SKU-100” |
| A2 | “SKU-200” |
| A3 | “SKU-200” |
| B1 | 12.5 |
| B2 | 18.75 |
| B3 | 19.5 |
| D1 | “SKU-200” |
Formula in AA1: =XLOOKUP(D1,A1:A3,B1:B3,"SKU Not Found")
Expected result: 18.75
These examples were checked with a limited calculator supporting numeric aggregates, ASCII text functions, exact criteria and exact first-match XLOOKUP. Only the displayed examples and supported semantics were calculated. They were not executed in Microsoft Excel. This check does not verify every claim in the article.
Synthetic examples are provided for practice. They are not evidence of personal experience, independent human review or execution in Microsoft Excel.