How can I look up an item’s description from its unique inventory code?
Quick answer
Keep inventory codes and descriptions in separate columns, with each code and its description on the same row. In Excel, use XLOOKUP to search the code column and return the description from the matching row. Add a not-found message, then check that the code is in the searched range and that codes are unique. XLOOKUP returns the first match it finds. [S1]
The question, the details, the next step.
A practical checklist
Keep each code and its description together on one row under clear column headings.
Identify the lookup cell and the code and description ranges.
Use a not-found message and ensure both ranges cover the intended records.
Check for duplicate codes and resolve them before relying on results.
For a missing match, inspect the entered code, range boundaries, and source table.
Try a known code and a code expected to be absent.
A few more useful answers
Does XLOOKUP require an approximate match for inventory codes?
No. Exact match is the default for XLOOKUP, so the example uses that behavior without an extra match-mode argument. [S1]
What does “No match” tell me?
It means the lookup did not find the code in the range it searched. Check the code and range, then confirm whether the record is in the source table.
What if the same inventory code appears more than once?
XLOOKUP returns the first match it finds. [S1] Review duplicate rows and determine which record should be authoritative before relying on the returned description.
Can I use this formula in Excel 2016 or Excel 2019?
XLOOKUP is not available in Excel 2016 or Excel 2019. [S1] Check the lookup options supported by your spreadsheet version.
Sources
References used for this guide.
- [S1] XLOOKUP function in Excel support.microsoft.com · Checked
