Basic INDEX MATCH exact

An excel formula to basic index match exact

Related Functions

 Basic INDEX MATCH exact

This example shows how to use INDEX and MATCH to get information from a table based on an exact match.

The formula in cell H6 is:


Which returns 1995, the year the movie Toy Story was released.

How this formula works

This formula uses MATCH to get the row position of Toy Story in the table, and INDEX to retrieve the value at that row in column 2.

MATCH is configured to look for the value in H4 in column B:


Note that the last argument is FALSE, which forces MATCH to perform an exact match.

MATCH finds "Toy Story" on row 4 and returns this number to INDEX. INDEX is configured with the all data in the table for the array. The row number comes from MATCH (4) and the column number is hard coded as 2. Once MATCH returns 4 we have:


Which causes INDEX to retrieve the value at the intersection of the 4th row and 2nd column in the array, which is "1995".

The other formulas in the example are the same except for the column number:

=INDEX(B5:E9,MATCH(H4,B5:B9,FALSE),2) // year =INDEX(B5:E9,MATCH(H4,B5:B9,FALSE),3) // rank =INDEX(B5:E9,MATCH(H4,B5:B9,FALSE),4) // sales

INDEX with a single column

In the example above, INDEX receives an array that contains all data in the table. However, you can easily rewrite the formulas to work with one column only, which eliminates the need to supply a column number:

=INDEX(C5:C9,MATCH(H4,B5:B9,FALSE)) // year =INDEX(D5:D9,MATCH(H4,B5:B9,FALSE)) // rank =INDEX(E5:E9,MATCH(H4,B5:B9,FALSE)) // sales

In each case, INDEX receives an single-column array that corresponds to the data being retrieved, and MATCH supplies the row number.

0 votes. 0 / 5