Cellgrids Cellgrids
Home › Practice questions › OR › Question 6

Excel OR Practice Question: Write Incomplete if the name or the city is empty, otherwise OK. Put it in C2…

By Rinkesh Shah, founder of Cellgrids.

The question

Write Incomplete if the name or the city is empty, otherwise OK. Put it in C2 to C4.

The data

ABC
1NameCityCheck
2RahulPune?
3Delhi?
4Amit?

The yellow cells are where your answer goes.

Show answer

Expected results:

  • C2 = OK
  • C3 = Incomplete
  • C4 = Incomplete

How it works

Explanation: An empty cell is equal to empty text, so OR can catch a missing value in either column.
Syntax: =IF(OR(A2="",B2=""),"Incomplete","OK")
Rahul has both values: OK. The second row has no name: Incomplete. The third row has no city: Incomplete.

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 →

OR syntax

=OR(logical1, [logical2], ...)

Returns TRUE if at least one condition given is true. OR is used to build decision rules directly into a spreadsheet instead of manually judging each row. Full OR guide.

More OR practice questions

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