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

5. Logical Function

The document explains the use of logical functions in Excel, including IF, AND, OR, and NOT, with their syntax and examples. It demonstrates how to calculate Pass/Fail status, Grades, TA values, and Commission based on specific criteria. Each function is illustrated with a table showing relevant calculations and conditions.

Uploaded by

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

5. Logical Function

The document explains the use of logical functions in Excel, including IF, AND, OR, and NOT, with their syntax and examples. It demonstrates how to calculate Pass/Fail status, Grades, TA values, and Commission based on specific criteria. Each function is illustrated with a table showing relevant calculations and conditions.

Uploaded by

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

Logical Function

1. IF( ) : If function check the selected cell value and returns true whether the given condition is satisfied otherwise it will
return False. Syntax: =IF([Criteria], [Value if True],[Value if False])
Example: If you want to calculate Pass or Fail status from given table then you have to use IF logical function. The
criteria will display Pass for those who got Average marks more than equal 40 else it will display Fail.

A B C D E F G H
1 Roll Name English Bengali Computer Total Average Status
2 101 A. Mukherjee 85 80 90 =Sum(C2:E2) =Average(C2:E2) =if(G2>=40,”Pass”, “Fail”)
3 102 S. Mondal 65 76 85
4 103 R. Sharnma 75 45 65
5 104 V. Prasad 40 20 35
6 105 T. Sengupta 35 30 38
2. AND( ) : And Logical function returns true value if all the given conditions inside it is true otherwise it will return false
value. Syntax: =AND([Criteria 1],[Criteria 2],……….., N)

Example: If you want to calculate Grade from given table then you have to use AND logical function. The criteria will be
as follows:- (Average>=90 then “A+”), (Average>=80 and Average<90 then “A”), (Average>=70 and Average<80 then
“B+”), (Average>=60 and Average<70 then “B”), (Average>=50 and Average<60 then “C+”), (Average>=40 and
Average<60 then “C”), (Average<40 then “Fail”).

A B C D E F G H
1 Roll Name English Bengali Computer Total Average Grade
2 101 A. Mukherjee 85 80 90 =Sum(C2:E2) =Average(C2:E2) =if(G2>=90,”A+”,
3 102 S. Mondal 65 76 85 if(AND(G2>=80, G2<90),”A”,
4 103 R. Sharnma 75 45 65 if(and(G2>=70,G2<80),”B+”,
if(and(G2>=60,G2<70),”B”,
5 104 V. Prasad 40 20 35
if(and(G2>=50,G2<60),”C+”,
6 105 T. Sengupta 35 30 38 if(and(G2>=40,G2<50),”C”,
“Fail”))))))
3. OR( ) : Or Logical function returns true value if any one of the given conditions inside it is true. If all the given Conditions
are false then it will return false value. Syntax: =OR([Criteria 1],[Criteria 2],……….., N)
Example: If you want to calculate TA value for all those who are working on Marketing or Sales Department from given
table then you have to use OR logical function.

A B C D E F G
1 EMPID Name Designation Department Basic TA Total
2 E101 A. Mukherjee Manager Admin 29000 =if(OR(D2=”Marketing”,D2=”Sales”),E2*25%,0) =E2+F2
3 E102 S. Mondal Executive Marketing 20500
4 E103 R. Sharnma Assistant Admin 26500
5 E104 V. Prasad Accountant Accounts 23500
6 E105 T. Sengupta Executive Sales 19800
4. NOT( ) : NOT function in Excel to reverse a value of its argument. In other words, if logical evaluates to FALSE, the
NOT function returns TRUE and vice versa. For example, both of the below formulas return FALSE.
Syntax: =NOT([Criteria])
Example: If you want to calculate Commission value for those who make Target Achieve from given table then you have
to use NOT logical function.

A B C D
1 EMPID Name Sales Target Target Achieve Commission
2 E101 A. Mukherjee 25000 15000 =IF(NOT(D2=” “), D2*15%, "No Commission”)
3 E102 S. Mondal 20000
4 E103 R. Sharnma 25000 20000
5 E104 V. Prasad 45000 40000
6 E105 T. Sengupta 35000

You might also like