FormulaCamp
Completed
← All functions
Lookup & reference

XMATCH

Position, with modern lookup modes.

Syntax

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

Example: =XMATCH(A2,B2:B100)

Available in: Excel 2021+, Microsoft 365

Try it

A tiny spreadsheet with example data. Edit the formula or any number and see the result.

Formula in F2: =XMATCH(103,A2:A6)

Example spreadsheet for XMATCH
ABCDEF
1IDItemPriceStockResult
2101Pen2.51203
3102Notebook480
4103Lamp2515
5104Mug7.540
6105Backpack3912
Result in F2: 3

More in Lookup & reference