A friendly "Not found"
A Google Sheets formula exercise from Sheetsdrill. Solve it with a formula bar on a live sheet in your browser, and it is checked the moment you submit.
The task
Look up the discount for the code in E1. When the code does not exist, show the text "Not found" instead of an error. Answer in E2 with XLOOKUP.
What this exercise teaches
The built-in missing value is tidier than wrapping the lookup in IFERROR, which would also hide genuine mistakes.
A hint if you get stuck
XLOOKUP has a 4th argument for what to return when nothing matches.
This exercise is part of Pro
Pro unlocks all 50 exercises, with worked solutions and progress saved to your account. The free exercises work without an account.
You create a free account first, so Pro is attached to it.
Monthly is charged today and then every month until you cancel, in one click from your account page. Lifetime is one payment with no renewals. Full refund within 14 days of paying.