Index and Match functions in Excel
The following article gives detailed instructions on how to use the Index and Match functions in Excel. Use these functions to help you find the exact value on any column and row.
1. Index () function
There are two types of Index () functions: Index () is an array and Index () is a reference form.
Index () in array form:
- Meaning: Returns the value of a data cell with the row and column index searched.
- Syntax: Index (Array, Row_num, [column_num]) .
Inside:
+ Array: Array of reference data or an array constant.
+ Row_num: Row contains the value to retrieve.
+ Column_num: Column containing the value to get.
Index () as reference:
- Meaning: Returns the value of a data cell with the row and column index searched.
- Syntax: INDEX (Reference, Row_num, [Column_num], [Area_num] .
Inside:
+ Reference: The reference area contains the value to get.
+ Row_num: The row index containing the value to retrieve.
+ Column_num: The column index containing the value to retrieve.
+ Area_num: Number of regions returned. If omitted the default is 1.
- For example:
2. Match ()
- Meaning: Returns the number of characters in the data area of the value to be searched.
- Structure: MATCH (Lookup_Value, Lookup_array, [Match_type]) .
Inside:
+ Lookup_Value: The value to search.
+ Lookup_array: Array contains the value to search.
+ Match_type: Search type. There are 3 types of searches:
* Search for values smaller than the values to search when match_type = 1 (les than).
* Search for the correct value by searching for value when match_type = 0 (Exact match).
* Search for value greater than the value to search when match_type = -1 (Greater than).
- For example:
3. Summary example of using Index () and Match ()
For example, fill in the unit price of a product based on the product code and manufacturer in the lookup table.
Note:
- MATCH (B3, A9: A12,0): returns the ordinal number of the value in cell B3 in the data range from A9 -> A12. In which the value of cell A9 is considered as the first number. => Returns the number of rows in the Index () function.
- MATCH (C3, A9: D9,0): returns the ordinal number of the value in cell C3 in the data cell from A9 -> D9. In which the value of cell A9 is considered as the ordinal number. => Returns the number of columns in the Index () function.
- Note: How to create a data table and select the search area of the Match functions. Good luck!
You should read it
- Look up data in Excel tables: Replace VLOOKUP with INDEX and MATCH
- How to combine Index and Match functions in Excel
- Instructions for using Index function in Excel
- How to write the above index, below index in Excel
- How to use the Match function in Excel
- Index function in Excel
- Summary of trigonometric functions in Excel
- Guidelines for importing Chemistry formulas in Excel
- Instructions for creating interactive charts in Excel with INDEX function
- Index (INDEX) in SQL
- How to use the MATCH function and combine the MATCH function with the INDEX function
- How to fix the SUM function doesn't add up in Excel
Maybe you are interested
AMD has surpassed Intel in brand value
SQL way to count NULL and NOT NULL values in a column
Comparing Odroid-N2+ and Raspberry Pi 4: Which option offers better value?
How to receive free gifts from IObit with a total value of nearly 150,000 USD
Write a program to find duplicate values in Python
Write a program to check duplicate values in Python