Skip to content

Lesson 7: IF: if... then...

  1. C2: =IF(B2>=55,"Pass","Fail")
  2. Drag C2 down to C7
ABC
1StudentScoreResult
2Noah85
3Ethan48
4Maya72
5Jonah54
6Sarah95
7Oliver55
8
9How many passed
  • C2 to C7 use IF

All lessons

The IF function in Excel with a passing grade example, and COUNTIF for counting by a condition. IF(condition, value if true, value if false). Text always goes inside quotation marks. Even =COUNTIF(B2:B7,">=55") gives 4, straight from the scores.

Explore more: Excel course: all lessons, and Sort a table.