Cellgrids Cellgrids
Home › Practice questions › IF › Question 4

Excel IF Practice Question: A candidate is Eligible only if the age is 18 or above and the score is 60 or…

By Rinkesh Shah, founder of Cellgrids.

The question

A candidate is Eligible only if the age is 18 or above and the score is 60 or above. Show Yes or No in D2 to D4.

The data

ABCD
1NameAgeScoreEligible
2Raj1972?
3Sia1785?
4Tom2155?

The yellow cells are where your answer goes.

Show answer

Expected results:

  • D2 = Yes
  • D3 = No
  • D4 = No

How it works

Explanation: AND inside IF makes the result true only when every condition is true.
Syntax: =IF(AND(B2>=18,C2>=60),"Yes","No")
Raj: 19 and 72 pass both tests, so Yes. Sia: age 17 fails, so No. Tom: score 55 fails, so No.

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