The first time most people see an INDEX MATCH formula, it looks like something only an IT person could write. Two functions, one inside the other, brackets everywhere.
But people who use it every day don’t remember it as one long formula. It’s two small formulas that each do one simple job. Learn them separately, then join them, and it stops looking scary. That’s the order we’ll follow here.
By the end you’ll be able to do this, which plain VLOOKUP can’t do at all:

Pick a salesperson, pick a month, and the formula returns the number where that row and that column meet. We’ll get there in four steps. All the sheets shown here are in a practice file you can download at the end of the post.
Piece 1: INDEX gives you the value at a position
INDEX answers one question: what is in position number X of this list?
“Go to A2:A9 and give me the 5th item.” Count down five cells from A2 and you land on Clutch Plate, so that’s what INDEX returns.

INDEX can also work on a full table if you give it a row number and a column number. =INDEX(A2:E9,5,4) means 5th row, 4th column of that block, which is the stock of the clutch plate: 9.
On its own, INDEX isn’t very useful, because you rarely know the position number. That’s where the second piece comes in.
Piece 2: MATCH finds the position for you
MATCH does the opposite job. You give it a value, and it tells you where that value sits in a list.
G2 has the code BP-107. MATCH looks down the Part Code column and finds it in the 7th cell, so the answer is 7. It doesn’t return the code or anything next to it, only the position number.

Two details in the screenshot:
- The 0 at the end matters. It means exact match. If you leave it out, MATCH assumes 1, which expects sorted data and can quietly return the wrong position.
- Not found means #N/A. BP-120 doesn’t exist in the list, so MATCH has no position to give.
Now put MATCH inside INDEX
Look at the two pieces again. INDEX needs a position number. MATCH produces a position number. So instead of typing the 5 into INDEX by hand, we let MATCH work it out:
Excel solves the inside first. MATCH finds BP-106 in the Part Code column and returns 6. The formula then becomes =INDEX($A$2:$A$9,6), and INDEX hands back the 6th part name: Chain Sprocket Kit.

Look at where the columns are. The code we searched for is in column E, and the name we wanted is in column A, to its left. VLOOKUP can’t do that, because it only searches the first column and only returns values to the right. INDEX MATCH doesn’t care which side anything is on.
Want the rate instead of the name? Only the INDEX range changes. The MATCH part stays exactly the same:
=INDEX(column to return, MATCH(what you have, column to search, 0))Both columns must start and end on the same rows.
Row and column together: the two-way lookup
This is the example from the top of the post. Your data is a grid: salespeople down the side, months across the top. You want one number from the middle.

INDEX can take a row number and a column number, so we give it two MATCH formulas, one for each direction:
The first MATCH looks for Faisal in the names column and returns 3. The second looks for Jul across the month headers and returns 4. INDEX then goes to the 3rd row and 4th column of the sales block and returns 180,250.
Change J2 to Ritu or J3 to Sep and the answer updates instantly. The same setup works for transport rate cards (city by vehicle type), price lists by size and colour, and attendance sheets by employee and date. Any time the answer sits where a row meets a column, this is the formula.
Do you still need this if you have XLOOKUP?
If you and everyone you share files with are on Microsoft 365 or Excel 2021 and newer, XLOOKUP does most of these jobs with a shorter formula. I’ve compared it with VLOOKUP in a separate post.
But INDEX MATCH has one big advantage: it works in every version of Excel people still use, including 2016 and 2019, and in Google Sheets too. If you build templates for other people, or you work in an office where machines run different versions, it’s the safer choice. You’ll also run into it in plenty of older office files, so it helps to be able to read it. If you’re still getting comfortable with lookups in general, start with my VLOOKUP guide and come back here.
When it gives the wrong answer
You get #N/A. MATCH couldn’t find the value. Check for spelling differences or an extra space at the end of the code. A number stored as text (or text that looks like a number) also won’t match.
You get a value, but from the wrong row. Your INDEX range and MATCH range probably start on different rows, for example A2:A9 in INDEX and E1:E9 in MATCH. MATCH then counts from a different starting point and everything shifts by one.
You get #REF!. The position MATCH returned is bigger than the INDEX range. Usually this means the INDEX range is shorter than the MATCH range. Make them the same size.
It works in the first row, then breaks when you drag it down. The ranges aren’t locked. Add dollar signs with F4 so they stay fixed while the lookup cell moves.
Practice file
The workbook has one sheet for each step above, so you can click on any formula and see how it’s built. The last sheet, Practice, gives you three lookups to write yourself: stock for two part codes, and Ritu’s sales for September. Answers are a few rows below.
Write the formulas without looking at this page. If you can build the two-way lookup from memory, you’ve got it. And if you’d like to learn Excel in order, from basics to MIS reports and dashboards, my Advance Excel Course covers it in 90 video chapters in Hindi.