Cellgrids Cellgrids
Home › Practice questions › IF › Question 7

Excel IF Practice Question: Using nested IF, assign grades: 90 and above is A, 75 to 89 is B, 50 to 74 is…

By Rinkesh Shah, founder of Cellgrids.

The question

Using nested IF, assign grades: 90 and above is A, 75 to 89 is B, 50 to 74 is C, below 50 is F. Fill C2 to C5.

The data

ABC
1StudentMarksGrade
2Asha92?
3Ben78?
4Chitra55?
5Dev41?

The yellow cells are where your answer goes.

Show answer

Expected results:

  • C2 = A
  • C3 = B
  • C4 = C
  • C5 = F

How it works

Explanation: To test more than two outcomes, put another IF in the false part. Start with the highest cut-off so each mark falls into the first band it qualifies for.
Syntax: =IF(B2>=90,"A",IF(B2>=75,"B",IF(B2>=50,"C","F")))
92 gives A. 78 is below 90 but 75 or more, so B. 55 gives C. 41 is below 50, so F.

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