Introduction
The AND, OR, and NOT functions become especially useful when an Excel formula needs to check more than one condition. When combined with IF, they can be used for eligibility checks, results, attendance, discounts, approvals, targets, and other practical decisions. In this chapter, you will practice different examples using combinations of Excel-AND, OR, and NOT with IF Practice Questions with Solutions.
Question 1: Check Student Pass Status Using AND
Problem Statement
A student must score 40 or more in both subjects to pass. Use IF and AND to determine whether each student has passed.
Excel Data
| Student | Mathematics | Science | Result |
|---|---|---|---|
| Rahul | 75 | 68 | |
| Priya | 82 | 35 | |
| Amit | 42 | 51 | |
| Neha | 38 | 72 | |
| Arjun | 65 | 44 |
Solution
In D2, enter:
=IF(AND(B2>=40,C2>=40),"Pass","Fail")
Copy the formula down.
Expected Output
| Student | Mathematics | Science | Result |
|---|---|---|---|
| Rahul | 75 | 68 | Pass |
| Priya | 82 | 35 | Fail |
| Amit | 42 | 51 | Pass |
| Neha | 38 | 72 | Fail |
| Arjun | 65 | 44 | Pass |
AND returns TRUE only when all specified conditions are TRUE.
Question 2: Employee Bonus Eligibility Using AND
Problem Statement
An employee is eligible for a bonus if:
- Sales are at least ₹5,00,000
- Customer Rating is at least 4
Use IF with AND.
Excel Data
| Employee | Sales | Customer Rating | Bonus Eligibility |
|---|---|---|---|
| Rahul | 650000 | 4.5 | |
| Priya | 480000 | 4.8 | |
| Amit | 720000 | 3.8 | |
| Neha | 550000 | 4.2 | |
| Arjun | 450000 | 3.9 |
Solution
In D2, enter:
=IF(AND(B2>=500000,C2>=4),"Eligible","Not Eligible")
Copy down.
Expected Output
| Employee | Sales | Customer Rating | Bonus Eligibility |
|---|---|---|---|
| Rahul | 650000 | 4.5 | Eligible |
| Priya | 480000 | 4.8 | Not Eligible |
| Amit | 720000 | 3.8 | Not Eligible |
| Neha | 550000 | 4.2 | Eligible |
| Arjun | 450000 | 3.9 | Not Eligible |
Question 3: Free Delivery Using OR
Problem Statement
A store offers free delivery when either of these conditions is met:
- Order amount is at least ₹2,000
- Customer is a Premium member
Use IF and OR.
Excel Data
| Customer | Order Amount | Premium Member | Delivery |
|---|---|---|---|
| Rahul | 2500 | No | |
| Priya | 1200 | Yes | |
| Amit | 1500 | No | |
| Neha | 3000 | No | |
| Arjun | 800 | Yes |
Solution
In D2, enter:
=IF(OR(B2>=2000,C2="Yes"),"Free Delivery","Delivery Charges")
Copy down.
Expected Output
| Customer | Order Amount | Premium Member | Delivery |
|---|---|---|---|
| Rahul | 2500 | No | Free Delivery |
| Priya | 1200 | Yes | Free Delivery |
| Amit | 1500 | No | Delivery Charges |
| Neha | 3000 | No | Free Delivery |
| Arjun | 800 | Yes | Free Delivery |
OR returns TRUE when at least one condition is TRUE.
Question 4: Use NOT to Check Inactive Employees
Problem Statement
An employee should be marked Active when the value in the Status column is not "Inactive".
Use IF and NOT.
Excel Data
| Employee | Status | Employee Type |
|---|---|---|
| Rahul | Active | |
| Priya | Inactive | |
| Amit | Active | |
| Neha | Active | |
| Arjun | Inactive |
Solution
In C2, enter:
=IF(NOT(B2="Inactive"),"Active Employee","Inactive Employee")
Copy down.
Expected Output
| Employee | Status | Employee Type |
|---|---|---|
| Rahul | Active | Active Employee |
| Priya | Inactive | Inactive Employee |
| Amit | Active | Active Employee |
| Neha | Active | Active Employee |
| Arjun | Inactive | Inactive Employee |
NOT reverses a logical result. If the condition is TRUE, NOT makes it FALSE, and vice versa.
Question 5: Scholarship Eligibility Using AND and OR
Problem Statement
A student receives a scholarship if:
- Marks are at least 85, OR
- Marks are at least 75 AND attendance is at least 90%
Use IF, AND, and OR.
Excel Data
| Student | Marks | Attendance | Scholarship |
|---|---|---|---|
| Rahul | 90 | 82% | |
| Priya | 78 | 94% | |
| Amit | 72 | 96% | |
| Neha | 86 | 75% | |
| Arjun | 80 | 88% |
Solution
In D2, enter:
=IF(OR(B2>=85,AND(B2>=75,C2>=90%)),"Eligible","Not Eligible")
Copy down.
Expected Output
| Student | Marks | Attendance | Scholarship |
|---|---|---|---|
| Rahul | 90 | 82% | Eligible |
| Priya | 78 | 94% | Eligible |
| Amit | 72 | 96% | Not Eligible |
| Neha | 86 | 75% | Eligible |
| Arjun | 80 | 88% | Not Eligible |
This example shows how AND can be placed inside OR.
Question 6: Approve a Loan Application Using AND and NOT
Problem Statement
A loan application is approved when:
- Monthly income is at least ₹50,000
- Credit score is at least 700
- Applicant is not marked as
"Rejected"
Excel Data
| Applicant | Monthly Income | Credit Score | Status | Decision |
|---|---|---|---|---|
| Rahul | 65000 | 750 | Approved | |
| Priya | 55000 | 680 | Approved | |
| Amit | 70000 | 720 | Rejected | |
| Neha | 48000 | 780 | Approved | |
| Arjun | 60000 | 710 | Approved |
Solution
In E2, enter:
=IF(AND(B2>=50000,C2>=700,NOT(D2="Rejected")),"Approve","Reject")
Copy down.
Expected Output
| Applicant | Monthly Income | Credit Score | Status | Decision |
|---|---|---|---|---|
| Rahul | 65000 | 750 | Approved | Approve |
| Priya | 55000 | 680 | Approved | Reject |
| Amit | 70000 | 720 | Rejected | Reject |
| Neha | 48000 | 780 | Approved | Reject |
| Arjun | 60000 | 710 | Approved | Approve |
Question 7: Check Product Restocking Requirement
Problem Statement
A product needs to be restocked when:
- Stock is less than 10, OR
- The product is marked as
"Discontinued".
Use IF and OR.
Excel Data
| Product | Stock | Status | Action |
|---|---|---|---|
| Laptop | 15 | Available | |
| Mouse | 6 | Available | |
| Keyboard | 25 | Discontinued | |
| Monitor | 8 | Available | |
| Printer | 20 | Available |
Solution
In D2, enter:
=IF(OR(B2<10,C2="Discontinued"),"Review Stock","No Action")
Copy down.
Expected Output
| Product | Stock | Status | Action |
|---|---|---|---|
| Laptop | 15 | Available | No Action |
| Mouse | 6 | Available | Review Stock |
| Keyboard | 25 | Discontinued | Review Stock |
| Monitor | 8 | Available | Review Stock |
| Printer | 20 | Available | No Action |
Question 8: Employee Performance Category Using AND
Problem Statement
Classify employees using these rules:
- Excellent → Sales at least ₹8,00,000 AND rating at least 4.5
- Otherwise → Regular
Excel Data
| Employee | Sales | Rating | Performance |
|---|---|---|---|
| Rahul | 850000 | 4.7 | |
| Priya | 900000 | 4.1 | |
| Amit | 720000 | 4.8 | |
| Neha | 820000 | 4.6 | |
| Arjun | 600000 | 4.2 |
Solution
In D2, enter:
=IF(AND(B2>=800000,C2>=4.5),"Excellent","Regular")
Copy down.
Expected Output
| Employee | Sales | Rating | Performance |
|---|---|---|---|
| Rahul | 850000 | 4.7 | Excellent |
| Priya | 900000 | 4.1 | Regular |
| Amit | 720000 | 4.8 | Regular |
| Neha | 820000 | 4.6 | Excellent |
| Arjun | 600000 | 4.2 | Regular |
Question 9: Check Whether a Customer Needs Follow-Up
Problem Statement
A customer needs follow-up when:
- The order status is
"Pending", OR - The payment status is
"Failed"
Use IF and OR.
Excel Data
| Customer | Order Status | Payment Status | Follow-Up |
|---|---|---|---|
| Rahul | Completed | Paid | |
| Priya | Pending | Paid | |
| Amit | Completed | Failed | |
| Neha | Pending | Failed | |
| Arjun | Completed | Paid |
Solution
In D2, enter:
=IF(OR(B2="Pending",C2="Failed"),"Follow Up","No Follow Up")
Copy down.
Expected Output
| Customer | Order Status | Payment Status | Follow-Up |
|---|---|---|---|
| Rahul | Completed | Paid | No Follow Up |
| Priya | Pending | Paid | Follow Up |
| Amit | Completed | Failed | Follow Up |
| Neha | Pending | Failed | Follow Up |
| Arjun | Completed | Paid | No Follow Up |
Question 10: Create a Practical Employee Eligibility Check
Problem Statement
A company wants to identify employees eligible for a training program.
An employee is eligible when:
- Department is IT OR Data Analytics
- Attendance is at least 85%
- Employee is not on probation
Use IF, AND, OR, and NOT in one formula.
Excel Data
| Employee | Department | Attendance | Employment Status | Eligibility |
|---|---|---|---|---|
| Rahul | IT | 92% | Permanent | |
| Priya | HR | 95% | Permanent | |
| Amit | Data Analytics | 88% | Permanent | |
| Neha | IT | 80% | Permanent | |
| Arjun | Data Analytics | 90% | Probation | |
| Simran | IT | 87% | Permanent |
Solution
In E2, enter:
=IF(AND(OR(B2="IT",B2="Data Analytics"),C2>=85%,NOT(D2="Probation")),"Eligible","Not Eligible")
Copy the formula down.
Expected Output
| Employee | Department | Attendance | Employment Status | Eligibility |
|---|---|---|---|---|
| Rahul | IT | 92% | Permanent | Eligible |
| Priya | HR | 95% | Permanent | Not Eligible |
| Amit | Data Analytics | 88% | Permanent | Eligible |
| Neha | IT | 80% | Permanent | Not Eligible |
| Arjun | Data Analytics | 90% | Probation | Not Eligible |
| Simran | IT | 87% | Permanent | Eligible |
This question combines all four functions:
IFANDORNOT
It is a useful pattern for more advanced logical formulas.
Key Takeaways
ANDchecks whether all conditions are TRUE.ORin excel checks whether at least one condition is TRUE.NOTreverses a logical result.IFin excel can useAND,OR, andNOTto create practical decision-making formulas.ANDis useful when multiple requirements must be satisfied.ORis useful when any one of several conditions can qualify.NOTin excel is useful when you need to exclude a particular condition.- Functions can be nested inside one another.
ANDcan be placed insideOR, andNOTcan be used insideANDorOR.- Combining logical functions is useful for eligibility, approvals, attendance, sales targets, inventory and status checks.
FAQs
1. What does AND do in Excel?
AND checks multiple conditions and returns TRUE only when every condition is TRUE.
=AND(A2>=50,B2>=50)
2. What does OR do in Excel?
OR returns TRUE when at least one of its conditions is TRUE.
=OR(A2="IT",A2="HR")
3. What does NOT do in Excel?
NOT reverses a logical result.
=NOT(A2="Inactive")
If A2 contains "Inactive", the result is FALSE.
4. Can AND be used with IF?
Yes. For example:
=IF(AND(B2>=40,C2>=40),"Pass","Fail")
5. Can OR be used with IF?
Yes. For example:
=IF(OR(B2>=80,C2>=90),"Eligible","Not Eligible")
6. Can AND and OR be used together?
Yes. This is useful when a decision contains different groups of conditions.
=IF(OR(B2="IT",AND(B2="HR",C2>=90%)),"Eligible","Not Eligible")
7. Can NOT be combined with AND?
Yes. For example:
=IF(AND(B2>=50,NOT(C2="Rejected")),"Approve","Reject")
8. What is the difference between AND and OR?
AND requires every condition to be TRUE, while OR requires at least one condition to be TRUE.
9. Can I use text conditions with AND and OR in excel?
Yes. You can compare text values such as department, status, category, city, or membership type.
=IF(OR(B2="IT",B2="Finance"),"Allowed","Not Allowed")
10. Why are AND, OR and NOT important in Excel?
They allow formulas to handle multiple conditions instead of checking only one condition. They are especially useful for practical data analysis, eligibility checks, approvals, employee records and business rules.
Written by Shubhranshu Shekhar, who has trained 20000+ students in coding.
