Hands-On Excel

Hands-On Excel Challenges VLOOKUP approximate match

VLOOKUP approximate match practice

=VLOOKUP(B2, $E$2:$F$6, 2, TRUE) finds the band a number falls into: the last row whose starting value is less than or equal to it. Use it for grade bands, tax brackets and discount tiers.

CoreAbout 3 minutesFree, no sign-upBy Updated

Try it yourself

11 · VLOOKUP approximate match · Core

Find the right bracket

Give each student the grade for the band their score falls into, using the table in E1:F6: 82 is between 75 and 90, so it's a B. Fill column C.

Each row of the table is where a band starts. VLOOKUP with TRUE as the last argument finds the band a number falls into. Lock the table with $ before you fill down.

grades.xlsx
Ready

Write in the green cells, then press Check. Click a cell while typing to insert it, drag to select a range, F4 adds $, Esc cancels.

The guide · VLOOKUP approximate match

How TRUE works

A bands table lists where each band starts: 0 is an F, 50 a D, 60 a C, 75 a B, 90 an A. With TRUE as the last argument, VLOOKUP goes down the first column and stops at the last value that isn't bigger than what you're looking for. For a score of 82 that's 75, so the answer is B. A score of exactly 75 is also a B: the start of a band belongs to that band.

Rules for the table

TRUE or FALSE?

FALSE (exact)TRUE (approximate)
Looks forexactly the same valuethe band the value falls into
Table must be sortednoyes, smallest first
Use it fornames, codes, IDsgrades, tax brackets, tiers
When there's no match#N/A#N/A only below the first row

Leaving the last argument out is the same as TRUE. Write it anyway, so the next person can see you meant it.

The XLOOKUP version

In Excel 365 and 2021 or later, =XLOOKUP(B2, $E$2:$E$6, $F$2:$F$6, , -1) does the same thing. Match mode -1 means "exact match, or the next smaller value". Without it, XLOOKUP only does exact matches.

Common mistakes

FAQ

What does TRUE mean in VLOOKUP?
TRUE asks for an approximate match: VLOOKUP returns the row with the largest value that is less than or equal to the lookup value. The first column must be sorted from smallest to largest.
Why does VLOOKUP return #N/A for a number in a range?
The formula uses FALSE, which needs the exact number to be in the table. For bands and brackets, use TRUE as the last argument.
Does the table need to be sorted for approximate match?
Yes, from smallest to largest in the first column. On an unsorted table, approximate match can return a wrong value without showing an error.
What happens if I leave out the last argument of VLOOKUP?
VLOOKUP uses approximate match, the same as TRUE. That is right for bands, but on a list of names it can return the wrong row, so write FALSE there.

All challenges

  1. 01 Add it upSUM Starter · 3 min
  2. 02 Find the averageAVERAGE Starter · 3 min
  3. 03 Write once, fill downRelative references Starter · 3 min
  4. 04 Lock it with $Absolute references Core · 3 min
  5. 05 Percent of a totalPercentages Starter · 3 min
  6. 06 Select to the end in one moveCtrl + Shift + arrow Core · 3 min
  7. 07 Pass or fail?IF Core · 3 min
  8. 08 Count the ones that matchCOUNTIF Core · 3 min
  9. 09 Add up with two conditionsSUMIFS Core · 3 min
  10. 10 Look it upVLOOKUP Core · 3 min
  11. 11 Find the right bracketVLOOKUP approximate match Core · 3 min
  12. 12 XLOOKUP, the modern wayXLOOKUP Core · 3 min
  13. 13 INDEX and MATCH togetherINDEX + MATCH Advanced · 3 min
  14. 14 Catch the error, not the bugIFERROR Core · 3 min
  15. 15 Split first and last namesLEFT, MID + FIND Core · 3 min
  16. 16 Mistake hunt: #N/A everywhereFixing #N/A Core · 3 min

Pro · coming soon

From first formula to job-ready.

100+ challenges on lookups, pivot tables, dates and text cleanup, an interview track modeled on the Excel tests employers use, and your progress saved across devices.

$29 one-time · early-bird price

You won't be charged today.

You're early!

Pro isn't open yet. We're building it right now. Leave your email and we'll hold the $29 early-bird price for you and tell you the day it launches.

We'll email you a link to confirm, then one email when Pro launches. Privacy