IF Function
IF Function
Most powerful of the logic functions
Returns one value if a condition is true,
another if it is false
Syntax for IF function:
IF (condition,value_if_true, value_if_false)
Example
An IF function is used to determine whether a
student passed or failed based on the final
average.
=IF (C8>=50, Pass, Fail)
Condition If true Pass will be
entered in the cell,
the same for fail
Always ensure that Pass and Fail labels are in quotation
marks
Condition functions for IF statements
= equal to
<less than
>greater than
<= less than or equal to
>=greater than or equal to
<> not equal to
Reference
Information Technology for CSEC Examinations
3rd Edition Kelvin Skeete. Page 322