Note: The other languages of the website are Google-translated. Back to English
English English

Left lookup with INDEX and MATCH

To find out information listed in the left columns in an Excel spreadsheet about a given item which is at the right side, you can use the INDEX and MATCH functions. The combination of the two functions possesses an advantage of looking up values in any column over another Excel’s powerful lookup function, the VLOOKUP.

left index match 1

How to perform a left lookup with INDEX and MATCH?

To fill in the information about the product 30001 which is listed in the rightmost column of the data 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,[match_type]),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: 1, 0 or -1.
    1 or omitted (default), MATCH will find the largest value that is less than or equal to the lookup_value. The values in the lookup_array must be placed in ascending order.
    0, MATCH will find the the first value that exactly equals to the lookup_value. The values in the lookup_array can be placed in any order.
    -1, MATCH will find the smallest value that is greater than or equal to the lookup_value. The values in the lookup_array must be placed in descending order.
  • column_num: The column in the return_range from which you want to retrieve data; The column_num can be omitted if there is only one column in the return_range.

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

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

√ Note: Instead of typing the product ID 30001 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(B5:B9,MATCH(H4,E5:E9,0))
Size (Cell H7)
=INDEX(C5:C9,MATCH(H4,E5:E9,0))
Price (Cell H8)
=INDEX(D5:D9,MATCH(H4,E5:E9,0))

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

left index match 2

Explanation of the formula

Here we use the formula below as an example:

=INDEX(B5:D9,MATCH(H4,E5:E9,0),2)

  • MATCH(H4,E5:E9,0): The match_type 0 asks MATCH to find the location of the exact lookup_value 3001 (the value in the cell H4) in the range E5:E9. The function will return 1.
  • INDEX(B5:D9,MATCH(H4,E5:E9,0),2) = INDEX(B5:D9,1,2): The INDEX function returns the 1st value in the 2nd column (the size column) of the range B5:D9, which is Large.

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

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.

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.

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.


The Best Office Productivity Tools

Kutools for Excel - Helps You To Stand Out From Crowd

Would you like to complete your daily work quickly and perfectly? Kutools for Excel brings 300 powerful advanced features (Combine workbooks, sum by color, split cell contents, convert date, and so on...) and save 80% time for you.

  • Designed for 1500 work scenarios, helps you solve 80% Excel problems.
  • Reduce thousands of keyboard and mouse clicks every day, relieve your tired eyes and hands.
  • Become an Excel expert in 3 minutes. No longer need to remember any painful formulas and VBA codes.
  • 30-day unlimited free trial. 60-day money back guarantee. Free upgrade and support for 2 years.
Ribbon of Excel (with Kutools for Excel installed)

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, Firefox, And New Internet Explorer.
Screen Shot of Excel (with Office Tab installed)
Comments (0)
No ratings yet. Be the first to rate!
There are no comments posted here yet
Leave your comments
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations