About this lesson

D2 LESSON 22 · PASS

VLOOKUP approximate match: volume rebate tiers in Google Sheets

In Google Sheets, VLOOKUP with TRUE returns the row for the largest value less than or equal to the one you look up: =VLOOKUP(B9,$A$2:$B$6,2,TRUE). The first column must be sorted smallest to largest. The newer XLOOKUP function does it with match mode -1 and no sorting: =XLOOKUP(B9,$A$2:$A$6,$B$2:$B$6,,-1).

Using Excel? Do this lesson in Excel.

=VLOOKUP(B9,$A$2:$B$6,2,TRUE)

What you'll practise

Look up each customer's rebate tier with VLOOKUP's approximate match, see why the tier table must be sorted, then switch to XLOOKUP, which doesn't need the table in order.

4 steps · 40 points · the cells outlined in gold below

  • VLOOKUP
  • approximate match
  • tier tables
  • XLOOKUP match mode

The data

ABCD
1Spend from ($k)Rebate rate
200.00%
32501.50%
45002.50%
510003.50%
620004.50%
7
8CustomerSpend ($k)Rebate rateRebate ($k)
9Mallee Grain612.4
10Otway Foods1,457.9
11Riverina Wines184.6
12Pilbara Mining Services2,731.2
13Kimberley Cement250.0
14Barossa Packaging978.3

Semester pass · A$49 for six months

This drill comes with the semester pass.

Every lesson, for A$49 every six months. Cancel any time and you keep the pass until the six months you've paid for run out.