Logical Functions

You might also like

Download as xlsx, pdf, or txt
Download as xlsx, pdf, or txt
You are on page 1of 20

Logical Functions

Question
Wherever the Price column value is more than 2000, Find the
Result Column Staus as "HIGH" Else "LOW"
=A5>2000 = IF(A5>2000,"HIGH","LOW")
Price Result HIGH//LOW
3000 1 HIGH
1350 FALSE LOW
600 FALSE LOW
100 FALSE LOW
4069 TRUE HIGH
99 FALSE LOW
2518 TRUE HIGH

Name Score 1 Score 2


Richard 12 34
Stephen 28 56
John 81 12
Natasha 81 95
Elvin 60 71
Joseph 12 74

Total Amount Rate /Unit Total Unit


210 35
nd the

=IF(B5>C5,"decrement","increment,")
1/O
decrement
decrement
decrement
decrement
decrement
decrement
1

Result Question
score is greater than or equal to
90, Result should be "PASS" Else
"FAIL"

Question
Total Unit returns Error, replace
the same with a Text " Please
Enter Value more than 0"
Boolean Values

FALSE
TRUE

s greater than or equal to


sult should be "PASS" Else

Unit returns Error, replace


me with a Text " Please
Value more than 0"
Question

If Semester 2 is greater than Semester 1 Then Increment else decrement

Name Semester 1 Semester 2


Gopal Agrawal 12 34
Aniket Khirsagar 28 56
Rahul Shirude 81 12
Raju Chudiwal 81 95
Pramod Pawar 60 71
Pandhari Tayde 12 10
Increment else decrement

=IF(B5>C5,"decrement","increment,")
Result
increment,
increment,
decrement
increment,
increment,
decrement
Question
Geography > 40 AND Civics > 20 then Pass else Fail

Geography Civics
Name AND
(Marks out of 100) (Marks out of 50)
Sonal Agarwal 44 34 1
Palak Bharuka 88 22 TRUE
Shraddha D 81 12 FALSE
Rupali S 81 11 FALSE
Roopa B 60 44 TRUE
Nilima B 12 23 FALSE
Jayshree T 11 23 FALSE
=IF(AND(B5>40,C5>20),"PASS","FAIL")

Result IF(AND)

PASS Condition 1
PASS T
FAIL T
FAIL F
PASS F
FAIL
FAIL
Condition 2 Condition 3
T T
F F
T F
F F
FIND OUT WHETHER THE PERSON IS ELIGIBLE OR NOT ELIGIBLE FOR BONUS
Name Salary p.a. (US$) Division Rating
Gopal Agrawal 38,261 HFD 3
Aniket Khirsagar 82,135 RAD 4
Rahul Shirude 24,566 HFD 1
Raju Chudiwal 25,000 CDFD 2
Pramod Pawar 38,038 HFD 1
Pandhari Tayde (SIR) 72,682 RAD 3
Philip Bhalerao 353,556 ED 5
Pavan Lalwani 55,089 RAD 2
Sonal Agarwal 35,000 CDFD 1
Ajinkya Deshmukh 98,527 RDD 4
Gopal Agrawal 20,337 CDFD 1
Aniket Khirsagar 18,158 CDFD 3
NOT ELIGIBLE FOR BONUS
Rating 1-3 AND Division "CDFD" AND Salary < 50K
Not Eligible
Not Eligible
Not Eligible
Eligible
Not Eligible
Not Eligible
Not Eligible
Not Eligible
Eligible
Not Eligible
Eligible
Eligible
Question
Geography > 40 OR Civics > 20 then Pass else Fail

Geography Civics
Name OR
(Marks out of 100) (Marks out of 50)
Umesh S 44 34 1
Mahesh S 88 22 TRUE
Rahul Khandelwal 33 12 FALSE
Vijay Lalwani 81 11 TRUE
Rahul Mohite 60 44 TRUE
Dilip Thete 12 11 FALSE

Name Score 1 Score 2


Richard 12 34
Stephen 28 56
John 81 12
Natasha 81 95
Elvin 60 71
Joseph 12 74

Total Amount Rate /Unit Total Unit


210 35
Result IF (OR)
Condition 1 Condition 2
PASS T T
PASS T F
FAIL F T
PASS F F
PASS
FAIL

Result Question
if the first score is greater than or equal to 60 or the second scor
"PASS" Else

Question
Find the Total Unit and if the Total Unit returns Error, replace the
0"
Result
T
T
T
F

l to 60 or the second score is greater than or equal to 90, Result should be


Else "FAIL"

returns Error, replace the same with a Text " Please Enter Value more than
STATUS When there are more then
Rating
Name Rating
Output = IFS(B3<=3,"GOOD
Ajay Sharma 3 GOOD
Aniket Kshirsagar 4 OK
Gopal Bharuka 1 GOOD
Mahesh Siroya 5 OK
Umesh Siroya 1 GOOD
Nilesh Jaiswal 6 BAD
Palak Bharuka 5 OK
Sonal Agarwal 7 BAD
Pandhari Tayde 1 GOOD
Pramod Pawar 8 BAD
Rahul Khandelwal 1 GOOD
Rahul Mohite 2 GOOD
en there are more then two conditions , Use IFS

= IFS(B3<=3,"GOOD",B3<=5,"OK",B3>5,"BAD")

Rating <=3 Good


Rating <=5 Ok
Rating >5 Bad
Question
IF Error then replace it with "Invalid Quantity"

Name Sales in K Quantity Result


Gopal Agrawal 12 1 12 12
Aniket Khirsagar 28 2 14 14
Rahul Shirude 81 0 #DIV/0! invalid Ouantity
Raju Chudiwal 81 5 16.2 16.2
Pramod Pawar 60 3 20 20
Pandhari Tayde 12 0 #DIV/0! invalid Ouantity
Type of error
1 0 #DIV/01
4 A #VALUE!
2 4 #NAME?
Customer Transaction Type Number Status
Jones Purchase debit 1
Kivell Sale credit 5
Howard Sale credit 6
Gill Purchase debit 9
Anderson Sale credit 2
Anderson Sale credit 3
Anderson Purchase debit 4
Howard Purchase debit 9
Howard Sale credit 8
Jones Sale credit 6
Kivell Purchase debit
Howard Sale credit <5 Less than 5
Parent Purchase debit =5 Is 5
Jones Sale credit >5 Greater than 5
Anderson Purchase debit
Jones Purchase debit
Kivell Purchase debit
Jones Sale credit
Parent Sale credit
Kivell Sale credit
Smith Purchase debit

Purchase Debit
Sale Credit

=IF(B2="purchase","debit","credit")
Name Marks Grade Assignment
Amarjeet Singh 81
Sachin Kumar Sharma 74
Mohit Malik 44
Deepak Sharma 75
Kratika Bhatnagar 66
Gaurav Khanna 86
Asif Khan 41
Ajaj Kumar Rana 63
Aakash Bhutani 89
Praveen Sharma 89
Ravi Ranjan 86
Vivek Pant 61
Pallavi Srivastava 42
Anoop Kumar Singh 28
Shivam Kumar Gupta 57
Akhil Gupta 93
Yatish Kumar 89
Niranjan Singh Jagde 82

Outstanding >=90
Distinction >=80
First Division >=60
Second Division >=45
Third Division >=33
Fail

You might also like