Sub topic 11
INDEX: returning the value at a position
Assume you know basic Excel formulas, relative and absolute references, and the layout of a simple financial model. This chapter focuses on INDEX, which returns a value from a range when you provide its position.
What INDEX does
INDEX does not search for a label by itself. It receives a position, such as row 4 or row 4, column 2, and returns the value stored there.
For a vertical range, use:
=INDEX(return_range, row_num)For a rectangular range, use:
=INDEX(return_range, row_num, column_num)For example, suppose Rates!C3:C7 contains annual rates:
| Cell | Rate |
|---|---|
| C3 | 0.05 |
| C4 | 0.07 |
| C5 | 0.09 |
| C6 | 0.11 |
| C7 | 0.13 |
The formula below returns the third value in the range, which is 0.09:
=INDEX(Rates!$C$3:$C$7, 3)The number 3 means “the third item in this selected range.” It does not mean worksheet row 3.
Returning a value from a table
In a two-dimensional range, INDEX uses both a row number and a column number. Consider this rate table:
| Row | 2025 | 2026 | 2027 |
|---|---|---|---|
| North | 0.08 | 0.09 | 0.10 |
| South | 0.06 | 0.07 | 0.08 |
| West | 0.10 | 0.11 | 0.12 |
If the data occupies Rates!C3:E5, this formula returns 0.07:
=INDEX(Rates!$C$3:$E$5, 2, 2)The formula selects row 2, the South row, and column 2, the 2026 column. Both positions are relative to the selected range.
Use positions from other formulas
Hard-coding row numbers is useful for testing but weak in a live model. A row can move when someone sorts or expands a table. Usually, another function finds the position. MATCH returns the position of a label in a range, while INDEX returns the value at that position.
=INDEX(Assumptions!$C$3:$C$12, MATCH($A5, Assumptions!$B$3:$B$12, 0))Here, MATCH finds the exact position of the key in A5. INDEX uses that position to retrieve the corresponding assumption.
Common errors
- The return range and position range must describe the same ordering.
row_numandcolumn_numare relative to the range insideINDEX, not to the worksheet.- A position of zero can return an entire row or column in some Excel versions, but this behavior can make formulas harder to audit.
- A position outside the selected range produces
#REF!. - If a lookup key is missing,
MATCHcan produce#N/A. Wrap the combined formula inIFNAwhen a controlled result is needed.
Exercise
In the range D4:D8, which value does =INDEX(D4:D8, 4) return?
Show answer
It returns the value in D7, the fourth item in the selected range.