XMATCH
Find the position of a value with XMATCH, including the next larger value and the last match, and turn it into a result with INDEX.
In this lesson
=XMATCH(what to find, list)returns the position of the value in the list (1, 2, 3…), counted from the top.- Match mode, the 3rd argument: 1 = exact or next larger (the smallest box that fits), -1 = exact or next smaller.
- Search mode, the 4th argument: -1 searches from the end and returns the position of the last match.
Try a free lesson first
Look up a price with VLOOKUP and XLOOKUP
Bring each order's price over from a price list with VLOOKUP or XLOOKUP, and avoid the missing-FALSE trap.
Confident · 11 min · Free, with no sign-up
Do the free lesson on your computer.
Send yourself the link and open it on a laptop or desktop.
On your computer, go tolearnford.com/go/SPJV
This lesson is in the full Excel course
US$149 once
Tax included. New lessons are added as they're written.
Get the full course, US$14930-day money-back guarantee if you've opened fewer than 10 paid lessons.
- All 217 Excel lessons open today, and every new one as it's written.
- The Roadmap, Skills and all eight paths.
- A cheat sheet for every lesson you finish.
Where it sits in Lookups
The steps
12 steps: 4 explanations, 5 Do this, 3 questions, then Your turn.
Try a free lesson first
Look up a price with VLOOKUP and XLOOKUP
Bring each order's price over from a price list with VLOOKUP or XLOOKUP, and avoid the missing-FALSE trap.
Confident · 11 min · Free, with no sign-up
Do the free lesson on your computer.
Send yourself the link and open it on a laptop or desktop.
On your computer, go tolearnford.com/go/SPJV