The excel **MATCH** function is used to find a value in a cell range, it will return the position number of the search value in the cell range. After that, we can use the Excel **INDEX** function and the position number to get the matched cell data. This article will tell you how to use the Excel **INDEX MATCH** functionÂ together with examples.

### 1. How To Use Excel Match Function.

#### 1.1 Excel Match Function Syntax.

- The Excel MATCH function has the below syntax.
=MATCH(lookup_value, lookup_array, [match_type])

- The first argumentÂ
**lookup_value**is the keyword data (number or text) that will be searched in the second argument**lookup_array**. - The second argument
**lookup_arrayÂ**is an array or a cell range that will be searched in. - The third argument
**match_type**is a number value. - When the number is
**1**it means to look up the first maximum number in the**lookup_array**that is less than or equal to the**lookup_value**, this match type needs to sort the**lookup_array**in**ascending**order. - When the number is
**0**it means to look up the first value in the**lookup_array**that is equal to the**lookup_value**exactly, this match type does not need to sort the order of the**lookup_array**elements. - When the number is –
**1**it means to look up the first minimum number in the**lookup_arrayÂ**that is greater than or equal to the**lookup_value**, this match type needs to sort the**lookup_array**in**descending**order. - The
**MATCH**function will return the position number of the first matched array element or cell in the**lookup_array**.

#### 1.2 Excel Match Function Examples.

- Below are the Excel match function example data cells.

- Because we need to sort the above rows, so we need to convert the above cells to an Excel table.
- You can read the article Excel Convert Table To Range Example And Vice Versa to learn how to convert cell range
**A1:B7**to an Excel table, below is the table after conversion.

##### 1.2.1 Excel Match Function Match Type Less Than Example.

- Click the
**Down**arrow on the right side of the cell**Unit Price($)**and sort column**B**in**ascending**order by selecting the**Sort Smallest to Largest**item. - Input the formula
**=MATCH(850, B2:B7, 1)**in cell**C2**and press the enter key, then it will display the number**1**in cell**C2**. - This is because only the first cell (containing the number
**800**)’s value is the biggest number which is less than the**lookup_value**(850).

##### 1.2.2 Excel Match Function Match Type Greater Than Example.

- Click the
**Down**arrow on the right side of the cell**Unit Price($)**and sort column**B**in**descending**order by selecting the**Sort Largest to Smallest**Â item. - Input the formula
**=MATCH(850, B2:B7, -1)**in cell**C3**and press the enter key, then it will display the number**5**in cell**C3**. - This is because the fifth position cell ( contains number
**900**)’s value is the smallest number which is greater than the**lookup_value**(850). - And you can see that cell
**C2**‘s value has been changed to**#N/A**, this is because cell**C2**contains the formula**=MATCH(850, B2:B7, 1)**which sets the**match_type**value to**1**in the formula. - When you set the
**match_type**value to**1**, it needs to sort the**lookup_array**(cell range**B2:B7**) in ascending order.

##### 1.2.3 Excel Match Function Match Type Exact MatchÂ Example.

- Input the formula
**=MATCH(850, B2:B7, 0)**in cell**C4**and press the enter key, then it will display the error text**#N/A**Â in cell**C4**. - This is because you set the
**match_type**argument to**0**which means the exact match and the cell range**B2:B7Â**do not contain a number**850**. - Change the formula to
**=MATCH(800, B2:B7, 0)**and press the enter key, then it will display the number**6**( the cell position in my example). - The exact match type does not need to sort the
**lookup_array**. - You can use the wildcard in the exact match
**lookup_value**, the character*****will match multiple characters and the character**?**will match a single character. - The formula
**=MATCH(“iPa?”, A2:A7, 0)**will return the number**2**( which cell value is**iPad**). - The formula
**=MATCH(“*mac*”, A2:A7, 0)**will return the number**4**( which cell value is**Mac Mini**). - Because the cell value
**Mac Mini**is the first cell that contains the**lookup_value*****mac***. - And the
**MATCH**function is case-insensitive.

### 2. How To Use Excel Index Match Function To Get The Matched Cell Value.

- After you use the Excel
**MATCH**function to get the**lookup_value**position in the**lookup_array**, you can use the Excel**INDEX**function to get the searched cell value. - Below is the example data table.

- If we want to search the keyword
**mac**in**Sale Item**column and return the first matched cell value, we can use the formula**=INDEX(A2:A7, MATCH(“*mac*”, A2:A7, 0))**. - The
**MATCH(“*mac*”, A2:A7, 0)Â**function will return the first matched cell’s position in the cell range. - The
**INDEX**function will return the cell value in the cell range using the above cell position value.