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.
| SKU | Item | Stock | Reorder at | Price |
|---|---|---|---|---|
| KB-01 | Keyboard | 24 | 10 | 60 |
| MS-02 | Mouse | 8 | 15 | 25 |
| MN-03 | Monitor | 6 | 8 | 250 |
| HC-04 | Headset | 18 | 12 | 80 |
| WB-05 | Webcam | 0 | 5 | 45 |
| DK-06 | Dock | 12 | 6 | 110 |
Hints to get you started
- The webcam has zero stock.
- IFERROR catches a calculation error.
- 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 →