cellcraftEnter the quest map →
← Browse the curriculum
DECISIONS & ERROR HANDLING · ORIGINAL EXERCISE

Guard against zero

For the webcam on row 6, divide E6 by C6. If division fails, return "No stock".

This quest practices IFERROR using a fictional business dataset. Read the sheet below, then enter the interactive quest to write and check your formula.

SKUItemStockReorder atPrice
KB-01Keyboard241060
MS-02Mouse81525
MN-03Monitor68250
HC-04Headset181280
WB-05Webcam0545
DK-06Dock126110
Play this quest · +70 XP →

Hints to get you started

  1. The webcam has zero stock.
  2. IFERROR catches a calculation error.
  3. Use E6/C6 as the first argument and "No stock" as the fallback.
Show the worked solution
=IFERROR(E6/C6,"No stock")

IFERROR keeps an expected divide-by-zero error from breaking a readable report.

Make the skill stick

After solving the task, explain what each reference does and why the formula answers the business question. Try the workbook download inside the quest to practice in your own spreadsheet app.

Explore the rest of this region →