DECISIONS & ERROR HANDLING · ORIGINAL EXERCISE
The restock rule
For the mouse on row 3, return "Restock" if C3 is below D3; otherwise return "OK".
This quest practices IF 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
- IF has a test, a true result, and a false result.
- Compare stock C3 with reorder level D3.
- Put text results inside double quotes.
Show the worked solution
=IF(C3<D3,"Restock","OK")IF turns a comparison into an actionable stock status.
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 →