Skip to main content

XMATCH

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

CategoryLookup
SyntaxXMATCH(lookup_value, lookup_array, [match_mode], [search_mode])

Parameters

ParameterRequiredDescription
lookup_valueRequiredThe value to search for.
lookup_arrayRequiredThe array or range to search.
match_modeOptional0 (exact), -1 (exact or next smaller), 1 (exact or next larger), 2 (wildcard). Defaults to 0.
search_modeOptional1 (first-to-last), -1 (last-to-first), 2 (binary asc), -2 (binary desc). Defaults to 1.

Example

XMATCH(value, range, col)

Auto-generated from the EngCanvas function registry.