You can use the following syntax to use the INDEX and MATCH functions across multiple columns in Excel:
This particular formula will look up the value in cell F2 in the range B2:D5 and then return the corresponding value in the range A2:A5.
The following example shows how to use this syntax in practice.
Example: How to Use INDEX MATCH Across Multiple Columns in Excel
Suppose we have the following dataset in Excel that shows the names of basketball players in various positions on four different teams:
Now suppose we create another column that contains the name of each player:
Now suppose we would like to look up the name of each player and return the name of their team.
We can type the following formula into cell G2 to do so:
We can then click and drag this formula down to each remaining cell in column G:
Column G returns the name of the team that corresponds to each player name in column F.
- The formula looks up Andy in the range B2:D5 and returns Mavs.
- The formula looks up Bob in the range B2:D5 and returns Warriors.
- The formula looks up Chad in the range B2:D5 and returns Kings.
And so on.
The following tutorials explain how to perform other common operations in Excel: