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

Lesson-8-Logical-functions

Logical functions in Excel, particularly the IF function, allow users to test conditions and return values based on the results. Comparison operators are essential for these tests, and nested IF functions can handle multiple conditions. The AND and OR functions enhance logical testing by allowing multiple comparisons, returning TRUE or FALSE, and are often used in conjunction with the IF function.

Uploaded by

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

Lesson-8-Logical-functions

Logical functions in Excel, particularly the IF function, allow users to test conditions and return values based on the results. Comparison operators are essential for these tests, and nested IF functions can handle multiple conditions. The AND and OR functions enhance logical testing by allowing multiple comparisons, returning TRUE or FALSE, and are often used in conjunction with the IF function.

Uploaded by

elialleje083
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 12

LOGICAL

FUNCTIONS
Logical functions are
some of the most popular
and useful in Excel. They
can test values in other
cells and perform actions
dependent upon the result
of the test. This helps us to
Comparison Operators to Use with
Logical Functions

When performing the logical test with cell


values, you need to be familiar with the
comparison operators. You can see a
breakdown of these in the table
Condition below.
Operator
Equal to =
Greater than >
Less Than <
Greater than or
>=
equal to
Less than or
<=
equal to
IF Function

IF Function, which test specified


criteria to see if it is true or false,
then returns one value when a
condition is met, or is true, and
returns another value when the
condition is not met, or is false..
Syntax
IF(logical_test, [value_if_true],
[value_if_false])
The IF Function has three arguments:
(1) Logical_test: a condition that is

tested to determine if it is either


true or false,
(2) value_if_true: the resulting value

if the condition is true, and


(3) value_if_false: the resulting value

if condition is false.
Nested IF Function

Using a function as one of the


arguments in a formula that uses
a function is called nesting, and
we’ll refer to that function as a
nested function.
This means that we can write an
IF function within another IF
function.
The IF function can be nested
One IF function is capable
of performing two actions
(the value_if_true and va
lue_if_false ). But if we
embed (or nest) another IF
function in
the value_if_false section,
Take this example
where we want to
display the word
"Excellent" if the
value in cell B2 is
greater than or equal
to 90, display "Good"
if the value is greater
than or equal to 75,
and display "Poor" if
anything else.
AND and OR Logical
Functions
The AND and OR functions are
used when you want to perform
more than one comparison in your
formula. The IF function alone can
only handle one condition, or
comparison.
The AND and OR functions will
return the value of TRUE or FALSE.
The AND function returns
TRUE only if every condition
is met, and otherwise
returns FALSE. The OR
function returns TRUE if one
or all of the conditions are
met, and returns FALSE only
These functions can test up to
255 conditions, so are
certainly not limited to just two
conditions.

Syntax
=AND(Logical1,[Logical2],
…)
Using AND and OR with the IF
Function

Because the AND and OR


functions return the value of TRUE
or FALSE when used alone, it's
rare to use them by themselves.
Instead, you'll typically use them
with the IF function, or within an
Excel feature such as Conditional
Formatting or Data Validation to
perform some retrospective action

You might also like