0% found this document useful (0 votes)
10 views

GUIDE 2 CLASS 6C SMT 1

This study guide covers logical functions in Microsoft Excel and Google Sheets, including NOT, AND, OR, XOR, and IFERROR. Each function is explained with its purpose, usage, and examples to illustrate how they work. The guide aims to help students understand how to apply these functions for logical evaluations in spreadsheets.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views

GUIDE 2 CLASS 6C SMT 1

This study guide covers logical functions in Microsoft Excel and Google Sheets, including NOT, AND, OR, XOR, and IFERROR. Each function is explained with its purpose, usage, and examples to illustrate how they work. The guide aims to help students understand how to apply these functions for logical evaluations in spreadsheets.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

STUDY GUIDE 2

SUBJECT : Class/ Smt : 6 C/ I (FIRST SEMESTER) Teachers

Day / Date : Tuesday / 13th August 2024


Parents

Computer Name / No : ............................................................./ ......

LEARNING OBJECTIVES :

3.2. Students understand the Logical Function ( Not, AND, OR, XOR, IFERROR) Formula
in Microsoft Excel / Google Sheets

LOGICAL FUNCTION 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.

Here's how to use excel's NOT function:

Formula NOT Function


=NOT(logical)

The Logical argument in Excel's NOT function above is a logical value or


expression that can be evaluated as TRUE or 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

II. AND Function


The AND function or formula is an excel function that is used to get a logical
value of TRUE or FALSE from a comparison of 2 or more conditions.

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.

Logic Test AND Formula Result


All logical conditions are TRUE TRUE
All logical conditions are FALSE FALSE
One or more condition evaluations evaluate to FALSE 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:

Formula AND Function


AND(Logika1; [Logika2]; ...)

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.

Logic Test OR Formula Result


All logical conditions are TRUE TRUE
All logical conditions are FALSE FALSE
One or more condition evaluations evaluate to TRUE TRUE

How to write the AND function in an excel formula is as follows:


Formula OR Function
OR(Logika1; [Logika2]; ...)

Consider the following simple example of the Excel OR formula:


IV. XOR Function
XOR function is a function that is used to perform XOR logic in mathematics.
XOR in boolean algebra is called exclusive OR which means "the one or the
other but not both". The XOR function has a truth value of TRUE if the number
of true tests is odd.

How to Use the XOR Function

=XOR(logical1, [logical2], …)

 logical1 is the 1st logical test defined in the XOR function.


 [logical2] is the 2nd logical test defined in the XOR function.
 [logical1],…, [logical255] can be defined up to 255 tests.
 Tests can be in the form of mathematical operations (example: A1 >= 9)

IMPORTANT: The use of a comma (,) or semicolon (;) in FORMULA depends on


the version of Microsoft Excel and the language configuration on your
computer.

XOR function with result TRUE


The XOR function returns TRUE if the number of tests that evaluate to true is
odd {1, 3, 5, 7, …}.
XOR function with FALSE result
The XOR function returns FALSE if the number of tests that evaluate to true is
even {2, 4, 6, 8, …}.

Look at the table below:

XOR table with 2 conditions


XOR table with 3 conditions

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)

IFERROR Formula Description:


a) Value
Is the value that is tested whether it produces an error message or an
error or not
b) Value_if_error
Is an action if the Value or formula being tested produces an error
message or error.

You might also like