Category: FUNCTION | Updated: 2026-11-20
How to Use the INDEX Function in Google Sheets | Retrieve a Value by Row and Column Position
How to Use the INDEX Function
The INDEX function is a lookup/reference function that returns the value of a cell at a specified row number from the top and column number from the left within a given cell range.
Syntax
=INDEX(reference, [row], [column])
- reference: The cell range or array from which to retrieve a value (required).
- row: The row offset from the top of
referenceas an integer starting at1(optional; defaults to0). - column: The column offset from the left of
referenceas an integer starting at1(optional; defaults to0).
Table Example
Here is an example of retrieving "Osaka"’s "3Q" sales from the regional quarterly sales table (B2:E4) below.
| Row | Column A (Branch) | Column B (1Q) | Column C (2Q) | Column D (3Q) | Column E (4Q) |
|---|---|---|---|---|---|
| 1 | Branch | 1Q | 2Q | 3Q | 4Q |
| 2 | Tokyo | 500 | 550 | 600 | 720 |
| 3 | Osaka | 320 | 340 | 410 | 450 |
| 4 | Nagoya | 210 | 230 | 250 | 280 |
- Formula:
=INDEX(B2:E4, 2, 3) - Explanation: Within the range
B2:E4, this retrieves the value in cellD3at the intersection of the 2nd row from the top (Osaka) and the 3rd column from the left (Column D, 3Q). - Result:
410
Common Errors and Notes
- Row or column number out of range (
#REF!error): Specifying a number larger than the dimensions ofreference—such asrow=4when the range only has 3 rows—causes a#REF!error. - Negative numbers (
#VALUE!error): Passing a negative number forroworcolumncauses a#VALUE!error. - Do not confuse with sheet-wide row numbers: In
INDEX(B2:E4, ...), row 1 is not row 1 of the sheet, but the first row of the specified range (B2:E2).
Frequently Asked Questions
Q. What happens if I specify "0" for the row or column in INDEX?
A. Specifying "0" for the row returns the entire specified column as an array, while specifying "0" for the column returns the entire specified row as an array.
Q. Which function is INDEX most commonly paired with?
A. The classic pairing is with the MATCH function (INDEX+MATCH). By using MATCH to dynamically find the row or column number and passing it to INDEX, you can perform flexible two-way lookups.