Practice by topic / Excel / Conditional Logic

IF with AND / OR Exercises

To test more than one condition in an IF, put AND or OR inside it: =IF(AND(A2>=50,B2>=50),"Pass","Fail") returns Pass only when both are true, and OR returns true when either is. These exercises cover both, plus "between" checks and AND nested inside OR. These 10 exercises build up step by step, starting with pass only if both scores are 50+, approve a claim under the limit with a receipt, free shipping for big orders or members.

3 of 10 free · no sign-up needed · graded on the formula you write

1

Pass Only If Both Scores Are 50+

Free

A2 holds a theory score and B2 a practical score. Write a formula in C2 that returns 'Pass' only if both scores are 50 or more, otherwise 'Fail'.

ABC
1TheoryPractical
26845?
Show the solution

Use =IF(AND(A2>=50,B2>=50),"Pass","Fail")

Right — AND is TRUE only when every condition is TRUE, so one low score is enough to fail.

Expected result in C2: Fail

Try it in the live spreadsheet →
2

Approve a Claim Under the Limit With a Receipt

Free

A2 holds a claim amount and B2 says whether a receipt was attached (Yes or No). Write a formula in C2 that returns 'Approve' if the amount is 200 or less and B2 is "Yes", otherwise 'Review'.

ABC
1AmountReceipt
2180Yes?
Show the solution

Use =IF(AND(A2<=200,B2="Yes"),"Approve","Review")

Good — AND lets one IF check a number and a text value at the same time.

Expected result in C2: Approve

Try it in the live spreadsheet →
3

Free Shipping for Big Orders or Members

Free

A2 holds an order total and B2 says whether the customer is a member (Yes or No). Write a formula in C2 that returns a shipping fee of 0 if the total is 50 or more or the customer is a member, otherwise 5.

ABC
1Order totalMember
242Yes?
Show the solution

Use =IF(OR(A2>=50,B2="Yes"),0,5)

Right — OR is TRUE when any one condition is TRUE, so membership alone earns free shipping.

Expected result in C2: 0

Try it in the live spreadsheet →
5

Bonus for Hitting Target With Good Attendance

A2 holds a salesperson's sales and B2 their days absent. Write a formula in C2 that returns a bonus of 500 if sales are at least 50000 and days absent are 2 or fewer, otherwise 0.

ABC
1SalesDays absent
2520001?

Solution and instant grading: open it in the practice app (use one of your 20 free picks, or Pro).

Try it in the live spreadsheet →
6

Check a Reading Is Within a Range

A2 holds a fridge temperature. It must be between 2 and 8 inclusive. Write a formula in B2 that returns 'OK' if A2 is in that range, otherwise 'Out of range'.

AB
1Fridge temp (°C)
29?

Solution and instant grading: open it in the practice app (use one of your 20 free picks, or Pro).

Try it in the live spreadsheet →
7

Escalate Urgent or Overdue Tickets

A2 holds a ticket's priority and B2 how many days it has been open. Write a formula in C2 that returns 'Escalate' if the priority is "High" or the ticket has been open more than 10 days, otherwise 'Normal'.

ABC
1PriorityDays open
2Low12?

Solution and instant grading: open it in the practice app (use one of your 20 free picks, or Pro).

Try it in the live spreadsheet →
8

Put AND Inside OR

A2 holds a credit score and B2 an annual income. An applicant is eligible if the score is 700 or more, or if the score is at least 650 and income is at least 80000. Write a formula in C2 that returns 'Eligible' or 'Not eligible'.

ABC
1Credit scoreIncome
267085000?

Solution and instant grading: open it in the practice app (use one of your 20 free picks, or Pro).

Try it in the live spreadsheet →
9

Three Conditions in One AND

A2 holds attendance %, B2 says whether assignments are "Done", and C2 holds an exam score. Write a formula in D2 that returns 'Certified' if attendance is at least 80, assignments are "Done" and the exam score is at least 50, otherwise 'Not yet'.

ABCD
1Attendance %AssignmentsExam
292Done58?

Solution and instant grading: open it in the practice app (use one of your 20 free picks, or Pro).

Try it in the live spreadsheet →
10

Commission Rate by Region

A2 holds a region and B2 a sales amount. Write a formula in C2 that returns the commission: 5% of sales if the region is "East" or "West", otherwise 3%.

ABC
1RegionSales
2East20000?

Solution and instant grading: open it in the practice app (use one of your 20 free picks, or Pro).

Try it in the live spreadsheet →