Managing massive retail inventory lists often leads to frustrating pricing mismatches and manual data entry exhaustion. Before upgrading to costly software or seeking standard funding sources for corporate IT overhauls, managers should optimize their existing spreadsheets. Utilizing a precise Excel lookup formula grants teams immediate, automated pricing accuracy. However, one key stipulation is that your SKU database must maintain unique identifiers to prevent duplicate mismatches. For instance, applying =XLOOKUP("SKU-102", A2:A100, C2:C100) instantly retrieves the exact price for SKU-102. Below, we outline step-by-step methods to implement these formulas effectively.
In retail, e-commerce, and warehouse management, the Stock Keeping Unit (SKU) is the universal language of inventory. An SKU is a unique alphanumeric code assigned to a specific product to identify its price, manufacturer, size, color, and other details. One of the most common daily tasks for inventory analysts, store managers, and financial teams is looking up a product's price using its SKU.
Excel offers several powerful lookup formulas to automate this process. Whether you are running a legacy version of Excel or using the cutting-edge Microsoft 365, this guide will walk you through the best methods to retrieve product prices using SKUs. We will cover the classic VLOOKUP, the flexible INDEX & MATCH combination, and the modern, robust XLOOKUP.
To understand how these formulas work, let us establish a standard sample dataset. Imagine we have an inventory sheet containing the following table in the range A1:E6:
| Row (A-E) | Column A (SKU) | Column B (Product Name) | Column C (Category) | Column D (Price) | Column E (Stock Qty) |
|---|---|---|---|---|---|
| 2 | SKU-1001 | Wireless Mouse | Electronics | $25.00 | 150 |
| 3 | SKU-1002 | Mechanical Keyboard | Electronics | $85.00 | 75 |
| 4 | SKU-1003 | Ergonomic Chair | Office Furniture | $199.99 | 20 |
| 5 | SKU-1004 | USB-C Hub | Electronics | $45.00 | 300 |
| 6 | SKU-1005 | LED Desk Lamp | Office Supplies | $35.00 | 120 |
Our objective is simple: enter an SKU into a search cell (e.g., cell G2) and display the corresponding product price in cell H2.
The VLOOKUP (Vertical Lookup) function is the most famous lookup tool in Excel history. It searches for a specified value in the first column of a table and returns a value in the same row from a specified column to the right.
=VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])
To look up the price of SKU-1003 using our sample data:
G2.H2, enter the following formula:
=VLOOKUP(G2, A2:E6, 4, FALSE)
H2 will return $199.99.G2 (lookup_value): This is the value we are searching for ("SKU-1003").A2:E6 (table_array): This is the entire data range where Excel will search.4 (col_index_num): Since our Price column is the fourth column in our selected range (Column A is 1, B is 2, C is 3, D is 4), we enter 4.FALSE (range_lookup): This forces Excel to find an exact match. If the SKU is not found, it returns an error instead of a wrong price. Always use FALSE or 0 for SKU lookups!While reliable, VLOOKUP has two main weaknesses: it can only search from left to right (the SKU column must always be the leftmost column in your data range), and inserting or deleting columns inside your table can break the formula because the hardcoded column index number (e.g., 4) does not adjust automatically.
If you are using Microsoft 365, Office 2021, or Excel for the Web, XLOOKUP is the ultimate lookup tool. It was specifically designed to replace VLOOKUP by fixing all of its inherent limitations.
=XLOOKUP(lookup_value, lookup_array, return_array, [if_not_found], [match_mode], [search_mode])
Using the same dataset, to look up the price of the SKU in cell G2:
H2 and enter the following formula:
=XLOOKUP(G2, A2:A6, D2:D6)
H2 will output $199.99.D2:D6), adding or deleting columns in our sheet will never break the formula.=XLOOKUP(G2, A2:A6, D2:D6, "SKU Not Found").For large databases or older versions of Excel (like Excel 2010, 2013, or 2016) that do not support XLOOKUP, the combination of INDEX and MATCH is the professional standard.
This method nests the MATCH function (which finds the row number of a value) inside the INDEX function (which retrieves a value from a specific row and column range).
=INDEX(return_column, MATCH(lookup_value, lookup_column, 0))
To lookup the price using INDEX and MATCH in our sheet:
H2, enter the following formula:
=INDEX(D2:D6, MATCH(G2, A2:A6, 0))
MATCH(G2, A2:A6, 0): Searches the SKU column (A2:A6) for the SKU in G2 ("SKU-1003"). The 0 specifies an exact match. It finds the SKU in the 3rd row of that range and outputs 3.INDEX(D2:D6, 3): Looks at the price column (D2:D6) and retrieves the value from the 3rd row, which is $199.99.Like XLOOKUP, this formula does not care if the price column is to the left or right of the SKU column, and it does not break when columns are inserted or deleted.
When working with large datasets, lookup formulas will occasionally fail. Understanding how to troubleshoot these failures is essential.
This means Excel could not find the lookup SKU. To prevent ugly error codes on your dashboard, wrap your formulas in the IFERROR function to display a clean warning:
=IFERROR(VLOOKUP(G2, A2:E6, 4, FALSE), "SKU Not Found")
Sometimes, SKUs consist entirely of numbers (e.g., 1001034). If your lookup cell is formatted as "Text" but your main database table stores those SKUs as "Numbers" (or vice versa), Excel will fail to find a match. Ensure both the source lookup table and search cells have identical data formatting.
An SKU that looks like "SKU-1001" might actually be stored as "SKU-1001 " (with a trailing space). To fix this database-wide issue, use the TRIM function to clean up any unwanted spaces before searching.
Disclaimer:
The documents and templates provided on this page are for informational and illustrative purposes only. They do not constitute professional, legal, or financial advice, and should not be relied upon as such. Because individual circumstances and regulatory requirements vary, these materials may not be suitable for your specific needs. We recommend consulting with a qualified professional before adapting or using any of these examples for official or commercial purposes.