deepcalc
DocsXMATCH

XMATCH

Returns the position of an item in a range or array.

  • Excel: Verified match
  • Google Sheets: No equivalent
  • Returns: Number

Examples

=XMATCH("gamma", C1:C5)
C
1 alpha
2 beta
3 gamma
4 delta
5 epsilon
Result 3

Syntax

XMATCH(lookup_value, lookup_array, [match_mode], [search_mode])
lookup_value
any required
lookup_array
range required
match_mode
number optional
search_mode
number optional

Errors

#N/A
=XMATCH(42,A1:A2,3)