For tier tables and bands, XLOOKUP’s match mode finds the nearest value instead of an exact one — -1 for the next smaller, 1 for the next larger — and the data doesn’t even need to be sorted.
-1 = exact or next smaller — exactly what tier tables need.
The example
$32,000 falls in the $25,000 tier (next smaller).
| A | B | |
|---|---|---|
| 1 | Tier from | Rate |
| 2 | $25,000 | 6% |
| 3 | $50,000 | 8% |
The formula
Match mode picks the nearest tier:
How it works
The 5th argument controls how XLOOKUP matches:
- Leave the 4th argument (if_not_found) empty or set it, then add the match mode:
0exact (default),-1exact-or-next-smaller,1exact-or-next-larger. - For tier/band lookups,
-1returns the rate for the highest threshold not exceeding the value. - Unlike VLOOKUP’s approximate mode, XLOOKUP doesn’t require the list to be sorted (though sorting is still tidy).
- Use
1when you want to round up to the next bracket instead.
Safer than VLOOKUP TRUE. VLOOKUP’s approximate match silently misbehaves on unsorted data; XLOOKUP’s explicit match mode is clearer and more forgiving. It’s the modern way to do bracket lookups (tax, commission, shipping).
Try it: interactive demo
Sales → tier rate (next smaller).
Variations
Next larger
Round up to the bracket:
Exact (default)
Omit match mode:
VLOOKUP equivalent
Approximate (needs sorting):
Pitfalls & errors
Mind the empty 4th argument. Match mode is the 5th argument — include a comma for the (skipped) if_not_found: XLOOKUP(v, l, r, , -1).
Thresholds are lower bounds. With -1, list the start of each band; the value maps to the highest threshold ≤ it.
365/2021 only.
Practice workbook
Frequently asked questions
How do I do an approximate match with XLOOKUP?
Does XLOOKUP need the data sorted for approximate match?
Where does the match mode go?
Stop fighting formulas. Learn them in a day.
This recipe is one of hundreds of real-world formulas we teach. Our Excel Formulas & Functions class covers lookups, logic, text, and dynamic arrays hands-on — live in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.
See the Formulas & Functions Class