INDEX Function in Google Sheets: Formula, Examples & Troubleshooting
Learn the INDEX formula in Google Sheets: return the value at a position inside a range, with reproducible examples, expected answers and compatibility cautions.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
Quick answer: INDEX returns values at relative row and column positions in a supplied range. In Google Sheets, both position arguments are optional and default to 0; a zero dimension selects the entire corresponding row or column.
Availability and version history
- Introduced: Introduction version not established by the official history reviewed.
- Availability: Documented in the rolling Google Sheets service; examples use the web spreadsheet workflow.
- Checked: October 14, 2026; official INDEX reference. Documentation check, not a new native test; existing example-verification notes retain their scope.
Syntax and original practice data
=INDEX(reference, [row], [column])
Square brackets mark optional arguments and are not typed. Examples use English function names and comma separators; review File → Settings → Locale when comparing punctuation-sensitive formulas. Enter the original data below in A1:F9, with the Row column used only as an explanatory label. Amount and Units are numbers; other fields are text. Keep outputs outside the input table.
| Row | A · Item | B · Team | C · Status | D · Amount | E · Units | F · Agent |
|---|---|---|---|---|---|---|
| 1 | Item | Team | Status | Amount | Units | Agent |
| 2 | Pen | East | Paid | 120 | 12 | Ana |
| 3 | Pad | West | Pending | 75 | 5 | Bo |
| 4 | Box | East | Paid | 210 | 7 | Ana |
| 5 | Tape | North | Paid | 90 | 0 | Cy |
| 6 | Folder | West | Paid | 150 | 3 | Bo |
| 7 | Pen | East | Pending | 60 | 8 | Dee |
| 8 | Pad | West | Paid | 125 | 12 | Ana |
| 9 | Box | North | Pending | 80 | 4 | Cy |
Two original worked examples
=INDEX(D2:D9,3)
=INDEX(A2:D9,2,2)
Expected results are 210 and West. The first selects the third row of a single-column range. Its omitted column defaults to zero, meaning all columns of that selected row; since the range is only one column wide, there is just one returned value.
The second selects the second row and second column within A2:D9, namely B3. Positions count from the supplied range, not from the top-left corner of the entire worksheet.
Optional positions are a substantive syntax detail
The earlier syntax on this page treated row as required. Google’s dedicated reference makes both row and column optional, each defaulting to zero. Positive positions choose the specified row or column; zero selects the complete corresponding dimension.
Use explicit positions when you intend a single value. =INDEX(D2:D9,3,1) makes the first original scalar control’s column choice explicit and still returns 210. The captured Sheets signature has three arguments; do not import Excel’s separate fourth-area selector into it.
Advanced example: return a complete row
=INDEX(A2:D9,2,0)
Expected one-row output is:
| First cell | Second cell | Third cell | Fourth cell |
|---|---|---|---|
| Pad | West | Pending | 75 |
These column labels are explanatory, not extra output cells. Leave four adjacent destination cells available, and place the formula away from A1:F9. Google explicitly demonstrates this zero-column row-return behavior.
Changing the row position to 3 returns Box, East, Paid, 210. This is one selected record with four fields, not four matching records.
Advanced example: return a complete column
=INDEX(A2:D9,0,4)
Expected eight-row output is 120,75,210,90,150,60,125,80, in that order. It is the Amount column without the heading because the input starts at row 2.
Changing the reference to A1:D9 would include the Amount heading in the selected column. Range boundaries determine whether headings are returned; INDEX does not identify and remove them automatically.
A numeric aggregate can consume the chosen column:
=SUM(INDEX(A2:D9,0,4))
Expected total: 910. The sum is a separate operation; INDEX itself simply selects the column. Keep array output space clear and inspect any expansion error in the Sheets cell tooltip rather than importing a desktop array-entry shortcut.
Advanced example: a unique-key lookup to the left
On a separate sheet enter A1:C5:
| Item | Amount | ID |
|---|---|---|
| Clip | 28 | U-103 |
| Pad | 16 | U-101 |
| Box | 45 | U-104 |
| Tape | 20 | U-102 |
=INDEX(A2:A5,MATCH("U-104",C2:C5,0),1)
Expected result: Box. MATCH returns position 3 within the ID column, and INDEX returns position three from the aligned Item column to its left. There is no VLOOKUP-style requirement that the key occupy the first column of one combined table.
A return range accidentally beginning at A1 would select Pad rather than Box. Matching range lengths alone is insufficient: both ranges must represent the same records in the same order.
Advanced example: resolve both record and field
For that same unique-key table:
=INDEX(A2:C5,MATCH("U-104",C2:C5,0),MATCH("Amount",A1:C1,0))
The row position is 3 and the column position is 2, giving expected result 45. Changing the requested field to Item makes the column position one and returns Box.
Google demonstrates this two-way INDEX/MATCH design directly. Unique keys and unique headings make the worked interpretation unambiguous; duplicate-key tie policies need their own evidence and testing.
Errors, migration and scope
Before blaming the function, compare the relative position with the actual dimensions, verify the header convention, and check whether zero has intentionally requested multiple values. The dedicated reference does not establish a complete native error-code or fractional/text/negative-index matrix, so those are separate validation cases here.
A workbook imported from Excel may contain reference-form syntax or array-entry assumptions that do not match this documented Sheets interface. Review the converted formula inside Sheets. These examples use the rolling web worksheet service and make no desktop-release claim.
Product-specific verification
Related guides already published for this function: Microsoft Excel
A corresponding guide establishes separate documentation, not guaranteed identical defaults or file-conversion behavior. See the function comparison tool and editorial testing standards.
The full manuscript, original source table and all original formulas were reviewed on October 14, 2026. New outputs were independently modeled from explicit inputs. The previously approved availability/history section is retained exactly. No native Google Sheets execution or complete type/error matrix is claimed.