Excel Essential Logical function1
Excel Essential Logical function1
Logical Functions
Logical Function
If Function
If Function Practice 1
If Function Practice 2
IFANDOR
IFANDOR Practice Questions
Trainer VIJAYALAKSHMI G M
Contact No: 7406626859
Email: [email protected]
Logical Function HOME
Purpose: Used to Give the Condition. Based on the Conditions Output Calculation/Action will be performed.
How Set the Condition
Condition is set using Values[Number, Text or Date] and Comparision Operators
Comparison Operator
= Equal To
<> Not equal to
> Greater than
< Less Than
>= Greater than Equal To
<= Less than Equal To
After Checking the Condition it returns TRUE or FALSE values as Output.
Note: TRUE OR FALSE is Boolean Value.
Example
80.5 123
23.6 200
1 FALSE
Logical function
IF
IFERROR
AND
OR
NOT
ISNA
Logical Operator
AND FUNCTION
Action will be performed. True - For all conditions are True
Formula
=IF(A12<5000,"Get Bonus","No Bonus")
=IF(A12<5000,A12*10%,0)
=IF(AND(E3>=2500,E3<=5000),E3*10%,0)
Example: IF &OR Function
Dept - IT or HR
Dept Salary Bonus 10% on Salary
Others 5% Bonus
Hr 3200 320
IT 5000 500
Accounts 1750 87.5
Sales 4500 225
IT 3500 350
Hr 7500 750
Sales 4800 240
IT 8000 800
Hr 10000 1000
Accounts 2500 125
IF AND FUNCTION
IF OR FUNCTION
Exam Marks ScholarShip
Matric 81 Yes
Inter 70 Yes
Matric 60 No
Inter 90 Yes
Requirement : Exam: Inter or Marks is above 80.
Fill - Yes for True and No for False Output
Example IF WITH OR
Two Conditions on Single Column
ProductName Price Discount
Laptop 1000 100
TV 2500 125
Laptop 1400 140
Speaker 600 60
Fan 500 25
Speaker 1500 150
IF WITH OR FUNCTION
Product Price Discount
Prod1 1000 100
Prod2 500 25
Prod3 250 25
Prod4 1500 150
Prod5 750 37.5
Calculate the Discount 10% when the Price is above 750 or product is Prod3
Otherwise Discount will be 5%
IF WITH AND
Req: Bill Amt is between 25000 to 50000
Discount of 20% Otherwise 5%
BillAmount Discount
25000 1250
12000 600
32000 6400
55000 2750