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.
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.
- 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)
Size (Cell H7)
Price (Cell H8)
√ 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)
Size (Cell H7)
Price (Cell H8)
√ Note: The column_num is omitted as there is only one column in the return_range.
Explanation of the formula
Here we use the formula below as an example:
- 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.
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.
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.
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
- 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.