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.

Advanced · 11 min · 12 steps

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/TTD6

This lesson is in the full Google Sheets course

US$149 once

Tax included. New lessons are added as they're written.

Get the full course, US$149

30-day money-back guarantee if you've opened fewer than 10 paid lessons.

  • All 215 Google Sheets lessons open today, and every new one as it's written.
  • The Roadmap, Skills and all seven paths.
  • A cheat sheet for every lesson you finish.

Already have the course? Sign in

Skill
Lookups
Stage
Advanced

Where it sits in Lookups 12 lessons

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/TTD6