A returns policy is a set of overlapping conditions: how long since the sale, and whether there is a receipt. AND checks that several things are all true, OR checks that at least one is, and nesting them inside IF turns the policy leaflet into a column that decides every return the same way.
You run the returns desk at a homeware shop, and the week's return requests are in A2:D9, with the purchase date, the date the item came back and whether the customer had a receipt. The policy is: with a receipt and within 30 days of purchase, the customer gets a Refund. Without a receipt, they can still have Store credit within 30 days; with a receipt, Store credit runs to 60 days. Anything else is Decline. Day 30 and day 60 still count as inside the window. In E2, write a formula that returns "Refund", "Store credit" or "Decline" for the first return, working out the days from the two dates, then copy it down to E9.
Solve it on your own to keep the bonus. Each hint gets one step closer to the formula.
This is the grid you start with. Cell references in the task — B6, C2 — point at the row numbers and column letters below.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Item | Purchased | Returned | Receipt | Outcome |
| 2 | Bluetooth speaker | 10/2/2026 | 10/20/2026 | Yes | |
| 3 | Air fryer | 9/1/2026 | 10/1/2026 | Yes | |
| 4 | Electric kettle | 9/14/2026 | 10/15/2026 | Yes | |
| 5 | Hair dryer | 10/5/2026 | 10/27/2026 | No | |
| 6 | Robot vacuum | 8/30/2026 | 10/28/2026 | Yes | |
| 7 | Desk lamp | 9/20/2026 | 10/30/2026 | No | |
| 8 | Coffee grinder | 8/25/2026 | 11/2/2026 | Yes | |
| 9 | Wireless earbuds | 10/10/2026 | 11/9/2026 | No |
A policy like this reads as a list of cases, and the formula has to check them in the right order. Refund is the best outcome and the narrowest, so it goes first: AND(C2-B2<=30,D2="Yes") is TRUE only when the item is back within 30 days and the customer has the receipt, and if it is, IF stops there. Put the Store credit test first and the Bluetooth speaker, back after 18 days with its receipt, would pass it and never reach the Refund it is owed. Once a return has failed the Refund test, it gets Store credit if either of two things is true, and that either is the job of OR. The first half, C2-B2<=30, covers a customer with no receipt inside 30 days; a customer with a receipt inside 30 days would also pass it, but none reach this point, because the first IF has already given them a Refund. The second half, AND(D2="Yes",C2-B2<=60), covers a receipt holder in the extended window, like the robot vacuum at 59 days. Everything left over, the desk lamp at 40 days with no receipt and the coffee grinder at 69 days with one, is Decline. The dates matter as much as the logic: C2-B2 is a count of days because both cells hold dates, so the formula needs no helper column. The two boundary rows are there on purpose. The air fryer and the earbuds came back on exactly day 30; with < instead of <= the air fryer would drop to Store credit and the earbuds to Decline, which is exactly the kind of argument at the till the policy was written to prevent.