How to combine INDEX, MATCH, and MATCH formulas in Excel as a lookup function
Over 1.8 million professionals use CFI to learn accounting, financial analysis, modeling and more. Start with a free account to explore 20+ always-free courses and hundreds of finance templates and cheat sheets.
The INDEX MATCH[1] Formula is the combination of two functions in Excel: INDEX[2] and MATCH[3].
=INDEX() returns the value of a cell in a table based on the column and row number.
=MATCH() returns the position of a cell in a row or column.
Combined, the two formulas can look up and return the value of a cell in a table based on vertical and horizontal criteria. For short, this is referred to as just the Index Match function. To see a video tutorial, check out our free Excel Crash Course.
#1 How to Use the INDEX Formula
Below is a table showing people’s names, height, and weight. We want to use the INDEX formula to look up Kevin’s height… here is an example of how to do it.
Follow these steps:
Type “=INDEX(” and select the area of the table, then add a comma
Type the row number for Kevin, which is “4,” and add a comma
Type the column number for Height, which is “2,” and close the bracket
The result is “5.8.”
#2 How to Use the MATCH Formula
Sticking with the same example as above, let’s use MATCH to figure out what row Kevin is in.
Follow these steps:
Type “=MATCH(” and link to the cell containing “Kevin”… the name we want to look up.
Select all the cells in the Name column (including the “Name” header).
Type zero “0” for an exact match.
The result is that Kevin is in row “4.”
Use MATCH again to figure out what column Height is in.
Follow these steps:
Type “=MATCH(” and link to the cell containing “Height”… the criteria we want to look up.
Select all the cells across the top row of the table.
Type zero “0” for an exact match.
The result is that Height is in column “2.”
#3 How to Combine INDEX and MATCH
Now we can take the two MATCH formulas and use them to replace the “4” and the “2” in the original INDEX formula. The result is an INDEX MATCH formula.
Follow these steps:
Cut the MATCH formula for Kevin and replace the “4” with it.
Cut the MATCH formula for Height and replace the “2” with it.
The result is Kevin’s Height is “5.8.”
Congratulations, you now have a dynamic INDEX MATCH formula!
Video Explanation of How to Use Index Match in Excel
Below is a short video tutorial on how to combine the two functions and effectively use Index Match in Excel! Check out more free Excel tutorials on CFI’s YouTube Channel.
Hopefully, this short video made it even clearer how to use the two functions to dramatically improve your lookup capabilities in Excel.
More Excel Lessons
Thank you for reading this step-by-step guide to using INDEX MATCH in Excel. To continue learning and advancing your skills, these additional CFI resources will be helpful:
Take your learning and productivity to the next level with our Premium Templates.
Upgrading to a paid membership gives you access to our extensive collection of plug-and-play Templates designed to power your performance—as well as CFI's full course catalog and accredited Certification Programs.
Gain unlimited access to more than 250 productivity Templates, CFI's full course catalog and accredited Certification Programs, hundreds of resources, expert reviews and support, the chance to work with real-world finance and research tools, and more.