The smallest box that fits with XLOOKUP

Premium

In C2, pick the smallest box that holds the volume in B2. If there is no exact match, XLOOKUP should take the next larger size: match_mode 1, the fifth argument, XLOOKUP(B2,$E$2:$E$5,$F$2:$F$5,,1).

C2
ABCDEFG
1Order Volume (liters) Box Holds up to Box
21001 12 5 Small
31002 4 10 Medium
41003 27 20 Large
51004 20 100 Extra large
6
7
8

Premium lesson

Unlock XLOOKUP and every other lesson

This is a premium lesson. Premium lets you solve it and every other lesson, take the timed mock tests, and earn certificates you can share on LinkedIn.

Next with premium:IFERROR
Need help?