VLOOKUP approximate match: commission rates

Lesson 21 of 54

With TRUE as the last argument, VLOOKUP finds the largest value that is less than or equal to what you look up. It's the standard way to look up tiers, brackets and grade bands.

Commission depends on sales tiers in A2:B5. In cell E2, write a VLOOKUP that finds the Rate for the sales amount in D2, using approximate match (TRUE).

E2
ABCDE
1From salesRateSalesRate
200.027,400
35,0000.04
410,0000.06
520,0000.08

Type in the formula bar above and press Enter to check.

Skip

How approximate match works

Syntax

=VLOOKUP(value, tier_table, column_number, TRUE)
value
The number to place in a tier, such as a score or an amount.
tier_table
A table whose first column holds the lower limit of each tier, sorted smallest to largest.
column_number
The column with the result for each tier.
TRUE
Approximate match: use the last tier whose limit is not above the value.

Example

Shipping cost depends on weight. F2:F5 holds 0, 1, 5, 20 (kg) and G2:G5 holds $5, $8, $15, $40. The package weight is in B2.

=VLOOKUP(B2, $F$2:$G$5, 2, TRUE)

A 3.2 kg package falls in the 1 kg tier and costs $8.

Common mistakes

  • An unsorted first column. Approximate match assumes ascending order and returns nonsense otherwise.
  • Missing a 0 row. A value below the first limit returns #N/A.
  • Writing upper limits ("up to 5") instead of lower limits ("from 5") in the first column.

Questions people ask

When should I use TRUE instead of FALSE?

Use TRUE only for ranges and brackets (tax rates, discounts, grades). For IDs, names and codes, always use FALSE.

Practice it above: type the formula in the formula bar and press Enter to check.