Excel-AND, OR and NOT with IF Practice Questions with Solutions

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

StudentMathematicsScienceResult
Rahul7568
Priya8235
Amit4251
Neha3872
Arjun6544

Solution

In D2, enter:

=IF(AND(B2>=40,C2>=40),"Pass","Fail")

Copy the formula down.

Expected Output

StudentMathematicsScienceResult
Rahul7568Pass
Priya8235Fail
Amit4251Pass
Neha3872Fail
Arjun6544Pass

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

EmployeeSalesCustomer RatingBonus Eligibility
Rahul6500004.5
Priya4800004.8
Amit7200003.8
Neha5500004.2
Arjun4500003.9

Solution

In D2, enter:

=IF(AND(B2>=500000,C2>=4),"Eligible","Not Eligible")

Copy down.

Expected Output

EmployeeSalesCustomer RatingBonus Eligibility
Rahul6500004.5Eligible
Priya4800004.8Not Eligible
Amit7200003.8Not Eligible
Neha5500004.2Eligible
Arjun4500003.9Not 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

CustomerOrder AmountPremium MemberDelivery
Rahul2500No
Priya1200Yes
Amit1500No
Neha3000No
Arjun800Yes

Solution

In D2, enter:

=IF(OR(B2>=2000,C2="Yes"),"Free Delivery","Delivery Charges")

Copy down.

Expected Output

CustomerOrder AmountPremium MemberDelivery
Rahul2500NoFree Delivery
Priya1200YesFree Delivery
Amit1500NoDelivery Charges
Neha3000NoFree Delivery
Arjun800YesFree 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

EmployeeStatusEmployee Type
RahulActive
PriyaInactive
AmitActive
NehaActive
ArjunInactive

Solution

In C2, enter:

=IF(NOT(B2="Inactive"),"Active Employee","Inactive Employee")

Copy down.

Expected Output

EmployeeStatusEmployee Type
RahulActiveActive Employee
PriyaInactiveInactive Employee
AmitActiveActive Employee
NehaActiveActive Employee
ArjunInactiveInactive 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

StudentMarksAttendanceScholarship
Rahul9082%
Priya7894%
Amit7296%
Neha8675%
Arjun8088%

Solution

In D2, enter:

=IF(OR(B2>=85,AND(B2>=75,C2>=90%)),"Eligible","Not Eligible")

Copy down.

Expected Output

StudentMarksAttendanceScholarship
Rahul9082%Eligible
Priya7894%Eligible
Amit7296%Not Eligible
Neha8675%Eligible
Arjun8088%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

ApplicantMonthly IncomeCredit ScoreStatusDecision
Rahul65000750Approved
Priya55000680Approved
Amit70000720Rejected
Neha48000780Approved
Arjun60000710Approved

Solution

In E2, enter:

=IF(AND(B2>=50000,C2>=700,NOT(D2="Rejected")),"Approve","Reject")

Copy down.

Expected Output

ApplicantMonthly IncomeCredit ScoreStatusDecision
Rahul65000750ApprovedApprove
Priya55000680ApprovedReject
Amit70000720RejectedReject
Neha48000780ApprovedReject
Arjun60000710ApprovedApprove

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

ProductStockStatusAction
Laptop15Available
Mouse6Available
Keyboard25Discontinued
Monitor8Available
Printer20Available

Solution

In D2, enter:

=IF(OR(B2<10,C2="Discontinued"),"Review Stock","No Action")

Copy down.

Expected Output

ProductStockStatusAction
Laptop15AvailableNo Action
Mouse6AvailableReview Stock
Keyboard25DiscontinuedReview Stock
Monitor8AvailableReview Stock
Printer20AvailableNo 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

EmployeeSalesRatingPerformance
Rahul8500004.7
Priya9000004.1
Amit7200004.8
Neha8200004.6
Arjun6000004.2

Solution

In D2, enter:

=IF(AND(B2>=800000,C2>=4.5),"Excellent","Regular")

Copy down.

Expected Output

EmployeeSalesRatingPerformance
Rahul8500004.7Excellent
Priya9000004.1Regular
Amit7200004.8Regular
Neha8200004.6Excellent
Arjun6000004.2Regular

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

CustomerOrder StatusPayment StatusFollow-Up
RahulCompletedPaid
PriyaPendingPaid
AmitCompletedFailed
NehaPendingFailed
ArjunCompletedPaid

Solution

In D2, enter:

=IF(OR(B2="Pending",C2="Failed"),"Follow Up","No Follow Up")

Copy down.

Expected Output

CustomerOrder StatusPayment StatusFollow-Up
RahulCompletedPaidNo Follow Up
PriyaPendingPaidFollow Up
AmitCompletedFailedFollow Up
NehaPendingFailedFollow Up
ArjunCompletedPaidNo 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

EmployeeDepartmentAttendanceEmployment StatusEligibility
RahulIT92%Permanent
PriyaHR95%Permanent
AmitData Analytics88%Permanent
NehaIT80%Permanent
ArjunData Analytics90%Probation
SimranIT87%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

EmployeeDepartmentAttendanceEmployment StatusEligibility
RahulIT92%PermanentEligible
PriyaHR95%PermanentNot Eligible
AmitData Analytics88%PermanentEligible
NehaIT80%PermanentNot Eligible
ArjunData Analytics90%ProbationNot Eligible
SimranIT87%PermanentEligible

This question combines all four functions:

  • IF
  • AND
  • OR
  • NOT

It is a useful pattern for more advanced logical formulas.

Key Takeaways

  • AND checks whether all conditions are TRUE.
  • OR in excel checks whether at least one condition is TRUE.
  • NOT reverses a logical result.
  • IF in excel can use AND, OR, and NOT to create practical decision-making formulas.
  • AND is useful when multiple requirements must be satisfied.
  • OR is useful when any one of several conditions can qualify.
  • NOT in excel is useful when you need to exclude a particular condition.
  • Functions can be nested inside one another.
  • AND can be placed inside OR, and NOT can be used inside AND or OR.
  • 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.

Scroll to Top