Excel Functions 2
Excel Functions 2
• Things will not always be the way we want them to be. The
unexpected can happen. For example, let’s say you have to divide
numbers. Trying to divide any number by zero (0) gives an error.
Logical functions come in handy such cases. In this tutorial, we are
going to cover the following topics.
• What is a Logical Function?
• It is a feature that allows us to introduce decision-making when
executing formulas and functions. Functions are used to;
• Check if a condition is true or false
• Combine multiple conditions together
What is a condition and why does it matter?
•=IF(E4<6000,”Yes”,”No”)
• “=IF(…)” calls the IF functions
• “E4<6000” is the condition that the IF function evaluates. It
checks the value of cell address E4 (subtotal) is less than 6,000
• “Yes” this is the value that the function will display if the value
of E4 is less than 6,000
• “No” this is the value that the function will display if the value
of E4 is greater than 6,000
=IFNA(D6*E6,0)
Returns value if #N/A error does not occur. If #N/A
N.B the above formula returns zero
05 IFNA Logical error occurs, it returns NA value. #N/A error means
if both or either D6 or E6 is/are
a value if not available to a formula or function.
empty
=NOT(ISTEXT(0))
N.B. the above function returns
Returns true if the condition is false and returns
06 NOT Logical true. This is because ISTEXT(0)
false if condition is true
returns false and NOT function
converts false to TRUE
=OR(D8=”admin”,E8=”cashier”)
Used when evaluating multiple conditions. Returns
N.B. the above function returns
07 OR Logical true if any or all of the conditions are true. Returns
true if either or both D8 and E8
false if all of the conditions are false
admin or cashier