Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
3K views

If Function

The IF function returns one value if a condition is true and another if it is false. The syntax includes the condition, the value if true, and the value if false. An example uses an IF function to determine if a student passed or failed based on their final average being greater than or equal to 50.

Uploaded by

api-297910907
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3K views

If Function

The IF function returns one value if a condition is true and another if it is false. The syntax includes the condition, the value if true, and the value if false. An example uses an IF function to determine if a student passed or failed based on their final average being greater than or equal to 50.

Uploaded by

api-297910907
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 5

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

You might also like