Level 2LookupsPractice, 2 min

XLOOKUP with a fallback

The task

Checkout looks up the discount for the promo code in E2. That code isn't in the list. In F2, use XLOOKUP so a missing code returns 0 instead of an error.

The data

The starting sheet. Cells outlined in green are where your formulas go.

ABCDEF
1CodeDiscountCode enteredDiscount
2WELCOME1010%SPRING30
3FALL1515%
4VIP2020%
5FREESHIP5%
6BUNDLE2525%