Stock management is where many people write their first useful IF. A shop does not want to check 500 lines by eye to know what to reorder. One formula compares each stock level with a limit and displays a clear message. The same logic then works for prices: when there is too much stock, the price goes down.
The following exercise shows you how one IF function can drive two decisions on the same product list: when to restock, and when to sell cheaper.
What you will practice in this exercise
You work on a product list with stock levels and prices. You answer 4 questions, one formula per question:
- Display “Restock” when the stock is below the threshold (IF with a text result)
- Fill the action down the whole list (copy a formula)
- Cut the price by 30% when the stock is above 100 units (IF with a calculation)
- Fill the sale price down the list (copy a formula)
Practice with exercises
IF — Manage the stock: restock and sale prices
Display "Restock" when the stock drops below the limit, then cut the price by 30% on overstocked items.
Related articles
All the exercises in this series are based on real cases found on Excel forums. Each one answers a question that Excel users really ask.