GUIDE 2 CLASS 6C SMT 1
GUIDE 2 CLASS 6C SMT 1
LEARNING OBJECTIVES :
3.2. Students understand the Logical Function ( Not, AND, OR, XOR, IFERROR) Formula
in Microsoft Excel / Google Sheets
I. NOT Function
In Microsoft Excel, the NOT function is used to reverse the argument value. If
the logic being tested produces a value of FALSE, then the NOT formula will
return a value of TRUE and if the logic tested produces a value of TRUE, the
NOT formula will return a logical value of FALSE.
Consider the following example of using the NOT function in an excel formula
DESCRIPTION :
1. The opposite of TRUE is FALSE
2. The opposite of FALSE is TRUE
3. The logical value 1=2 is FALSE, NOT reverses the FALSE value to TRUE
The AND function returns a logical value of TRUE if all the conditions of the
arguments being tested are met or evaluates to TRUE and returns a value of
FALSE if one of the arguments is not met or evaluates to FALSE.
The following table compares the AND formula with 2 evaluation conditions
The following table compares the AND formula with 3 evaluation conditions
How to write the AND function in an excel formula is as follows:
Example :
III. OR Function
The OR function is an excel function that is used to return TRUE if one of the
arguments is TRUE and returns FALSE if all arguments are FALSE. So in terms of
generating a logical value of True or False, the OR function is the opposite of
the AND function.
=XOR(logical1, [logical2], …)
V. IFERR FUNCTION
In Microsoft Excel, IFERROR is used to generate a certain value if the excel
formula that we specify produces an error value. If the excel formula does not
produce an error message, it will produce the original value of the excel
formula.
IFERROR FUNCTION
IFERROR(value; value_if_error)