Skip to main content

Exact match with INDEX and MATCH

If you need to find out the information listed in Excel about a specific product, movie or a person, etc., you should make a good use of the combination of INDEX and MATCH functions.

exact index match 1

How to find exact matches with INDEX and MATCH?

To fill in the information about a specific product as shown in the screenshot above, the INDEX and MATCH functions will help you in this way: MATCH will find the correct row for the given product ID, and INDEX will then find the corresponding information on the same row.

Generic syntax


  • return_range: The range where you want the combination formula to return the information from. Here refers to the color, size and price ranges.
  • lookup_value: The value MATCH used to locate the position of the corresponding information. Here refers to the given product ID.
  • lookup_array: The range of cells where the lookup_value is listed. Here refers to the product ID range.
  • match_type 0: Forces MATCH to find the first value that exactly equals to the lookup_value.
  • column_num: The column in the return_array from which you want to retrieve data; The column_num can be omitted if there is only one column in the return_array.

To fill in the information about the product 30003, please copy or enter the formulas below in the corresponding cells, and press ENTER to get the results:

Color (Cell H6) =INDEX(C5:E9,MATCH(H4,B5:B9,0),1)
Size (Cell H7) =INDEX(C5:E9,MATCH(H4,B5:B9,0),2)
Price (Cell H8) =INDEX(C5:E9,MATCH(H4,B5:B9,0),3)

√ Note: Instead of typing the product ID 30003 in the formulas, we used the cell reference H4 since we want the formulas to be dynamic. In this way, we can easily get the information about other products by only changing the product ID in the cell H4.

Or, you can narrow the return_range down to one column by only selecting the single color, size or price range. In this way, you will get the formulas like this:

Color (Cell H6) =INDEX(C5:C9,MATCH(H4,B5:B9,0))
Size (Cell H7) =INDEX(D5:D9,MATCH(H4,B5:B9,0))
Price (Cell H8) =INDEX(E5:E9,MATCH(H4,B5:B9,0))

√ Note: The column_num is omitted as there is only one column in the return_range.

exact index match 2

Explanation of the formula

Here we use the formula below as an example:


  • MATCH(H4,B5:B9,0): The match_type 0 forces MATCH to find the location of the exact lookup_value 3003 (the value in the cell H4) in the range B5:B9. So, the function will return 3.
  • INDEX(C5:E9,MATCH(H4,B5:B9,0),1) = INDEX(C5:E9,3,1): The INDEX function returns the 3rd value in 1st column (which is the color column) of the range C5:E9, which is Blue.

Related functions

Excel INDEX function

The Excel INDEX function returns the displayed value based on a given position from a range or an array.

Excel MATCH function

The Excel MATCH function searches for a specific value in a range of cells, and returns the relative position of the value.

Related Formulas

Case-Sensitive Lookup

You may know that you can combine the INDEX and MATCH functions, or use the VLOOKUP function to lookup values in Excel. However, the lookups aren’t case-sensitive. So, in order to perform a case-sensitive match, you should take advantage of the EXACT and CHOOSE functions.

Approximate match with INDEX and MATCH

There are times when we need to find approximate matches in Excel to evaluate employees' performance, grade students’ scores, calculate postage based on weight, etc. In this tutorial, we will talk about how to use the INDEX and MATCH functions to retrieve the results we need.

Lookup closest match value with multiple criteria

In some cases, you may need to lookup the closest or approximate match value based on more than one criteria. With the combination of INDEX, MATCH and IF functions, you can quickly get it done in Excel.

The Best Office Productivity Tools

Office Tab - Enable Tabbed Reading and Editing in Microsoft Office (include Excel)

  • One second to switch between dozens of open documents!
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Brings Efficient Tabs to Office (include Excel), Just Like Chrome, Edge and Firefox.
Comments (0)
No ratings yet. Be the first to rate!
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
Rate this post:
0   Characters
Suggested Locations