Well I recently had to do something like that and I needed a table with the data to calculate the commission, because the ranges could vary and I wouldn't have to edit the whole table. Maybe there is a simpler way to do this but I don't know it
Hopefully this works, you should test it thoroughly since it's about money ^^
Excel 2007<table rules="all" style=";background-color: #FFFFFF;border: 1px solid;border-collapse: collapse; border-color: #A6AAB6" cellpadding="2.5px"><colgroup><col style="background-color: #E0E0F0" width="25px"><col><col><col><col><col><col><col><col></colgroup><thead><tr style=" background-color: #E0E0F0;text-align: center;color: #161120"><th>
</th><th>A</th><th>B</th><th>C</th><th>D</th><th>E</th><th>F</th><th>G</th><th>H</th></tr></thead><tbody><tr><td style="color: #161120;text-align: center;">1</td><td style="font-weight: bold;text-align: right;;">Sales</td><td style="text-align: right;;">23000</td><td style="text-align: right;;">
</td><td style="font-weight: bold;text-align: right;;">Low</td><td style="font-weight: bold;text-align: right;;">High</td><td style="font-weight: bold;text-align: right;;">Range</td><td style="font-weight: bold;;">Percentage</td><td style="font-weight: bold;;">Subtotal</td></tr><tr><td style="color: #161120;text-align: center;">2</td><td style="font-weight: bold;text-align: right;;">Comission</td><td style="text-align: right;;">304.98</td><td style="text-align: right;;">
</td><td style="text-align: right;;">8000</td><td style="text-align: right;;">12999</td><td style="text-align: right;;">4999</td><td style="text-align: right;;">1.00%</td><td style="text-align: right;;">129.99</td></tr><tr><td style="color: #161120;text-align: center;">3</td><td style="font-weight: bold;text-align: right;;">
</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td><td style="text-align: right;;">13000</td><td style="text-align: right;;">17999</td><td style="text-align: right;;">4999</td><td style="text-align: right;;">1.50%</td><td style="text-align: right;;">74.99</td></tr><tr><td style="color: #161120;text-align: center;">4</td><td style="font-weight: bold;text-align: right;;">
</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td><td style="text-align: right;;">18000</td><td style="text-align: right;;">22999</td><td style="text-align: right;;">4999</td><td style="text-align: right;;">2.00%</td><td style="text-align: right;;">99.98</td></tr><tr><td style="color: #161120;text-align: center;">5</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td><td style="text-align: right;;">23000</td><td style="text-align: right;;">27999</td><td style="text-align: right;;">4999</td><td style="text-align: right;;">2.50%</td><td style="text-align: right;;">124.98</td></tr><tr><td style="color: #161120;text-align: center;">6</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td><td style="text-align: right;;">28000</td><td style="text-align: right;;">32999</td><td style="text-align: right;;">4999</td><td style="text-align: right;;">3.00%</td><td style="text-align: right;;">149.97</td></tr><tr><td style="color: #161120;text-align: center;">7</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td><td style="text-align: right;;">33000</td><td style="text-align: right;;">37999</td><td style="text-align: right;;">4999</td><td style="text-align: right;;">4.00%</td><td style="text-align: right;;">199.96</td></tr><tr><td style="color: #161120;text-align: center;">8</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td><td style="text-align: right;;">38000</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td><td style="text-align: right;;">5.50%</td><td style="text-align: right;;">0</td></tr><tr><td style="color: #161120;text-align: center;">9</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td><td style="text-align: right;;">
</td><td style="font-weight: bold;text-align: right;;">
</td><td style="font-weight: bold;text-align: right;;">
</td><td style="font-weight: bold;text-align: right;;">
</td><td style="text-align: right;;">779.86</td></tr></tbody></table>
Hoja1
The formula in B2 would be:
=
IF(B1>=D8,(SUM($H$2:$H$7)+((B1-E7)*G8)),
IF(AND(B1>=D7,B1<=E7),(SUM($H$2:$H$6)+((B1-E6)*G7)),
IF(AND(B1>=D6,B1<=E6),(SUM($H$2:$H$5)+((B1-E5)*G6)),
IF(AND(B1>=D5,B1<=E5),(SUM($H$2:$H$4)+((B1-E4)*G5)),
IF(AND(B1>=D4,B1<=E4),(SUM($H$2:$H$3)+((B1-E3)*G4)),
IF(AND(B1>=D3,B1<=E3),(SUM($H$2:$H$2)+((B1-E2)*G3)),
IF(AND(B1>=D2,B1<=E2),B1*G2,
"error")))))))
Low and High would be values, Range would have a substraction formula i.e F2 would have =E2-D2.
Percentage would have values
And subtotal would be only in H2 =E2*G2... in the ones below it would be =F3*G3 and so on