Handle a missing book code
Return a price when found and a clear fallback otherwise.
YOUR TASK
Put Lookup fallback to work.
Look for book code BK204 in A2:A6 and return its price from C2:C6 in G2. If the exact lookup is not found, return the text "Not found". The code may be present in a new dataset.
CU = fictional currency units. Use numbers without a currency symbol.
Give me a hint
Wrap an exact INDEX/MATCH lookup in IFERROR with a quoted text fallback.
Show the worked solution
=IFERROR(INDEX(C2:C6,MATCH("BK204",A2:A6,0)),"Not found")A missing lookup is an error, not a price of zero. IFERROR supplies the message; when BK204 exists, the same formula must return its numeric price.
Try it yourself before opening the solution. A completed task with the solution open is saved as reviewed practice.
What can I use in this checker?
SUM, SUMPRODUCT (matching range dimensions), INDEX (single-cell result), MATCH (exact match with 0), AVERAGE, AVERAGEIF, MEDIAN, MIN, MAX, COUNT, COUNTA, IF, IFERROR, AND, OR, SUMIF, SUMIFS, COUNTIF, COUNTIFS, exact-match VLOOKUP and XLOOKUP, ROUND, LEFT, RIGHT, LEN, TRIM, UPPER, LOWER, CONCAT, arithmetic, comparisons, percentages and absolute cell references. Use the displayed data and double quotes for text. For AND and OR, use comparisons or logical values. Text-cleaning tasks check letter case. This is a focused formula checker; it does not include Excel’s full feature set.
