Leading the way in Microsoft Office Development
 Home|Excel|Word|PowerPoint|Consultancy|Feedback|Contact 
 Microsoft Excel > Functions > Lookup and Reference > INDEX

 

INDEX(array, row_num [,column_num])

 
 

INDEX(reference, row_num [,column_num] [,area_num])

 
 Returns a value from a table, based on an index number.

 arrayThe range of cells or an array constant.
 referenceThe reference to one or more cell ranges.
 row_numThe row in array from which to return a value.
 column_numThe column in array from which to return a value.
 area_numThe range of cells from which to return the intersection of "row_num" and "column_num".

 REMARKS
 
  • 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, then an array of the entire row or column in array is returned.
     
  • The "array" form always returns a value or an array of values; the reference form always returns a reference.
     
  • If "row_num" is left blank, then "column_num" is required.
     
  • If "row_num" and "column_num" do not refer to a cell within "array" then #REF! is returned.
     
  • If "column_num" is left blank, then "row_num" is required.
     
  • If "area_num" is left blank, then
     
  • If you are entering a nonadjacent selection for reference, you must put "reference" in parentheses.
     
  • If each area in "reference" contains only one row or column then the "row_num" or "column_num" argument, respectively, is optional. For a single row reference, you can use INDEX(reference,,column_num).
     
  • The first area selected or entered is numbered 1, the second is 2, and so on. If "area_num" is omitted, then 1 is used.
     
  • If both the "row_num" and "column_num" arguments are used, then the value in the cell at the intersection of "row_num" and "column_num".
     
  • If you set "row_num" or "column_num" to 0 (zero), the array of values for the entire column or row, respectively is returned.
     
  • To use values returned as an array, enter the function as an array formula in a horizontal range of cells. To enter an array formula, press (Ctrl + Shift + Enter).
     
  • This function can return a linked cell from a hard coded link range ??

     EXAMPLES
     
     ABC
    1=INDEX({1,2;3,4},2,2) = 4Apples40
    2=INDEX({1,2;3,4},0,2) = 2Lemons20
    3=INDEX(B1:B2,1,1) = ApplesBananas30
    4=INDEX(B1:B2,2,1) = LemonsPeaches60
    5=INDEX((B1:B2,C3:C4),1,1,1) = Apples  
    6=INDEX(B1:C4,MATCH("Bananas",B1:B4,1),2) = 40  
    7=INDEX(B1:C1,,2) = 40  
    8=INDEX(B1:B4,,1) = #VALUE!  
    9=INDEX(B1:B4,,2) = #REF!  
     

     Functions - I | Index - I | Office Online 

     Copyright © 2004-2007 Better Solutions Limited. All Rights Reserved.Top