Loading…
Loading…
XMATCH returns the position of a value in a list; exact match by default.
=XMATCH(lookup_value, lookup_array, [match_mode], [search_mode])
| Argument | Required? | What it is |
|---|---|---|
| lookup_value | Required | The value to look for, such as an ID or name. |
| lookup_array | Required | The row or column to search in. |
| match_mode | Optional | 0 for an exact match (the default), -1 or 1 for the next smaller or larger item, 2 for wildcards. |
| search_mode | Optional | 1 searches from the first item (default), -1 from the last. |
=INDEX(C2:C6,XMATCH("Monitor",B2:B6)) returns the price of Monitor.
From the lesson XMATCH and INDEX/XMATCH.
Type the formula yourself and get it graded instantly, no Excel needed.