INDEX is a powerful tool in Microsoft Excel that can be used to find values for specific cells. To use INDEX, you first need to create a worksheet and name it “Excel_Table1”. Then, you need to add the following code to the sheet: =INDEX(A1:A10) This will create an INDEX function that will search through all of the cells in the sheet named A1:A10. The INDEX function takes two arguments: a list of cell names (in this case, A1:A10) and an index number (in this case 1). The index number tells Excel which cell in the list should be searched for. If you want to find all of the values in cell A1, for example, you could use this code: =INDEX(A1) This would search through all of the cells in A1 until it found a value. If you wanted to find all of the values in cell A2, for example, you could use this code: =INDEX(A2)
When you need to obtain a value that resides in a particular spot in your spreadsheet, you’ll want one of Excel’s lookup and reference functions. Here, we’ll show you how to find values by location with INDEX in Excel.
You might be creating a complex formula or have values that change often. By using the INDEX function, you designate the cell range along with a row number and column number. Excel locates the value at that intersection and provides the result from the formula.
The INDEX Function in Excel
You can use the INDEX function two different ways in Excel: Array Form and Reference Form.
Array Form provides the value of a certain cell range, or array. Reference Form provides a reference to specific cells and is useful when working with nonadjacent cells.
Let’s look at how to use both.
Use INDEX in Array Form
The syntax for the function in Array Form is INDEX(array, row_number, column_number) where the first two arguments are required and column_number is optional.
To find the value in the third row in the cell range C1 through C10, you would enter the following formula replacing the cell references with your own.
The number 3 here represents the third row. You don’t need the column number argument because the array is in a single column, C.
To find the value in the third row and fifth column for the cell range A1 through E10, you would use this formula.
Here, the 3 represents the third row and the 5 represents the fifth column. Because the array covers several columns, you should include the column number argument.
RELATED: How to Number Rows in Microsoft Excel
Use INDEX in Reference Form
The syntax for the function in Reference Form is INDEX(reference, row_number, column_number, area_number) where the first two arguments are required and second two are optional.
You can use a basic formula with the Reference Form of the function as with the Array Form. With the following formula, you receive the value in the third row and fifth column of cells A1 through E10, just like above.
So, let’s look at a more robust formula with this form of the INDEX function using nonadjacent cells.
We’re using two cell ranges here, A1 through E4 (first area) and A7 through E10 (second area). To find the value in the third row and fourth column in the first area, you would enter this formula:
In this formula, you see the two areas, 3 for the third row, 4 for the fourth column, and 1 for the first area A1 through E4.
To find the value using the same cell ranges, row number, and column number, but in the second area instead of the first, you would use this formula:
As you can see, everything remains the same except you replace the 1 with a 2 for the second area.
The INDEX function in Excel is a handy one to keep in mind. If you plan to use lookup and reference functions often, be sure to check out how to use VLOOKUP for a range of values and how to use XLOOKUP in Excel.