

This can be done using a combination of the INDEX and the MATCH function. You may have a huge data set, or you may want to make it dynamic so that it automatically identifies the name and/or subject specified in cells and give the correct result. It may not always be possible to specify the row number and the column number manually. Example 2 – Making the LOOKUP Value Dynamic using MATCH Function Then it uses the row number (3) and column number (2) to fetch Tom’s marks in Physics. This INDEX formula specifies the array as $B$3:$E$10 which has the marks for all the subjects. To find Tom’s marks in Physics, use the below formula: =INDEX($B$3:$E$10,3,2) Suppose you have a dataset as shown below: Example 1 – Finding Tom’s Marks in Physics (a two-way lookup) Here are six examples of using Excel INDEX Function.


Most widely used along with the MATCH function.If INDEX function is used in front of a cell reference (such as A1:) it returns a cell reference instead of a value (see examples below).If the row number or the column number is 0, it returns the values of the entire row or column respectively.– (Optional) If array argument is made up of multiple ranges, this number would be used to select the reference from all the ranges.Īdditional Notes (Boring Stuff.Although this is an optional argument, but if row_num is not provided, it needs to be given. – the column number from which the value is to be fetched.row_num – the row number from which the value is to be fetched.array – a range of cells or an array constant.

The first one is used in most cases, however, in case of three-way lookups, the second one is used (covered in Example 5). It returns the value from a table for the specified row number and column number. For example, in the example below, you can use the INDEX function to get the marks of ‘Tom’ in Physics when you know the row number and the column number in the data set. Excel INDEX function can be used when you want to fetch the value from a tabular data and you have the row number and column number of the data point.
