logo
search
Function Problems

How to Match Products to SKUs in Excel using INDEX and MATCH

Rana GarciaRana Garcia Oct 1, 2026 870 views

Question details

The user needs to retrieve a specific product name that corresponds to a given SKU using Excel formulas, and may be encountering a #NAME? error.

How to Match Products to SKUs in Excel using INDEX and MATCH
Product
Excel
Device & OS
not provided
Scenario
Looking up product details from an inventory list based on a matching SKU code.
Observed behavior
The user wants to find the correct lookup formula to match data, and needs to resolve a #NAME? error caused by misspelled, unsupported functions, or incorrect separators.
Before you start

Before applying your formula, ensure that your SKU numbers are formatted consistently (either all text or all numbers) in both the source list and the lookup cell to prevent mismatched #N/A errors.

Solution 1Recommended

Use INDEX and MATCH to Find Product Names

This classic combination works across all versions of Excel and is highly flexible, allowing you to look up data to the left or right of your target column.

The MATCH function finds the position of your SKU in a list, and the INDEX function retrieves the product name from that exact position.

1
Identify your data ranges

Locate the column containing your SKUs (e.g., A2:A100) and the column containing your product names (e.g., B2:B100).

2
Select the destination cell

Click on the cell where you want the matched product name to be displayed (for example, E2).

3
Enter the formula

Type the formula =INDEX($B$2:$B$100,MATCH(D2,$A$2:$A$100,0)) where D2 is the specific SKU you are searching for. The '0' in the MATCH function ensures an exact match.

4
Apply and fill

Press Enter to see the result. You can then drag the fill handle down to apply this formula to other SKUs.

Use INDEX and MATCH to Find Product Names
Absolute References: Using dollar signs ($) locks the ranges so they don't shift when you drag the formula down to other rows.
Advanced Formula Support

Effortlessly Look Up Data with WPS Spreadsheet

WPS Spreadsheet fully supports advanced lookup functions, including INDEX, MATCH, and the modern XLOOKUP. It is a seamless, highly compatible tool for managing your inventory and matching SKUs without errors.

  1. 1. Open your data file: Launch WPS Spreadsheet and open the inventory file containing your SKUs and product names.
  2. 2. Select your cell: Click on the cell where you want to retrieve the matched product data.
  3. 3. Input the formula: Type in your preferred formula, such as =XLOOKUP(D2, A2:A100, B2:B100).
  4. 4. Apply to all rows: Hit Enter, then drag the bottom-right corner of the cell down to automatically match the rest of your SKUs.
100% compatible with Microsoft Excel formulas and functionsFully supports XLOOKUP, INDEX, and MATCH out of the boxBuilt-in error checking to help you easily spot #NAME? or #N/A errorsLightweight, fast, and free to use for daily data tasks
microsoft office alternative - wps office

Frequently Asked Questions

Why does my INDEX and MATCH formula return #N/A?

The #N/A error means the lookup value (SKU) could not be found in the lookup array. This often happens if there are trailing spaces in your data or if numbers are formatted as text in one column but as numbers in the other. Using the TRIM function can help clean your data.

Can I use INDEX and MATCH to look up data to the left of the SKU?

Yes. Unlike VLOOKUP, which only searches from left to right, INDEX and MATCH can retrieve data in any column, regardless of whether it is located to the left or the right of the lookup column.

Is XLOOKUP available in older versions of Excel?

No, XLOOKUP is only available in Microsoft 365, Excel 2021, and newer versions. If you are using Excel 2019 or earlier, you will get a #NAME? error and should use INDEX and MATCH instead.

What does the '0' mean at the end of the MATCH formula?

The '0' specifies the match type. It tells the MATCH function to find the exact value. If you omit it, the formula defaults to an approximate match, which can return incorrect product names for your SKUs.