Practice by topic / Excel / Conditional Logic

Nested IF Exercises

IF-style formulas let a spreadsheet make decisions — pass or fail, on time or late, which rate applies — so you don't have to check each row by hand. These 10 exercises build up step by step, starting with assign a letter grade, classify shipping speed by cost, categorize age groups.

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

1

Assign a Letter Grade

Free

A2 holds a numeric score. Write a formula in B2 that returns 'A' for 90+, 'B' for 80-89, 'C' for 70-79, and 'F' otherwise, using nested IF.

AB
1
284?
Show the solution

Nest each check inside the false branch of the previous one: =IF(A2>=90,"A",IF(A2>=80,"B",IF(A2>=70,"C","F")))

Nice — nesting IFs lets you check thresholds in order, falling through to the next check only when the current one fails.

Expected result in B2: B

Try it in the live spreadsheet →
2

Classify Shipping Speed by Cost

Free

A2 holds a shipping cost. Write a formula in B2 that returns 'Free' for 0, 'Standard' for under 15, and 'Express' for 15 or more, using nested IF.

AB
1
220?
Show the solution

Handle the zero case first, then nest for the rest: =IF(A2=0,"Free",IF(A2<15,"Standard","Express"))

Good — the first IF handles the special case (0), and the nested IF splits the remaining range.

Expected result in B2: Express

Try it in the live spreadsheet →
3

Categorize Age Groups

Free

A2 holds a person's age. Write a formula in B2 that returns 'Child' under 13, 'Teen' under 20, and 'Adult' otherwise, using nested IF.

AB
1
216?
Show the solution

Nest the second check inside the first's false branch: =IF(A2<13,"Child",IF(A2<20,"Teen","Adult"))

Right — nested IF lets you carve a number line into three labeled zones.

Expected result in B2: Teen

Try it in the live spreadsheet →
4

Determine a Discount Tier

A2 holds an order total. Write a formula in B2 that returns 20 for orders 500+, 10 for orders 200+, and 0 otherwise (percent discount), using nested IF.

AB
1
2300?

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

Categorize BMI-Style Ranges

A2 holds a numeric value. Write a formula in B2 that returns 'Low' under 18.5, 'Normal' under 25, and 'High' otherwise, using nested IF.

AB
1
222?

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

Classify Exam Result With Distinction

A2 holds a score. Write a formula in B2 that returns 'Distinction' for 95+, 'Pass' for 50+, and 'Fail' otherwise, using nested IF.

AB
1
297?

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

Assign a Shipping Zone Fee

A2 holds a distance in miles. Write a formula in B2 that returns 5 for under 50 miles, 12 for under 200 miles, and 25 otherwise, using nested IF.

AB
1
2120?

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

Categorize Customer Value Tier

A2 holds a customer's lifetime spend. Write a formula in B2 that returns 'VIP' for 5000+, 'Regular' for 500+, and 'New' otherwise, using nested IF.

AB
1
2700?

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 →