Learn Excel - Simplify Life with Excel Concepts

Excel INDEX Function

INDEX Function

How to use the INDEX Function (VBA)

This Excel tutorial explains how to use the Excel INDEX function with syntax and examples.


The Excel INDEX function returns the value at a given position in a range or array.
The Microsoft Excel INDEX function returns a value in a table based on the intersection of a row and column position within that table. The first row in the table is row 1 and the first column in the table is column 1.


To get a value in a list or table based on given position.


The value from a given location

SYNTAX 1: (Array form)

Returns the value of an element in a table or an array, selected by the row and column number indexes.Use the array form if the first argument to INDEX is an array constant.

=INDEX(array, row_num, [column_num])


The INDEX function syntax has the following arguments:

  • array: Required. A range of cells or an array constant
    • If array contains only one row or column, the corresponding row_num or column_num argument is optional.
    • If array has more than one row and more than one column, and only row_num or column_num is used, INDEX returns an array of the entire row or column in array.
  • row_num: Required. Selects the row in array from which to return a value. If row_num is omitted, column_num is required.
  • col_num: Optional. Selects the column in array from which to return a value. If column_num is omitted, row_num is required.


  • If both the row_num and column_num arguments are used, INDEX returns the value in the cell at the intersection of row_num and column_num.
  • row_num and column_num must point to a cell within array; otherwise, INDEX returns a #REF! error.
  • If you set row_num or column_num to 0 (zero), INDEX returns the array of values for the entire column or row, respectively. To use values returned as an array, enter the INDEX function as an array formula.

Use of INDEX function to find the value in the intersecting cell where a row and a column meet.
INDEX Function

Useful Links: Link 1Link 2Link 3Link 4