EXCEL XMATCH FUNCTION

XMATCH enables us to locate a specific entry inside a data array.

Syntax :

=XMATCH(lookup_value,lookup_array,[match_type],[search_type])

Parameters :

  • XMATCH looks for the lookup value in the lookup array, beginning with the first cell (unless otherwise provided). Because XMATCH only works with an one row or column, the first cell (unless provided) is either the leftmost cell (when the lookup array is an one row) or the topmost cell (when the lookup array is an one column) (when the lookup array is a single column).
  • Excel only provides precise matches when the match type is set to 0. A match type of -1 indicates that the position within the array of the first item is less than or equal to the lookup value, while a matches type of 1 shows that the positioning within the array of the first entry is greater than the lookup value. A match type of 2 allows us to search for partial matches with unknown characters denoted by ‘?’ and unknown strings denoted by ‘*’. By default, the search type is set to 1. A search type of -1 indicates that Excel searches the array in reverse.

Step By Step Guide of XMATCH Function

Example :

=XMATCH(Charu,A2:A5,0): XMATCH searches for Charlie in the array A2:A5 starting with A2 and moving down towards A5. Here, the XMATCH function will return 3 as output because Charlie is found in the third cell of the array A2:A5.

Xmatch Function

Related Functions

HLOOKUP Function

HLOOKUP Function

Explore Now

VLOOKUP Function

VLOOKUP Function

Explore Now

INDEX Function

INDEX Function

Explore Now

MATCH Function

MATCH Function

Explore Now

DATE Function

DATE Function

Explore Now

IF Function

IF Function

Explore Now

OR Function

OR Function

Explore Now

AND Function

AND Function

Explore Now

RANK Function

RANK Function

Explore Now

SUMIF Function

SUMIF Function

Explore Now

XIRR Function

XIRR Function

Explore Now

WORKDAYS Function

WORKDAYS Function

Explore Now