Page 106 - Computing E-Book Grade 5 (Updated)
P. 106

The City School  2021-2022







           IF

           Excel’s IF function can often prove to be very useful. You can use this function to

           branch to different values or actions depending on a specified condition. The structure
           of an IF function is:




                                      =IF (logical_test, value_if_true,
                                      value_if_false)



           •  logical_test: a value or logical expression that can be evaluated as TRUE or FALSE.
           •  value_if_true: the value to return when logical_test evaluates to TRUE.

           •  value_if_false: the value to return when logical_test evaluates to FALSE.








































         In this example, if the age is greater then 18, then the IF statement displays “Adult“ else

         it displays “Underage.“

















                                                                                                             106
   101   102   103   104   105   106   107   108   109   110   111