Formuladrill

Level 3: Lookups Exercise 28 of 68 Pro

When the code does not exist

An Excel formula exercise from Formuladrill. Solve it with a formula bar on a live sheet in your browser, and it is checked the moment you submit.

The task

Return the stock level for the code in F1. If the code is not in the list, the cell must show the text Unknown code instead of an error.

What this exercise teaches

XLOOKUP has a built-in not-found value, so no IFERROR wrapper is needed.

A hint if you get stuck

XLOOKUP(find, where to look, what to return, value if not found).

Functions used: XLOOKUP

This exercise is part of Pro

Pro unlocks all 68 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.

Start with the free exercises

More exercises in Lookups