Ghost Sheet

VLOOKUP with TRUE: approximate match

How do I give holiday days by years of service?

This is the task for this topic. It is part of the plan; the level check before it is free.
C2Type a formula for C2, starting with =

Click the sheet or the button: the task opens in your workspace, ready to type

ABCDE
1NameYears of serviceLeave days
2Grace Obi9.1
3Tomas Novak6.1
4Lena Park2
5Omar Haddad13.2
6Ravi Menon12.3
7Eli Brooks5
8Nora Kelly3
9Felix Wong4.4
10Maya Singh10
11Owen Reyes13.6
12Iris Lund16
13
14
15
16
17
18
19
20
21
22
23
dashed: the answer to reachblack: matchesblue: right after new datared: wrong

Why it works

What it does
With TRUE at the end, VLOOKUP finds the last value in the first column that is not bigger than the key. That suits bands such as tenure or discount tiers. The first column must be sorted from smallest to largest.
The shape of the formula
=VLOOKUP(value, band table, column number, TRUE)
How to remember it
TRUE means “the band I have reached”, and only works on a sorted list.
The usual mistake
A fixed range for a band table that grows. New bands at the bottom are never reached.

Keep practicing

Updated