Excel & Google Sheets Function
XMATCH function in Excel (with interactive examples)
XMATCH returns the relative position of an item in a range with exact match by default, wildcard support, and reverse search.
Syntax
=XMATCH(lookup_value, lookup_array, [match_mode], [search_mode])Live Interactive Exercise — Try it nowNo login required
Interactive practice grid (XMATCH reference)
Try our live spreadsheet engine: total Q1 sales in cell B5 using =SUM(B2:B4).
B5fx
| A | B | |
|---|---|---|
| 1 | Month | Sales |
| 2 | Jan | $1,100.00 |
| 3 | Feb | $1,350.00 |
| 4 | Mar | $1,550.00 |
| 5 | Total | type here |
Insert:
Arguments explained
| lookup_value | Required | Item to locate. |
| lookup_array | Required | Single row or column to search. |
| match_mode | Optional | 0 = exact (default), 2 = wildcard, -1/1 = next smaller/larger. |
Common errors & fixes
#N/A: Check data types (text vs number) and leading/trailing spaces.
Excel vs Google Sheets
Supported identically in Google Sheets.
Practise XMATCH in a full 4-minute lesson
Every lesson is free to study — build real speed with instant feedback.
Free 1-Page Excel, Google Sheets & SQL Interview Cheat Sheet
The 25 formulas, keyboard shortcuts, and SQL patterns tested most in analyst interviews — emailed instantly, zero spam.