Excel Gyan: Logical Function
Excel Gyan: Logical Function
LOGICAL FUNCTION
LOGICAL OPERATORS:
> (Greater than)
< (Less than)
<> (Not Equal to)
= (Equal to)
>= (Greater than or Equal to)
<= (Less than or Equal to)
Example:
67 1 AND(K33>50,K33<100)
Truth Table: OR
Logical 1 Logical 2 Result
1 1 1
1 0 1
0 1 1
0 0 0
Example:
67 1 OR(K51<50,K51<100)
INFORMATION FUNCTIONS:
ISNUMBER:It checks whether a value is number and returns true or false
Syntax: ISNUMBER(Value)
Example: a123 0
ISTEXT:It checks whether a value is text and returns true or false
Syntax: ISTEXT(Value)
Example: a123 1
ISERROR:It checks whether a value is error and returns true or false
Syntax: ISERROR(Value)
Example: #NAME? 1
IF FUNCTION
It check whether condition met and returns one value if true and another value if fals
Syntax: IF(Logical Test,Value if True,[Value if False])
here square bracket says that value if false is optional
Example: 100 Gain
NESTED IF
Allows to use multiple IF statement within a IF statement for multiple logical test
Example: grades display Nested iF
<35--Fail
<50---"C" 100 A
Grade 12 Fail
<75---"B" 54 B
Grade
above 34 Fail
75---"A" 99 A
IFERROR:
It Check whether the expression is error and allows to display any other value instead of error
Syntax: IFERROR(Value,Value if error)
Example: value not divisible IFERROR(SUM(1,3)/0,"value not divisible")
CEL GYAN
LLS TO YOUR PROFESSIONAL CAREER
UNCTION
T)
s true
ISNUMBER(L57)
e or false
ISTEXT(L60)
true or false
ISERROR(L63)
not divisible")