Excel MATCH Function

This Excel Tutorial demonstrates how to use the Excel MATCH Function in Excel to find a value, with formula examples.

MATCH Function Description:

The MATCH Function Searches for an item in a list and returns a number representing it’s position in the list.

Formula Examples:

match function examples

ExampleFormulaResult
Exact Match=MATCH(E5,$B$5:$B$10,F5)2
Nearest Match – Less Than=MATCH(E6,$B$5:$B$10,F6)#N/A
Nearest Match – Greater Than=MATCH(E7,$B$5:$B$10,F7)1
Text Match=MATCH(E8,$B$5:$B$10,F8)5

Syntax and Arguments:

The Syntax for the MATCH Formula is:

Function Arguments ( Inputs ):

lookup_value – The value you want to search for.

lookup_array – An array of data either one column wide or one row high that you want to search in.

match_type – 0,-1 or 1 specifies what to do if an exact match is not found. 0 returns an error. -1 returns the nearest match that is greater than the lookup_value. 1 returns the nearest match that is less than the lookup_value.

Additional Notes

Use the MATCH Function to find the numerical postion of a value within a range of values. The range must be either a subset of a single range or a single row.

The MATCH Function is most frequently used with the INDEX Function.

MATCH Examples in VBA

You can also use the MATCH function in VBA. Type:
application.worksheetfunction.match(lookup_value,lookup_array,match_type)
For the function arguments (lookup_value, etc.), you can either enter them directly into the function, or define variables to use instead.

Return to the List of all Functions in Excel

How to use the MATCH Function in Excel:

To use the AND Excel Worksheet Function, type the following into a cell:
=AND(
After entering it in the cell, notice how the AND formula inputs appear below the cell:
match formula syntax
You will need to enter these inputs into the function. The function inputs are covered in more detail in the next section. However, if you ever need more help with the function, after typing “=MATCH(” into a cell, without leaving the cell, use the shortcut CTRL + A (A for Arguments) to open the “Insert Function Dialog Box” for detailed instructions:
how to use the match function in excel

For more information about the MATCH Formula visit the
Microsoft Website.

ADS GO HERE

Posted in