Excel XMATCH Function | XMATCH Function | Excel 2021

Excel XMATCH Function

Summary 

The Excel XMATCH function makes a look-up and sends back the location in vertical or horizontal arrays. It is a more strong and stretchy replacement to the MATCH function in excel. XMATCH supports estimated and exact matching, inverse search, and wildcards (* ?) for limited matches. 











Purpose 

Get the location of an element in a list or table

Return value 

Numeric spot in look-up array

Syntax 

=XMATCH (lookup_value, lookup_array, [match_mode], [search_mode])

Arguments 

  • lookup_value - The lookup value. The main data to start search.
  • lookup_array - The range to search the data item.
  • match_mode - [optional] 0 = exact match (by default), -1 = exact match or the next smallest, 1 = exact match or the next larger, 2 = wildcard match support (If any).
  • search_mode - [optional] 1 = search from the first (default), -1 = search from the last, 2 = ascending binary search, -2 = descending binary search.

Version 

Included in Excel 2021 onwards

Usage points 

The Excel XMATCH function executes a lookup value and returns the position in the list. XMATCH can perform lookups in both the vertical or horizontal series, and is intended to be a stretchier and more commanding heir to the MATCH function.  XMATCH supports both estimated and exact matches, and uses wildcards (* ?) for partial ties. Like the XLOOKUP function in excel 2021, XMATCH can hunt data commencing from the start value or the last value (i.e. backward search). Finally, XMATCH can perform binary searches, which are precisely improved for speed. 

 












The XMATCH function takes four argumentslookup_valuelookup_arraymatch_mode,and search_mode      Lookup_value is the item to look for, and lookup_array is the series or array to search. Both arguments are mandatory. The match_mode argument controls what type of match is executed (exact, next smallest, next largest, or wildcard). Finally, search_mode pedals the search route - whether XMATCH should start at the opening of the array, at the finish of the array, or if XMATCH should perform a binary search.


XMATCH only cares one-dimensional arrays or series, either of vertical and horizontal. However, you can use XMATCH to find values in a two-dimensional array or table by giving XMATCH a single column or row that holds the lookup value. You can also use MATCH twice in a single formula to discover a matching row and column at the similar time

XMATCH vs. MATCH

The XMATCH function works just like MATCH function, but with more competence and elasticity. In some cases, XMATCH can be replaced for the MATCH function. For example, for exact matches, the syntax is almost the same:

=MATCH(lookup, range, 0) // for exact match

=XMATCH(lookup, range, 0) // for exact match

However, for rough matches, the behaviour is dissimilar when match type is set to 1:

=MATCH(lookup, range, 1) // for exact match or next smallest

=XMATCH(lookup, range, 1) // for exact match or next *largest*

In addition, XMATCH allows -1 for match type, which is not offered with MATCH function.

=XMATCH(lookup, range, -1) // for exact match or next lowest

Note: the MATCH function does not have the search method at all.

 

 

Comments

Popular posts from this blog

SAP S/4HANA | SAP S/4HANA Cloud | SAP S4

XLOOKUP Function in Excel 2021

Dynamic Arrays in Excel- Dynamic Array formula- Excel dynamic array in table

ALTERING PRICING STRATEGIES | PRICING STRATEGY | MARKETING

Organizational Culture | Types of Organizational Culture | Organizational Behavior