Day 119 · Monday, 30 November 2026

From the archive

Beginner

Work Out Prescription Charges with IF and OR

Some rules have several ways to qualify, and meeting any one of them is enough. OR is TRUE when at least one of its conditions is, so inside an IF it turns a list of exemptions into a single test that charges only the people none of them cover.

Task:

You work the counter at a pharmacy, and the morning's prescriptions are in A2:D9 with each patient's age, whether they showed an exemption certificate and how many items are on the prescription. Each item costs the charge per item in G2, unless the patient is exempt, and they are exempt if any one of these is true: they are under 16, they are 60 or over, or they have a certificate. A patient who is exactly 16 pays; one who is exactly 60 does not. In E2, write a formula that returns the amount the first patient pays, 0 if they are exempt, then copy it down to E9.

The daily challenge is part of Pro

A new exercise every morning, plus every day that came before it — a back catalogue that grows by one a day, whether or not you were here for it.

Every day so far

August 2026

September 2026

October 2026

November 2026

December 2026

4
SolvedOpenProLatest

Recent days

The last 14 days. Today's challenge is free while your streak is alive; Pro opens every past day too.