There are 3 separate match modes (set by thematch_typeargument), as described below.

Note: the MATCH function will always return the first match.

If you should probably return the last match (reverse search) see theXMATCH function.

Basic exact match with MATCH function

If you want to return all matches, see theFILTER function.

MATCH only supports one-dimensionalarraysorranges, either vertical or horizontal.

you might evenuse MATCH twice in a single formulato find a matching row and column at the same time.

Basic exact match with MATCH function

In other words, MATCH figures out theposition, and INDEX returns thevalue at that position.

For a detailed overview with simple examples, seeHow to use INDEX and MATCH.

Match jot down information

Match jot down is optional.

Basic exact match with MATCH function

If not provided,match_typedefaults to 1 (exact or next smallest).

Whenmatch_typeis 1 or -1, it is sometimes referred to as an “approximate match”.

The default setting of 1 can cause MATCH to return results that look normal but are in fact incorrect.

Basic exact match with MATCH function

Explicitly providing a value for match_type, is a good reminder of what behavior is expected.

Exact match

Whenmatch_typeis zero (0), MATCH performs an exact match only.

The resulting formula is called “INDEX and MATCH”.

Basic exact match with MATCH function

The formula in F5 is:

In this example, MATCH is set up to perform an exact match.

The INDEX function then returns the 7th value from the range C5:C12 as a final result.

The formula is solved like this:

See below for more examples of the MATCH function.

Basic approximate match with MATCH function

Case-sensitive match

The MATCH function is not case-sensitive.

This formula is explained with anINDEX and MATCH example here.

you’re able to use INDEX to retrieve individual values, or entire rows and columns.

Basic wildcard match with MATCH function

LOOKUP’s default behavior makes it useful for solving certain problems in Excel.

HLOOKUP Function

The Excel HLOOKUP function finds and retrieve a value from data in a horizontal table.

It is a more robust and flexible successor to the MATCH function.

Basic INDEX and MATCH example

XMATCH supports approximate and exact matching, reverse search, and wildcards (* ?)

XLOOKUP supports approximate and exact matching, wildcards (* ?)

The output from FILTER is dynamic.

Excel formula: XLOOKUP date of max value

If source data or criteria change, FILTER will return a new set of results.

This makes FILTER a flexible way to isolate and inspect data without altering the…

Excel formula: Quantity based discount

Excel formula: Lookup first negative value

Excel formula: Range contains a value not in another range

Excel formula: Get last match cell contains

Excel formula: Get address of lookup result

Excel formula: Two-way lookup with INDEX and MATCH

Excel formula: Lookup lowest Monday tide

Excel formula: Count missing values

Excel formula: Get first non-blank value in a list

Excel formula: Look up entire column

Excel formula: Count unique text values in a range

Excel formula: Two-way lookup VLOOKUP in a Table

Excel formula: LAMBDA strip characters

Excel formula: Hyperlink to first blank cell

Article image

Article image

Article image

Article image

Article image

Article image

Article image

Article image

Article image

Article image

Excel INDEX function

Excel VLOOKUP function

Excel LOOKUP function

Excel HLOOKUP function

Excel XMATCH function

Excel XLOOKUP function

Excel FILTER function

Basic INDEX and MATCH example