FP

FormulaPilot

Spreadsheet formula tools

Open generator
Excel how-to guide

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.

advancedLookup & ReferenceINDEX reference

Step-by-step instructions

How to index match two way3 steps

1

Enter the data table range (without the row and column headers) as the first argument.

2

Use MATCH to find the row position — look up the row label in the header column.

3

Use a second MATCH to find the column position — look up the column label in the header row.

Example data

Worked example

ProductSmallMediumLarge
Widget A101520
Widget B121825
Widget C81319

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.

Need a custom variation?

Describe your exact spreadsheet problem — get the formula in seconds.

Open AI Formula Generator — Free

Related how-to guides

Continue learning.