Look Up a Value Between Numeric Thresholds
Map a numeric input to the applicable lower-bound tier by selecting the greatest sorted threshold that does not exceed it, then return aligned labels or rates.
| Lookup Value Between Two Numbers, Formula Review | |||||||||
| Use sorted lower bounds to return the tier aligned with a numeric input. | |||||||||
| Commission tiers, sorted ascending | LOOKUP review, editable examples | ||||||||
| Minimum sales ($) | Commission rate | Tier label | Between thresholds | $82,000 | |||||
| $0 | 2.0% | Entry | Exactly on threshold | $75,000 | |||||
| $25,000 | 3.0% | Developing | Above final threshold | $150,000 | |||||
| $50,000 | 4.0% | Growth | Below first threshold | $-1,000 | |||||
| $75,000 | 5.0% | Established | |||||||
| $100,000 | 6.0% | Premier | Example | Formula syntax | Result | ||||
| Rate between thresholds | =LOOKUP($I$11,$A$12:$A$16,$B$12:$B$16) | 5.0% | |||||||
| Exact-threshold label | =LOOKUP($I$12,$A$12:$A$16,$C$12:$C$16) | Established | |||||||
| Above-maximum rate | =LOOKUP($I$13,$A$12:$A$16,$B$12:$B$16) | 6.0% | |||||||
| Controlled below-minimum | =IF($I$14<$A$12,"Below minimum",LOOKUP($I$14,$A$12:$A$16,$C$12:$C$16)) | Below minimum | |||||||
| Reliability checks | |||||||||
| Tier minimums are strictly ascending | OK | ||||||||
| Primary example is at or above the first minimum | OK | ||||||||
| Exact-threshold example returns the Established tier | OK | ||||||||
Overview
Return the tier aligned with the greatest lower-bound threshold that does not exceed a numeric input. The example maps sales to one flat commission tier, returning its label, minimum, rate, and calculated commission amount.
When to use it
Use it for flat commission rates, volume discounts, risk bands, rating categories, covenant grids, or other structures where one rate or label applies to the entire input based on inclusive minimums.
When not to use it
Use a progressive bracket calculation when each slice of the input receives a different rate. Use XLOOKUP with exact-or-next-smaller matching in modern Excel when that syntax is clearer. A two-dimensional grid requires a two-way lookup rather than this one-axis tier.
Problem
An exact lookup fails when the input lies between published breakpoints. Treating thresholds as upper bounds can also select the wrong row. LOOKUP requires ascending inclusive minimums and returns the last threshold less than or equal to the input.
Inputs
Input | Location | Sample |
|---|---|---|
Sales amount | | $82,000 |
Tier minimums | | $0 to $100,000 |
Rates | | 2.0% to 6.0% |
Labels | | Entry to Premier |
Source data
The synthetic tier table is:
Minimum sales | Rate | Tier |
|---|---|---|
$0 | 2.0% | Entry |
$25,000 | 3.0% | Developing |
$50,000 | 4.0% | Growth |
$75,000 | 5.0% | Established |
$100,000 | 6.0% | Premier |
Minimums must be numeric, unique, and sorted ascending. Labels and rates must remain row-aligned. Values below the first minimum need a controlled response.
Calculations
- Validate that the threshold vector is strictly ascending.
- Compare the input with the inclusive minimums.
- Select the greatest minimum not exceeding the input.
- Return the label or rate from the same row.
- Multiply the input by the selected rate if a flat commission amount is required.
Outputs
Sales of $82,000 map to the Established tier, whose minimum is $75,000 and rate is 5.0%. Applying that flat rate to the full amount produces a commission of $4,100.
Formula map
Return the rate
=LOOKUP($J$11,$A$12:$A$16,$B$12:$B$16)
Return the label
=LOOKUP($J$11,$A$12:$A$16,$C$12:$C$16)
The lookup and result vectors must remain aligned. These formulas return one value and do not spill. The workbook uses IF to control inputs below the first minimum.
Model checks
The workbook confirms that thresholds are ascending, the input is at or above the supported lower bound, and commission equals sales multiplied by the returned rate. Passing controls return OK.
Edge cases
- An input exactly on a threshold uses that row because minimums are inclusive.
- A value between thresholds uses the next lower minimum.
- A value above the final threshold uses the final tier.
- A value below the first threshold has no valid tier without a guard.
- Unsorted minimums can return a plausible but incorrect result.
- Duplicate thresholds create ambiguity and should be removed.
Common errors
- Using upper bounds: tier meanings are reversed. Build the vector from inclusive minimums.
- Leaving minimums unsorted: approximate lookup becomes unreliable. Keep an ordering check.
- Applying one rate progressively: this flat-tier formula does not allocate slices. Use a progressive schedule.
- Omitting the lower guard: below-minimum inputs return an uncontrolled result or error. Validate them explicitly.
Example
$82,000 exceeds the $75,000 minimum but not the $100,000 minimum, so LOOKUP selects $75,000 and returns Established at 5.0%. The independent commission calculation is $82,000 × 5.0% = $4,100. Exactly $75,000 selects the same tier.
Example workbook
Replace the cream sales input in Combined Example!J11 or edit the tier table in A12:C16 while preserving ascending minimums. Selected outputs and checks appear in J13:J16. Formula Review covers exact, between, above-maximum, and below-minimum inputs.
Key takeaway
Define tiers with sorted inclusive minimums; LOOKUP then returns the row aligned with the greatest threshold that does not exceed the input.