Excel
INDEX function in Excel
Uses an index to choose a value from a reference or array
=INDEX(array, row_num, [column_num])INDEX syntax and parameters
Three arguments, two required.
- arrayarrayRequired
- row_numnumberRequired
- column_numnumberOptional
INDEX examples
Formulas you'll actually reuse.
The classic INDEX/MATCH — the amount on the row where the customer matches:
=INDEX(C2:C200, MATCH("Acme Corp", A2:A200, 0))Result
12400Two-way lookup: the row from a customer name, the column from a header:
=INDEX(A2:F200, MATCH(H2, A2:A200, 0), MATCH(H3, A1:F1, 0))Result
"Paid"
INDEX in Google Sheets
Same name — your formula ports as-is.
Try INDEX in the playground
Edit the example — nothing to install.
Preloaded with the INDEX formula from Example 1 — change anything and watch it respond.
Loading the editor…
INDEX errors
What they mean — and the fixes.
#REF!row or column is outside the array — INDEX counts from 1 inside the range you passed, not from the sheet's own row numbers.
Related functions
More ways Excel gets this done.
- ADDRESSReturns a reference as text to a single cell in a worksheetLookupGoogle Sheets
- AREASReturns the number of areas in a referenceLookupNo Google Sheets equivalent
- CHOOSEChooses a value from a list of valuesLookupGoogle Sheets
- CHOOSECOLSReturns the specified columns from an arrayLookupGoogle Sheets
- CHOOSEROWSReturns the specified rows from an arrayLookupGoogle Sheets
- COLUMNReturns the column number of a referenceLookupGoogle Sheets