Why it works
- What it does
- Put the bands in a small table: the lower edge of each band and its result. An approximate lookup returns the band a value falls into. When the rate card changes, you edit the table, not the formula.
- The shape of the formula
- =XLOOKUP(value, band starts, band results, , -1)
- How to remember it
- Rules belong in a table you can see, not in brackets you have to count.
- The usual mistake
- Hard-coding the limits in a nested IF. A new rate card means rewriting the formula, and one typo moves a band.
Keep practicing
- VLOOKUP with TRUE: approximate matchHow do I give holiday days by years of service?Open
- MATCH with 1: which band a value falls inHow do I find a band with INDEX and MATCH?Open
- Nested IF: several bands in one formulaHow do I sort invoices into aging buckets?Open
- Lesson: Look up in any direction with INDEX and MATCHA short lesson in your workspace: the idea, small steps on a sheet, one task with new dataOpen
Updated