The Standard plan pays 5% up to $10,000, 7% on the next $10,000, and 10% above $20,000. Ada sold $25,000. The pieces are $500, $700, and $500. The commission is $1,700.
The workbook with that plan, Ben, and Cho is the sales commission calculator. The names are made up.
The bands are marginal
xl.commission returns $1,700 for these inputs. The sheet does not store that LAMBDA. MIN and MAX cut the same three bands, and the rates come off the plan row with VLOOKUP.
=MIN(25000,10000)*5%+MAX(0,MIN(25000,20000)-10000)*7%+MAX(0,25000-20000)*10%| A | B | |
|---|---|---|
| 1 | Band | Pay |
| 2 | First $10,000 at 5% | 500 |
| 3 | Next $10,000 at 7% | 700 |
| 4 | Above $20,000 at 10% | 500 |
| 5 | Commission | 1700 |
=MIN(25000, 10000) * 5% + MAX(0, MIN(25000, 20000) - 10000) * 7% + MAX(0, 25000 - 20000) * 10%
Ben sold $8,000. That amount is under $10,000, so the second and third bands are zero and the commission is $400. Cho sold $15,000. The first band is $500 and the second is $350. The commission is $850.
A flat 10% is the wrong reading
IFS vs nested IF shows what happens when one test picks a single rate. $25,000 is above $20,000, so that formula returns 10%, and 10% of the whole sale is $2,500. Only the last $5,000 earns 10%. The first $20,000 has already earned $1,200.
=25000*10%| A | B | |
|---|---|---|
| 1 | Sales | 25000 |
| 2 | Flat 10% | 2500 |
| 3 | Tiers | 1700 |
| 4 | Difference | 800 |
$2,500 minus $1,700 is $800. The team sold $48,000. SUMIFS of the Standard plan is that $48,000 of sales and $2,950 of commission.
25% is the same ratio as 100 to 125
xl.percent.change returns 0.25 when the old number is 100 and the new number is 125. Ada’s sales went from $20,000 to $25,000. That is the same ratio.
=(25000-20000)/20000| A | B | C | D | |
|---|---|---|---|---|
| 1 | Name | Prior | Sales | Change |
| 2 | Ada | 20000 | 25000 | 0.25 |
| 3 | Ben | 10000 | 8000 | -0.2 |
Ben went from $10,000 to $8,000, which is −20%. Cho has no prior month. Dividing by a blank, or by zero, is not a percent. The cell stays blank instead of returning #N/A or #DIV/0!.
The quota is $20,000. Ada’s $25,000 is 125% of quota. Ben is at 40%. Cho is at 75%.