FormulaCamp
Completed
← All functions
Lookup & reference

INDEX

Value at the intersection of a row and a column.

Syntax

INDEX(array, row_num, [column_num])

Example: =INDEX(C2:C100,MATCH(A2,B2:B100,0))

Available in: All versions

INDEX returns the value at a given row (and column) position inside a range. On its own it picks the nth item of a list; combined with MATCH it becomes a flexible lookup that can look in any direction and survives inserted columns.

When to use it

Arguments explained

Worked examples

Third item of a list

A
1City
2Boston
3Denver
4Austin
5Seattle

Formula: C1: =INDEX(A2:A5,3)

Result: Austin

Returns the 3rd cell of A2:A5, which is Austin.

Row and column position

ABC
1RegionQ1Q2
2East120135
3West98110
4North7592

Formula: E1: =INDEX(A1:C4,3,3)

Result: 110

Row 3, column 3 of A1:C4 is the West Q2 figure.

INDEX + MATCH two-way lookup

ABC
1RegionQ1Q2
2East120135
3West98110
4North7592

Formula: E1: =INDEX(B2:C4,MATCH("North",A2:A4,0),MATCH("Q1",B1:C1,0))

Result: 75

The first MATCH finds the row of North (3), the second finds the column of Q1 (1), and INDEX returns the crossing.

Try it

A tiny spreadsheet with example data. Edit the formula or any number and see the result.

Formula in F2: =INDEX(B2:B6,MATCH(104,A2:A6,0))

Example spreadsheet for INDEX
ABCDEF
1IDItemPriceStockResult
2101Pen2.5120Mug
3102Notebook480
4103Lamp2515
5104Mug7.540
6105Backpack3912
Result in F2: Mug
Practice this in a lesson: INDEX + MATCH

Common errors and how to fix them

Related functions

Frequently asked questions

What does INDEX do in Excel?
It returns the value (or reference) at a specified row and column inside a range you give it.
Why use INDEX MATCH instead of VLOOKUP?
The lookup column can be anywhere, inserting columns does not break the formula, and it avoids the fragile column-number argument.
Can INDEX MATCH return multiple results?
A single formula returns one value. For several matches use FILTER in Excel 2021 and Microsoft 365.
What is the difference between INDEX and MATCH?
MATCH finds a position, INDEX turns a position into a value. They are two halves of one lookup.

Practice

More in Lookup & reference