Cellgrids Cellgrids
Home › Practice questions › IF › Question 11

Excel IF Practice Question: The pass mark is 40. Scores are in B2:B7. Show Pass or Fail for each student…

By Rinkesh Shah, founder of Cellgrids.

The question

The pass mark is 40. Scores are in B2:B7. Show Pass or Fail for each student in D2:D7.

The data

ABCD
1StudentScoreResult
2Aarav72?
3Diya38?
4Ishaan55?
5Kavya40?
6Rohit29?
7Tanvi91?

The yellow cells are where your answer goes.

Show answer

Expected results:

  • D2 = Pass
  • D3 = Fail
  • D4 = Pass
  • D5 = Pass
  • D6 = Fail
  • D7 = Pass

How it works

Explanation: IF returns one result when the test is true and another when it is false. A score of exactly 40 is a pass, so use >=.
Syntax: =IF(B2>=40,"Pass","Fail")
Fill down D2:D7. 38 and 29 are Fail, the rest are Pass.

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