Logical Functions
Intermediate

Pay only on the amount above target

MAX(0, …) turns "only if positive" into arithmetic.

Task:

Reps earn a 10% bonus on whatever they sell above their own target, and nothing if they miss it. In D2:D6 give each rep's bonus.

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.

6 rows × 4 columns5 cells you fill in
ABCD
1RepSalesTargetBonus
2Pia5800050000
3Quin4100045000
4Ravi6250060000
5Suki3000030000
6Tariq7700055000
What this exercise teachesMay contain the answer

=IF(B2>C2,(B2-C2)*0.1,0) is the same rule written twice. MAX(0, x) is the standard way to say "x, but never below zero", and it removes the duplicated subtraction. Quin's miss would otherwise produce a negative bonus — a deduction nobody agreed to.