When a lookup finds nothing
Exercise 1 of 3
In F2, look up the price for the code in E2 with VLOOKUP, and show 0 if it isn't found.
About this lesson
When a lookup finds nothing it returns #N/A. Learn to show your own result instead with IFERROR and IFNA.
In this lesson
- In
F2, look up the price for the code inE2withVLOOKUP, and show 0 if it isn't found. - In
F2, look up the product name for the code inE2. UseIFNAto show "not found" if the code is missing. - You leave out the last argument:
=VLOOKUP(E2,A2:C7,3). What happens?
Use the arrow keys to move between cells; each cell is read out as you go. Type a formula and press Enter. The sheet is also available as a table below.
fx
Type in F2 and press Enter to check.