#1 Data Analytics Program in India
₹2,499₹1,499Enroll Now
Module 2
6 min

INDEX MATCH

The powerful alternative to VLOOKUP

INDEX MATCH - Two Functions That Work Together

INDEX and MATCH are like a team. Together, they can find anything in your data!

INDEX MATCH Overview


What Problem Does This Solve?

Imagine you have a list of 100 products. Someone asks: "What is the price of Banana?"

You need to:

  1. Find where "Banana" is in the list
  2. Get the price from that same row

INDEX MATCH does both steps automatically!


Part 1: Understanding INDEX

INDEX picks a value from a list by position.

Formula: =INDEX(list, position_number)

INDEX Example

Example

A (Fruit)
Apple
Banana
Orange
3 rows

Get the 2nd fruit:

=INDEX(A1:A3, 2) → "Banana"

Think of it as: "Give me item number 2 from this list"

Practice: Get Value by Position

Easy

Use INDEX to get the 3rd value from the list in A1:A4.

A
B
C
D
E
F
1
2
3
4
5
6

Part 2: Understanding MATCH

MATCH finds the position of a value in a list.

Formula: =MATCH(what_to_find, where_to_look, 0)

The 0 means "exact match" - always use it!

MATCH Example

Example

A (Fruit)
Apple
Banana
Orange
3 rows

Find position of "Banana":

=MATCH("Banana", A1:A3, 0) → 2

This means "Banana is in position 2"

Practice: Find Position

Easy

Use MATCH to find the position of "Blue" in A1:A4.

A
B
C
D
E
F
1
2
3
4
5
6

Part 3: Combine Them!

Now use both together:

  1. MATCH finds the position
  2. INDEX gets the value at that position

INDEX MATCH Combined

Example: Find Price

A (Product)B (Price)
Apple50
Banana30
Orange40
3 rows

Find price of "Banana":

=INDEX(B1:B3, MATCH("Banana", A1:A3, 0))

How it works:

  1. MATCH("Banana", A1:A3, 0) → 2 (Banana is in row 2)
  2. INDEX(B1:B3, 2) → 30 (Get price from row 2)

Result: 30

Practice: INDEX MATCH Combo

Easy

Find the price of "Orange" using INDEX MATCH. Products in A1:A3, Prices in B1:B3.

A
B
C
D
E
F
1
2
3
4
5
6

Why This is Better Than VLOOKUP

Can Search Backwards!

A (Price)B (Product)
50Apple
30Banana
40Orange
3 rows

Find price of "Banana" (price is LEFT of product):

=INDEX(A1:A3, MATCH("Banana", B1:B3, 0)) → 30

VLOOKUP cannot do this! INDEX MATCH can.


Step-by-Step Guide

Formula: =INDEX(answer_column, MATCH(find_this, search_column, 0))

  1. answer_column: Where is the answer? (Price column)
  2. find_this: What are you looking for? ("Banana")
  3. search_column: Where to search? (Product column)
  4. 0: Always use 0 for exact match

Quick Reference

FunctionWhat It DoesExample
INDEXGet value by position=INDEX(A1:A10, 5)
MATCHFind position of value=MATCH("Apple", A1:A10, 0)
INDEX MATCHFind and get value=INDEX(B:B, MATCH("Apple", A:A, 0))
3 rows

Common Mistakes

MistakeWhy It's WrongHow to Fix
Forget the 0 in MATCHGets wrong resultsAlways add 0: MATCH(value, range, 0)
Swap INDEX rangesReturns wrong dataFirst range = answer column
Different sized rangesCauses errorsMake sure both ranges have same rows
3 rows

Summary

INDEX: Gets value at position

  • =INDEX(A1:A10, 3) → Get 3rd item

MATCH: Finds position of value

  • =MATCH("Apple", A1:A10, 0) → Where is Apple?

Together:

  • =INDEX(B:B, MATCH("Apple", A:A, 0))
  • Find "Apple" in column A, return value from column B

This combo is powerful and flexible!

SkillsetMaster - AI, Web Development & Data Analytics Courses