Returns a value from a range based on the position specified
The INDEX function is one of Excel's lookup and reference functions.
In financial modelling we use the INDEX function to return a value from a range based on the position specified. In scenario modelling we can use INDEX to pull the values for the selected scenario.
INDEX is often combined with the MATCH function to to map data from one table into another based on a unique reference.
Let's take a look at a simple example of the INDEX function.
We have a set of numbers in the cell range A2 to F2.
We would like to return the forth item in that range.
We would write the formula using INDEX as follows:
Return the value in the fourth position in the range A2 to F2.
array – The range of cells that you want to analyse.
row number – The number of the row that you want to return a value for. This is the number of the item in a list arranged vertically.
[column number] – The number of the column that you want to return a value for. This is the number of the item in a list arranged horizontally.
Read more about the INDEX function on the Microsoft support page here.