⌨ Syntax
INDEX(array,row_num,[column_num])
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. Required unless column_num is present.
column_num
(optional)
— Selects the column in array from which to return a value. If column_num is omitted, row_num is required.
reference
(required)
— A reference to one or more cell ranges. If you are entering a non-adjacent range for the reference, enclose reference in parentheses. If each area in reference contains only one row or column, the row_num or column_num argument, respectively, is optional. For example, for a single row reference, use INDEX(reference,,column_num).
row_num
(required)
— The number of the row in reference from which to return a reference.
column_num
(optional)
— The number of the column in reference from which to return a reference.
area_num
(optional)
— Selects a range in reference from which to return the intersection of row_num and column_num. The first area selected or entered is numbered 1, the second is 2, and so on. If area_num is omitted, INDEX uses area 1. The areas listed here must all be located on one sheet. If you specify areas that are not on the same sheet as each other, it will cause a #VALUE! error. If you need to use ranges that are located on different sheets from each other, it is recommended that you use the array form of the INDEX function, and use another function to calculate the range that makes up the array. For example, you could use the CHOOSE function to calculate which range will be used.