Calculate tiered sales commission (IF)

Hard Logic
Description
Hints 0/4
Solutions 2
–
Test case
1
2
3
Reset
Submit
fx
A
B
C
D
E
F
G
1
2
3
4
5
6
7
8
9
10
Loading interactive spreadsheet...
Preparing grid cells and formula calculation engine
○ Ready Enter formula in highlighted cells, then click Submit.

The problem

Problem statement

Quarter-end is here and sales ops needs commission run for the team in B2:B5. The plan has three tiers: 8% on sales of at least 10,000, 5% on sales of at least 5,000, and 3% below that. Fill the Commission cells D2:D5 with each person's payout.

Order the tiers from highest to lowest and use >= — case 3 lands exactly on 10,000 and must pay 8%, not 5%.

Problem data

Show the sheet as a table (selectable, copyable)
The exercise data, as a table
ABD
1 SalespersonSalesCommission
2 Alex Zhang12000
3 Betty Lin8000
4 Chris Wu4300
5 Dana Chen10500

Notes

Nested IFs evaluate top-down, so test the highest tier first — otherwise a 12,000 sale would fall into the ≥5,000 branch and be paid 5%. Watch the boundary: exactly 10,000 belongs to the 8% tier.

How to approach

Your answer goes in D2:D5. On submit we re-run your formula against 3 different sets of input, so a hardcoded number will fail — the formula has to follow the cells.

  1. Target cells are D2:D5 — start in D2, then fill down
  2. Outer test: is B2 at least 10000? If yes, commission is B2 * 0.08
  3. If not, test the next tier: is B2 at least 5000? Then B2 * 0.05
  4. Everything else falls through to B2 * 0.03

Official solutions

Show 2 solutions — try it yourself first

Approach 1: Nested IF, tiers high to low

=IF(B2>=10000, B2*0.08, IF(B2>=5000, B2*0.05, B2*0.03))

The first IF catches the 8% tier. Anything below it falls to the inner IF, which splits the remaining sales into the 5% tier and the 3% floor. Order matters: highest threshold first.

Approach 2: IFS function (Excel 2019+)

=IFS(B2>=10000, B2*0.08, B2>=5000, B2*0.05, TRUE, B2*0.03)

IFS pairs each condition with its result and stops at the first true one, reading flatter than nested IFs. The trailing TRUE acts as the else branch.

Function guide

Related practice

FAQ

How do I calculate tiered commission in Excel?

Nest one IF inside another: =IF(B2>=10000, B2*0.08, IF(B2>=5000, B2*0.05, B2*0.03)). Each level catches one tier and the last value is the fallback rate.

Why test the highest tier first?

IF stops at the first true condition. A 12,000 sale also satisfies >=5000, so if that test came first it would wrongly pay 5%. Always order thresholds from high to low.

Is there a flatter alternative to nested IF?

Yes — IFS (Excel 2019+/365): =IFS(B2>=10000, B2*0.08, B2>=5000, B2*0.05, TRUE, B2*0.03). Same logic, easier to read; older versions need the nested form.