Any legitimate Excel user has used VLOOKUP and knows the syntax by heart. (Lookup Value, Array, Column, etc.) But many of these same users have never used INDEX MATCH before. INDEX MATCH is one of several lookup formulas available in Excel. It has certain features that make it superior to VLOOKUP in many situations. Regardless of which method you think is better, (I have my opinion) it is definitely worth it to learn both formulas and have both at your disposal.

*Click here for a detailed explanation of why INDEX MATCH is better than VLOOKUP*

Please note that INDEX MATCH is designed for vertical lookups, which is the task that VLOOKUP performs. If you need to perform a matrix lookup, consider using one of the more powerful Excel lookup formula combinations such as INDEX MATCH MATCH, OFFSET MATCH MATCH, VLOOKUP MATCH, or VLOOKUP HLOOKUP.

## The VLOOKUP function

First our point of reference: the trusty VLOOKUP formula. VLOOKUP returns a **VALUE** based on a **defined array** and **column reference**. The syntax from Excel is as follows:

=VLOOKUP ( **lookup value** ,** lookup array** , **column** , **range lookup** )

Below is an example of using VLOOKUP to return the value “Shirts” based on the lookup value “1089.” (Please note that, because we input false for that portion of the syntax, we are not using the range lookup feature of VLOOKUP in this example)

Our goal was to lookup the **Product** of **ID** “1089” and VLOOKUP did that without a hitch. So how does INDEX MATCH replicate that functionality?

## The INDEX function

The basic INDEX function returns a **VALUE** based on a** defined array / column** and a **row number**. The syntax from Excel is as follows:

=INDEX ( **array **, **row number** )

Below is an example of using INDEX to return the **value **“Shirts,” assuming that you already know that the value is three cells down on your defined array.

(you also have the option to specify column number, but that isn’t relevant in a basic INDEX MATCH formula)

If you go 3 cells down in the INDEX array, you get the value “Shirts.” But the problem we have when trying to do a lookup is that we typically don’t know what position our return value is located, which in this case is 3. The “3” needs to come from another formula.

## The MATCH function

The basic MATCH function returns a **NUMBER **based on the relative position of a **lookup value** within a **defined array / column**. The syntax from Excel is as follows:

=MATCH ( **lookup value **, **lookup array **, **match type** )

Below is an example of using the MATCH formula to return the position of “1089” within our column reference.

Since “1089” is three cells down in the array, the value “3” is returned.

## INDEX MATCH

When we combine both the INDEX formula and the MATCH formula, the number that the MATCH formula returns becomes the row number for your INDEX formula.

=INDEX ( **array **, **MATCH formula** )

Below is an example of using the INDEX MATCH to return “Product Type” for our lookup value.

As you can see, it returns the same value we got from VLOOKUP.

## Differences Between the Formulas

One of the key difference with INDEX MATCH is that, rather than selecting an entire array table, you are only selecting the lookup column and the return column of what would be a VLOOKUP array. While not a big deal when it comes to simple lookups, this can definitely become a factor if you are dealing with large files that have thousands of lookups. By limiting your arrays to only the lookup and return columns, you reduce the processing load on Excel. The difference is illustrated below.

The other key difference is that INDEX MATCH formulas work as a right to left lookup, whereas VLOOKUP only works left to right. As you can see in the example below, I can use INDEX MATCH to lookup a value that is to the right of my return value using INDEX MATCH. This is not possible with the VLOOKUP formula, as you would have to rearrange your data set, or copy your lookup column so that it is always to the left of your return value.

I reversed our formula by looking up the ID of the “Shirts” Product Type. I just changed our lookup value and swapped the lookup and return columns.

## Remembering It All

A lot of Excel websites do a poor job of explaining how to use INDEX MATCH. I’m not saying my way is any better, but here’s any easy way to remember how to use the formula, if you don’t want to mess with the detailed explanations and know how to use VLOOKUP. Here’s how I think about the formula as I’m typing it in:

=INDEX ( **Column I want a return value from** , MATCH ( **My Lookup Value** , **Column I want to Lookup against** , Enter “0” ))

{ 24 comments… read them below or add one }

← Previous Comments

What a great article, thanks so much for the info, it was really helpful.

I’ve tried to learn index + match from other sites, but only when i got to your site did i actually understand it. Thank you very much for this excellent tutorial!

Agree with others. Best explanation of this I’ve seen. 10/10

brilliant explanation. Thanks

Thanks for the knowledge sharing. This was very valuable and you have explained in a simple way.

thank you keepppppppppp writting

I am trying to figure out how to reference a specific value from a cell that specifies a formula.

Let’s say I have a total of 6 data points, but only use 4 of them to make the curve depending on if I want the lowest or highest values. I want to be able to have a separate cell that spits out the value of the lowest data point used for the slope calibration.

For example my x-values are in A1-6, and the y-values are in B1-6

so in my first cell I have the formula “=slope(B1:4, A1:4)” so that I am only calculating the slope based on the 4 lowest data points.

I want a second cell that references the lowest y-value used based on the range specified in the slope formula.So if my slope is “=slope(B1:4, A1:4)” the result will be the value in B1, but if I change my slope to be “=slope(B3:6, A3:6)” the result will be the value in B3.

Hopefully that makes sense. Please help!

Ok. Extremely useful, thank you. This will replace VLookup for me.

HI

it’s really amazing example of index and match function and also easy to understand anybody thanks for this………….

hi..

i need a help here. Can index match be used to search multiple data in multiple sheets?

if so, you please explain.

Index match made easy. Can u explain the same for multiple criterias

AWESOME

Thanks a million

Thank you, this was very helpful!

I will never look back at Vlookup though i will miss it. index match is the real deal

wow, this was a finely explained & written article. Thank you!

Its really amazing thanks lot

The easiest explanation ever. I was really put off using this function however it’s so easy after your explanation. Many thanks for that.

Great and simple explanation! Well done!

THANKS

Thank you. This is very helpful

Thanks a lot

A trick I use to “remember it all”: First, enter just the MATCH formula. When you get a column of numbers, you’ll know you did it correctly. Then, go into the cell and insert the INDEX formula; the “Column I want a return value from” will be first, then the Match formula you already entered.)

Or, if you like, enter the Match formula in one column, and the Index formula in the column next to it, referring to the Match column.

Saves me a ton of time! Replacing the binary vlookup with this function now.

Thanks!

Nice clear explanation. Thank you!

{ 2 trackbacks }