Logical Functions
Intermediate

Nested IF returning numbers

Bands that return a price rather than a grade.

Task:

Delivery is free from 100, 4.99 from 50, and 7.99 below that. Put the delivery charge for each basket in C2:C7.

Interactive Spreadsheet

Hints

+5 XPno-hints bonus

Solve it on your own to keep the bonus. Each hint gets one step closer to the formula.

The data in this exercise

This is the grid you start with. Cell references in the task — B6, C2 — point at the row numbers and column letters below.

7 rows × 3 columns6 cells you fill in
ABC
1BasketValueDelivery
2B-01125
3B-0249.99
4B-0350
5B-04100
6B-0512.5
7B-0687
What this exercise teachesMay contain the answer

Testing from the top band down means each IF only has to check one boundary — by the time the second IF runs, the basket is already known to be under 100. Returning numbers rather than words means the delivery column can go straight into the order total.