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

=INDEX(return_range,MATCH(lookup_value,lookup_array,0),column_num)

  • 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:

=INDEX(C5:E9,MATCH(H4,B5:B9,0),1)

  • 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

Kutools for Excel - Helps You To Stand Out From Crowd

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates  |  Delete Blank Rows  |  Combine Columns or Cells without Losing Data  |  Round without Formula ...
Super VLookup: Multiple Criteria  |  Multiple Value  |  Across Multi-Sheets  |  Fuzzy Lookup...
Adv. Drop-down List: Easy Drop Down List  |  Dependent Drop Down List  |  Multi-select Drop Down List...
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  Compare Columns to Select Same & Different Cells ...
Featured Features: Grid Focus  |  Design View  |  Big Formula Bar  |  Workbook & Sheet Manager | Resource Library (Auto Text)  |  Date Picker  |  Combine Worksheets  |  Encrypt/Decrypt Cells  |  Send Emails by List  |  Super Filter  |  Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters ...)  |  50+ Chart Types (Gantt Chart ...)  |  40+ Practical Formulas (Calculate age based on birthday ...)  |  19 Insertion Tools (Insert QR Code, Insert Picture from Path ...)  |  12 Conversion Tools (Numbers to Words, Currency Conversion ...)  |  7 Merge & Split Tools (Advanced Combine Rows, Split Excel Cells ...)  |  ... and more

Kutools for Excel Boasts Over 300 Features, Ensuring That What You Need is Just A Click Away...

Description


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