ShareYourGroupShareYourGroupExcel Formulas

Lookup functions

INDEX function in Excel

INDEX returns the value at a given row and column position inside a range.

INDEX answers a simple question: "what is in the 3rd row of this range?" On its own that looks too plain to be useful. Paired with MATCH, which finds positions, it becomes the most flexible lookup tool in Excel, and one that works in every version.

Syntax

=INDEX(array, row_num, [column_num])
ArgumentWhat it is
arrayThe range to take a value from.
row_numThe row inside the range, counted from its top. 1 is the first row.
column_numThe column inside the range, counted from its left. Not needed when the range is a single column.

Examples

Each result below is what Excel itself showed for the formula on the sample sheet.

Sample sheet: A small price list with item codes. The table is sorted by code.
ABCDE
1CodeItemCategoryPriceStock
2A101Basmati Rice 5 kgGrocery65040
3A102Toor Dal 1 kgGrocery16075
4B201NotebookStationery60300
5B202Ball PenStationery100
6C301LED BulbElectronics110200
7C302Power BankElectronics129918
8D401Steel BottleHome45055

How it works

Give INDEX a range and a position, and it returns the cell at that position. For a single column or a single row, one number is enough. For a table, give the row and then the column.

The numbers count from the corner of the range you selected, not from A1. In =INDEX(C10:C20,2) the answer is cell C11.

INDEX and MATCH together

MATCH tells you where something is. INDEX tells you what is at a place. Join them and you have a lookup:

=INDEX(answer_column, MATCH(what_to_find, search_column, 0))

Read it from the inside. MATCH looks for the value in the search column and returns its position, say 6. INDEX then returns the 6th item of the answer column.

This pair beats VLOOKUP in the same ways XLOOKUP does:

And unlike XLOOKUP, it works in Excel 2010, 2013, 2016 and 2019. If a workbook will be opened on older computers, this is the safe choice. The guide INDEX and MATCH step by step builds one slowly.

Two-way lookups

With a second MATCH for the column, INDEX picks the cell where a row label and a column heading meet, as the fifth example shows. This is the tidy way to read from a grid such as a rate chart with weights down the side and zones across the top.

Returning a whole row or column

Use 0 for the row number to get an entire column of the range, or 0 for the column number to get an entire row. =SUM(INDEX(A2:E8,0,5)) adds up the whole fifth column. This is handy when the column to total is chosen by a formula.

Common mistakes

In Google Sheets

INDEX works the same way in Google Sheets.

Related functions

Every result on this page was calculated in Microsoft Excel (version 16.0, build 20326) on 12 November 2026, not typed by hand.

This is an independent help site. It is not connected with or approved by Microsoft. Excel and Microsoft 365 are trademarks of Microsoft Corporation, named here only to say which program a formula is for. The people and figures in the sample sheets are made up.