Index function in Excel
The Index function is a function that can refer to any cell on an Excel worksheet, it is combined with many other functions and brings a significant effect.
To make full use of the Index function, you should first know the basic syntax and usage of the function to later use the Index function more effectively. You follow the article below, the article syntax instructions and the use of the Index function form.
Description
The Index function returns the value of an element either referring to a value in the table or in an array via that element's row and column index.
There are two types of Index functions:
- Array form: returns the value of an element in the table or in the specified array.
- Reference type: returns the reference of the specified cell.
Array form
Description:
This form returns the value of an element in a table or in an array via row and column index. Use the array form if the first argument of the Index function is the array constant.
Syntax:
INDEX (array, row_num, [column_num])
Inside:
- array: is the range of cells or an array constant, array is the required argument:
+ If array contains a row or a column, the corresponding row_num or column_num argument is optional.
+ If array contains many rows and columns but only the row_num or column_num argument is used, the index function will return the array with the entire row or entire column in the array.
- row_num: the number of rows in the array from which a value is returned.
- column_num: the column number in the array from which to return a value.
Attention:
- Must have at least one of the arguments row_num or column_num.
- If both row_num and column_num are used, the function will return the value in the intersection cell of row_num and column_num.
- The two arguments row_num and column_num must point to a cell in the array, otherwise the Index function will return an error value.
- If you enter the index row_num or column_num is 0, the function will return the value array for the entire column or corresponding row.
Example: The following table is available:
- Value at row 2 column 3: = INDEX (B4: E7,2,3)
Reference form
Description:
Returns a cell reference specified by a specific row and column index.
Syntax:
= INDEX (reference, row_num, [column_num], [area_num])
Inside:
- reference: required reference region, reference to one or more different cell ranges.
+ If you enter non-adjacent reference ranges, the references must be enclosed in parentheses.
+ If each reference contains only one row or one column, then the corresponding row_num or column_num is optional.
- row_num: the row index in the reference from which to return a reference, required.
- column_num: the column number in the reference from which to return an optional, reference.
- area_num: range in reference from which to return the value of row_num and column. For example, select the first area, enter 1, the second area then enter 2 . if area_num is not entered, the default value is area 1, optional argument.
Note:
- Row_num, column_num and area_num must point to the same cell in the reference otherwise the function will return an error value.
- If you enter row_num or column_num as 0, the function will return the reference for the entire column or the corresponding row.
- The returned result of the Index function is a reference and depending on the formula, the value returned by the function can be used as a value or a reference.
For example: Given 2 reference regions are the following 2 data tables:
- The value in row 2 column 3 in region 1: = INDEX ((B4: E7, B9: D11), 2,3,1)
So you know how to use the index function in the simplest way, in the process of using it, you will need to combine the Index function with other functions to use the function more effectively. Good luck!
You should read it
- How to write the above index, below index in Excel
- Look up data in Excel tables: Replace VLOOKUP with INDEX and MATCH
- How to combine Index and Match functions in Excel
- Index (INDEX) in SQL
- Basic Excel functions that anyone must know
- How to use Hlookup function on Excel
- How to use the SUM function to calculate totals in Excel
- How to use the LEN function in Excel
May be interested
- How to use the LEN function in Excelthe len function in excel is used to measure the length of a certain string of characters, including spaces and correctly return the total character for the user.
- How to use COUNTIF function on Excelthe countif function on excel is the cell count function to satisfy the given condition, often used in statistics tables.
- How to use the MOD function and QUOTIENT function in Excelinjury in excel has many ways of doing it, can be used manually or using the calculation function.
- 8 little-known Excel functions that can save you a lot of workeven seasoned excel users often find themselves stuck performing tasks manually that could be automated with a few clever functions.
- How to use MID functions to get strings in Excelmid function in excel is a function that takes the middle character string corresponding to the value that the user requires to perform.
- Instructions for creating interactive charts in Excel with INDEX functionexcel makes it easy to create clear, concise charts from your raw data. however, sometimes the graphs create static and not interesting. so the following article will introduce a simple method to help you turn static excel charts into dynamic charts.
- How to use Excel's VALUE functionexcel's value function will convert a string to a digital form, which can be combined with other functions such as left function, right function, mid function.
- Use Index in Access 2016an index is a pointer to each value that appears in the indexed table / column, which has the same meaning as the entries in the index of a book.
- How to use the WRAPROWS function in Excelhaving trouble with handling large data sets in excel? then learn how to use the wraprows function to split them into more manageable rows.
- How to use the IFS function in Excel 2016the ifs function in excel is a logical function introduced in excel 2016. this function is a function that replaces the nested if function and is much easier to use. the ifs function checks one or more conditions and returns a value that meets the first true condition.