Cellgrids Cellgrids
Home › Practice questions › IF › Question 2

Excel IF Practice Question: Show Reorder when the stock is below 20 and OK otherwise. Fill C2 to C4.

By Rinkesh Shah, founder of Cellgrids.

The question

Show Reorder when the stock is below 20 and OK otherwise. Fill C2 to C4.

The data

ABC
1ItemStockAction
2Pen15?
3Book42?
4Bag20?

The yellow cells are where your answer goes.

Show answer

Expected results:

  • C2 = Reorder
  • C3 = OK
  • C4 = OK

How it works

Explanation: IF can return text labels. This is how many stock and status reports are built.
Syntax: =IF(B2<20,"Reorder","OK")
Pen: 15 is below 20, so Reorder. Book: 42 is OK. Bag: exactly 20 is not below 20, so OK.

Try it yourself in the live sheet

Type your formula in the highlighted cell and get instant feedback. Free, no Excel install needed.

Try this question in the live sheet →

IF syntax

=IF(logical_test, value_if_true, value_if_false)

Returns one value if a condition is true, another if false. Flagging an employee as Pass or Fail based on a score cutoff. Full IF guide.

More IF practice questions

All practice questions · Excel exercises · Interview prep · Cheat sheet