Contact

INDEX Function in Microsoft Excel: Formula, Examples & Troubleshooting

Lookup Intermediate Microsoft Excel

Learn the INDEX formula in Microsoft Excel: 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 retrieves a value or reference using positions relative to its input. The array form can return a scalar, row or column; the reference form also has an optional area selector. Zero is a whole-dimension selector, not a request for a worksheet row numbered zero.

Availability and version history

  • Introduced: Introduction version not established by the official history reviewed.
  • Availability: Official help lists Excel for Microsoft 365, Excel for Microsoft 365 for Mac, Excel 2024, Excel 2024 for Mac, Excel 2021, Excel 2021 for Mac, Excel 2019, Excel 2016.
  • 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(array, row_num, [column_num])
=INDEX(reference, row_num, [column_num], [area_num])

Square brackets mark optional arguments and are not typed. Examples use English function names and comma separators. 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 formula outputs outside the source 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. D4 is the third entry of D2:D9, while B3 is the second row and second column of A2:D9. The first formula uses a single-column input, so its column position can be omitted.

In the array form, Microsoft permits the corresponding index to be omitted for a one-row or one-column input. For a two-dimensional selection, supply the intended row and column rather than assuming an omitted dimension always means one scalar.

Advanced check: include or exclude headers deliberately

=INDEX(A1:F9,1,4)
=INDEX(A2:F9,1,4)
=INDEX(A2:F9,3,4)

Expected results are Amount,120 and 210. The first includes the header row; the latter two begin with the first order. An absolute worksheet address and a relative index describe different coordinate systems.

The same principle applies after moving a table to another part of a worksheet. An index of three still selects the third row of its supplied range, not worksheet row 3.

Advanced example: find a row and return to its left

=INDEX(D2:D9,MATCH("Box",A2:A9,0))
=INDEX(A2:A9,MATCH(150,D2:D9,0))

Expected results are 210 and Folder. The first uses the first exact Box position, 3. The second finds the unique amount 150 at position 5 and returns its item from column A, to the left of the searched amount column.

The lookup and return ranges contain the same eight records in the same order. INDEX does not automatically realign independent ranges by a key; MATCH supplies a position whose meaning depends on that alignment.

Advanced example: retrieve a two-way intersection

=INDEX(A2:F9,MATCH("Box",A2:A9,0),MATCH("Units",A1:F1,0))

The row position is 3 and the column position 5, giving expected result 7. Replacing Units with Agent gives column position 6 and expected result Ana.

Both matches use aligned origins: data rows start at row 2, while the headers and data share columns A:F. Keep this alignment when inserting a leading label column or an extra header row.

Advanced example: return an entire column or row

=INDEX(D2:E9,0,1)
=INDEX(D2:E9,3,0)

The first has expected eight-row output 120,75,210,90,150,60,125,80. The second has expected one-row output 210,7. Microsoft documents zero as selecting the full row or column in the corresponding dimension.

The source explicitly describes top-left entry followed by Enter for current Microsoft 365 dynamic arrays. In a legacy non-dynamic client, use the full correctly sized output range and its legacy array-entry workflow, including Ctrl+Shift+Enter where supported. This guide does not claim that every other listed client lacks dynamic arrays.

Keep output cells clear and do not type the displayed curly braces of a legacy array formula manually. A multi-cell result is a different entry/display case from the two original scalar examples.

Advanced example: select a second reference area

The reference form permits multiple areas on the same worksheet. With the original table:

=INDEX((D2:E3,D8:E9),2,1,2)
=INDEX((D2:E3,D8:E9),2,1,1)

Expected results are 80 and 75. Area 2 is D8:E9, whose second row and first column is D9; area 1 is D2:E3, whose corresponding cell is D3. If area_num is omitted, the documented default is 1.

The parentheses enclose a multiple-area reference using the shown English-locale comma syntax. Microsoft requires the areas to be on one sheet and documents #VALUE! for areas on different sheets. This restriction belongs to the reference form, not a blanket ban on using other functions to construct an array from other sources.

Advanced check: use the returned reference as a range endpoint

=SUM(D2:INDEX(D2:D9,3))

Expected result: 405, from 120+75+210. INDEX supplies the reference D4, so the range spans D2:D4. This demonstrates why reference semantics matter even when an INDEX cell often displays only a value.

A related whole-column control is =SUM(INDEX(D2:E9,0,1)), with expected total 910. An enclosing aggregate consumes the selected reference; that is a different output task from displaying every array entry in separate cells.

Errors and boundaries

Indices must refer inside the selected range or area. For the eight-row single-column range, =INDEX(D2:D9,9) has documented expected #REF!. A nonexistent area number also falls outside the valid reference selection. Zero remains the documented full-dimension selector rather than an out-of-bounds positive index.

The source distinguishes array and reference forms; it does not certify every negative, fractional, blank or text index conversion here. Keep those as separate native test cases rather than importing behavior from another spreadsheet.

Product-specific troubleshooting and verification

Microsoft documents Formulas → Evaluate Formula for Excel for Windows. If that command is unavailable in your client, inspect component expressions in helper cells and compare their results. This qualification does not imply the same menu exists on every platform listed above.

Related guides already published for this function: Compare the same task in another published software library using the function comparison tool.

A corresponding guide establishes separate documentation, not guaranteed identical defaults or file-conversion behavior. See the function comparison tool and editorial testing standards.

The complete manuscript, original source table and all original formulas were reviewed on October 14, 2026. New outputs were independently calculated from explicit inputs. The existing approved availability/history section is retained exactly. No native Excel execution or complete client/type/error matrix is claimed.