A reliable lookup starts with an exact-match XLOOKUP that refers to named table columns, not a manually selected cell range. For example, =XLOOKUP(A2,Products[SKU],Products[Price],"SKU not found") finds the SKU in A2 and returns its price from an Excel Table named Products. When you add rows to that table, the structured references expand with it.
Check compatibility before rebuilding a shared workbook. Microsoft documents that XLOOKUP is available in current Excel versions, including Microsoft 365, Excel 2021, and Excel 2024, but not in Excel 2016 or Excel 2019. If recipients use those versions, retain a compatible VLOOKUP or INDEX/MATCH approach instead of assuming the new formula will calculate for them. Microsoft’s XLOOKUP documentation describes the function’s arguments and availability.
Turn the reference list into a table first
Suppose you maintain a product reference list with columns named SKU, Product Name, and Price. Click any cell in that list, press Ctrl+T, confirm that the range is correct, and select the option indicating that the table has headers. Then use the Table Design tab to rename the table to Products.
This creates structured references such as Products[SKU] rather than references such as $F$2:$F$500. Structured references use the table and column names, and Excel adjusts them when table data is added or removed. Converting the table back to a normal range removes that table behavior and changes structured references to ordinary cell references. Microsoft explains how structured references work with Excel Tables.
A table does not make the underlying data correct. It will not standardize inconsistent IDs, remove extra spaces, or decide which row is authoritative when the same SKU appears twice. It makes the formula easier to read and less dependent on a fixed range.

Build an exact-match XLOOKUP
In the first result cell beside an SKU entered in A2, use:
=XLOOKUP(A2,Products[SKU],Products[Price],"SKU not found")Read the formula from left to right:
A2is the lookup value: the SKU you want to find.Products[SKU]is the lookup array: the table column Excel searches.Products[Price]is the return array: the corresponding column Excel returns a value from."SKU not found"is the optional result shown when there is no match.
Exact match is XLOOKUP’s default match mode, which is normally the right choice for identifiers such as SKUs, employee IDs, invoice numbers, and asset tags. The lookup and return columns are specified separately, so the return column may be either to the left or right of the lookup column.
Why this is easier to maintain than a basic VLOOKUP
A VLOOKUP formula combines a selected table range with a numeric return-column position. An illustrative formula such as =VLOOKUP(A2,F:H,3,FALSE) means “search the first column of F:H and return column 3 from that range.” If someone changes the selected range or inserts a column within it, that column number deserves a fresh check.
XLOOKUP names the search column and return column directly. In the Products example, inserting a Description column does not change the meaning of Products[Price]. VLOOKUP remains a reasonable compatibility choice where older Excel versions are required, but it requires the lookup value to be in the first column of its table array. Microsoft’s VLOOKUP reference documents that first-column requirement and its column-index syntax.
Make missing values visible without hiding other problems
The fourth argument is useful because a blank or a generic error can be misread as a valid result. A message such as "SKU not found" tells the person reviewing the sheet what needs attention.
Use that argument only for the no-match case. Do not use a broad error-hiding pattern to conceal every problem. A misspelled table name, an invalid reference, or a calculation error needs investigation; it is not evidence that an SKU is absent.
Choose match and search modes deliberately
| Need | Useful XLOOKUP setting | Important condition |
|---|---|---|
| Find an ID exactly | Omit match_mode, or use 0 | Best default for unique identifiers. |
| Find a band or threshold | -1 next smaller, or 1 next larger | Use only when the return rule is explicitly based on thresholds, such as a commission band. |
| Find text by pattern | 2 wildcard match | * means any sequence, ? means one character, and ~ escapes a wildcard. |
| Return the last matching record | Set search_mode to -1 | The source must be ordered so the last occurrence truly represents the record you need. |
For example, an ordered activity log may need the latest status recorded for an ID: =XLOOKUP(A2,Log[SKU],Log[Status],"SKU not found",0,-1). Here, 0 requests an exact match and -1 searches from the bottom upward. This returns the last matching row; it does not prove that duplicate records are appropriate or that the latest row is the right business answer.
Check the data before trusting the result
A syntactically correct formula can still return the wrong answer. The most common cause is an unstated assumption: that every lookup key is unique and formatted consistently. For instance, a text value of 00125 may not be equivalent to a numeric value of 125 for the purpose you intend, and a trailing space can prevent an otherwise visible match.
- Confirm that the lookup value and the key column use the intended data type and have no hidden leading or trailing spaces.
- Check whether the key column is supposed to be unique. If it is not, document which occurrence should be returned.
- Verify the return column by its table header, especially after a table has been edited.
- Test one known matching ID and confirm the returned value against the source row.
- Test one known missing ID and confirm that the not-found message appears.
- Before distributing the workbook, confirm that collaborators have an Excel version that supports XLOOKUP.
Use exact-match XLOOKUP with table columns for ordinary reference lookups, then treat exceptions as data decisions. A reverse search can be appropriate for a properly ordered log, while an approximate match can be appropriate for a documented threshold table. Neither option repairs ambiguous data. The formula should express a rule you can explain, not merely produce a non-error result.
Sources
- Microsoft Support: XLOOKUP function
- Microsoft Support: Using structured references with Excel tables
- Microsoft Support: VLOOKUP function