Cellgrids Cellgrids
Home › Practice questions › IF › Question 6

Excel IF Practice Question: A blank Days cell means the order is not delivered yet. Show Done if Days has…

By Rinkesh Shah, founder of Cellgrids.

The question

A blank Days cell means the order is not delivered yet. Show Done if Days has a value and Pending if it is blank. Fill C2 to C4.

The data

ABC
1OrderDaysStatus
2O-13?
3O-2?
4O-35?

The yellow cells are where your answer goes.

Show answer

Expected results:

  • C2 = Done
  • C3 = Pending
  • C4 = Done

How it works

Explanation: Comparing a cell with empty quotes ("") checks whether it is blank.
Syntax: =IF(B2="","Pending","Done")
O-1 has 3 days, so Done. O-2 is blank, so Pending. O-3 has 5 days, so Done.

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