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

Excel Essential Logical function1

The document provides an overview of logical functions in corporate training, focusing on the IF function and its applications in various scenarios such as calculating bonuses, discounts, and tax based on given conditions. It includes examples and practice questions to illustrate the use of logical operators like AND and OR in conjunction with the IF function. Additionally, it outlines the syntax and purpose of logical functions, emphasizing their role in decision-making processes within Excel.

Uploaded by

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

Excel Essential Logical function1

The document provides an overview of logical functions in corporate training, focusing on the IF function and its applications in various scenarios such as calculating bonuses, discounts, and tax based on given conditions. It includes examples and practice questions to illustrate the use of logical operators like AND and OR in conjunction with the IF function. Additionally, it outlines the syntax and purpose of logical functions, emphasizing their role in decision-making processes within Excel.

Uploaded by

peppasoodan
Copyright
© © All Rights Reserved
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 15

Win Corporate Training

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

Uname Password Output


admin1 admin123 FALSE
Checks For Uname is admin and
password is admin123
OR FUNCTION
True - For ANY one Condition is true
IF Function
HOME
Definition : Used to perform the calculation/Action based on the Condition
Syntax :
if(<Logical_test>, <Value_if_True>, <Value_if_False>)
Explanation:
Logical_test : Set using comparison operators and logical function
Value_if_True: Returns when the condition Output is True
Value_if_False : Returns when the condition Output is False

Req: Check Whether employee is Req. To Get Bonus Salary


eligible to get the bonus. Below 5000
Condition: Salary below 5K Bonus - 10% of Salary

Salary Bonus Bonus Amt


5000 No Bonus 0
4500 Get Bonus
5600 No Bonus
3698 Get Bonus
1500 Get Bonus
7600 No Bonus

Formula
=IF(A12<5000,"Get Bonus","No Bonus")
=IF(A12<5000,A12*10%,0)

Example: IF Function with <> Operator


Dept Salary Bonus
HR 5200 0
Accounts 4587 458.7
IT 6987 698.7
HR 10000 0
Accounts 9874 987.4
IT 15000 1500

Req: All the Employees will get 10% Bonus on Salary


Except people from the "HR" dept.
EXAMPLE IF FUNCTION Discount Calculation
Marks Result Fees Discount
50 Fill the Result column 5000 1000
45 When Marks is above 70 Result is "Pass" 6000
63 Otherwise "Fail" 10000
78 15000
60 7500
85 25000
96
78 Calculate Discount based on the F
87 When the fees is above 10000 Dis
74 otherwise it will be 20% on the Fe
Discount Calculation HOME
Amt After Discount

Discount based on the Fees


fees is above 10000 Discount is 10% on Fees
it will be 20% on the Fees
IF Function Practice Question HOME
Req: When Bill Amount is Above Req: When Bill Amount is
25000 Disount 10% Above 50000 Tax: 5%
Below 25000 Discount will be 0 Below 50000 Tax will be 0

Bill Amount Discount Tax Total Amount


45000 4500 0 40500
15000 0 0 15000
75000 7500 3750 71250
20000 0 0 20000
80000 8000 4000 76000
25000 0 0 25000
HOME Example IF FUNCTION
Name Sales 2020 Sales 2021 Status

Vijay 80000 90000 Raised


Peppa 2000 40007 Raised
Mythri 35555 34446 Fired
Keerthana 334242 69000 Fired
Gia 20000 5400 Fired
Pratikshaw 1223 23 Fired

Compare the sales of 2021 to 2020 if it more fill


the status as "Raise"otherwise "fired"
IF, AND & OR FUNCTION Ex: IF & AND Function

HOME Bonus 10%


Salary Salary bt. 2500
to 5000

IF & AND FUNCTION 3200 320


AND Function is used to give Multiple Condition 5000 0
Returns TRUE when all the conditions are TRUE 1750 0
4500 450
IF & OR FUNCTION 3500 350
OR Function is used to give Multiple Condition 7500 0
Returns TRUE when any one of the conditionis TRUE 4800 480
8000 0
10000 0
2500 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

Exam Marks ScholarShip


Matric 81 Yes
Inter 70 No
Matric 60 No
Inter 90 No
Req: Student will get Scholarship for Exam
type "Matric" and Marks above 80
Fill - Yes for True and No for False Output

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

Req: Calculate Discount


Condition : When Product is Laptop or Speaker Discount will be 10% on the Price
Other products it will be 5%

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

You might also like