A discount rule is a logical test before it is a formula. “Under 18 pays half price” is already a test that Excel can answer with TRUE or FALSE. Many users jump directly to IF and get lost. Writing the test alone first, then putting it inside IF, makes every discount rule easy to read.
The following exercise shows you how to move from a logical test to a full discount calculation, on a real membership renewal table.
What you will practice in this exercise
You work on a club member list with names, ages and sign-up dates. You answer 8 questions, one formula per question:
- Is the member under 18? (logical test alone)
- A 50% discount when the test is TRUE (IF using the test cell)
- The same 50% discount with the test written inside the IF
- A 10% discount for members who signed up before today (TODAY function)
- Fill each formula down the list (copy a formula)
Practice with exercises
IF — Membership renewal
Automatically apply the right discount to members based on age and seniority.
Related articles
All the exercises in this series are based on real cases found on Excel forums. Each one answers a question that Excel users really ask.