How to index match two way in Excel
Find the price for a specific product and size from a pricing matrix, or retrieve a quarterly budget for a given department and quarter.
Step-by-step instructions
How to index match two way — 3 steps
Enter the data table range (without the row and column headers) as the first argument.
Use MATCH to find the row position — look up the row label in the header column.
Use a second MATCH to find the column position — look up the column label in the header row.
Example data
Worked example
| Product | Small | Medium | Large |
|---|---|---|---|
| Widget A | 10 | 15 | 20 |
| Widget B | 12 | 18 | 25 |
| Widget C | 8 | 13 | 19 |
Common mistakes
Errors to watch out for
MATCH returns
The lookup value does not exist in the header row or column. Check for extra spaces (use TRIM), mismatched case, or verify the lookup value is in the correct range.
Wrong range for the data body
The INDEX range must not include the header row or column — start it one cell inside the headers so row and column positions align correctly.
FAQ
Frequently asked questions
Why use INDEX/MATCH instead of VLOOKUP for two-way lookups?
VLOOKUP can only look up by row, not by column. INDEX/MATCH is the standard solution for intersection lookups because both MATCH calls work independently.
Describe your exact spreadsheet problem — get the formula in seconds.
Open AI Formula Generator — FreeRelated how-to guides