SheetsLessons
Lookup function

INDEX function in Google Sheets

INDEX returns the value at a given row and column position inside a range. On its own it's simple. Paired with MATCH, it becomes the most flexible lookup in Google Sheets.

Syntax

=INDEX(reference, [row], [column])
reference
The range to pick from.
row
Optional. Row number within the range (1 = first row of the range).
column
Optional. Column number within the range.

Practice INDEX

Task 1 of 4

Use INDEX to return the song in 4th place from the list in B2:B11. Answer in D2.

D2
fx

Tip: while typing a formula, click a cell or drag across cells to insert references. Press Enter to check, and Tab to accept a function suggestion.

INDEX examples

Each example below runs against this sample sheet. The results are calculated by the same engine as the practice grid.

ABCDE
1Emp IDNameDeptEmailSalary
21042Maya PatelFinancemaya.patel@acme.co$72,000.00
31187Leo RossiSupportleo.rossi@acme.co$51,000.00
41305Ava KimSalesava.kim@acme.co$64,000.00
51411Omar AliMarketingomar.ali@acme.co$58,000.00
61520Hana TanakaSaleshana.tanaka@acme.co$69,000.00
Employee directory
FormulaResultWhat it shows
=INDEX(B2:B6, 3)Ava KimThird name in the list.
=INDEX(A2:E6, 2, 5)$51,000.00Row 2, column 5 of the table: Leo's salary.
=INDEX(A1:E1, 4)EmailWith a single row, the number picks a column.
=INDEX(B2:B6, MATCH(1411, A2:A6, 0))Omar AliINDEX MATCH: name for ID 1411.

Tips and common mistakes

  • Positions are relative to the range, not the sheet. Row 1 of B2:B6 is row 2 of the sheet.
  • A position outside the range returns #REF!.

Related functions