This solution uses three helper columns so as to hopefully make it easier to understand and modify in the future. The first helper column calculates the amount of the sale that is less than or equal to 100% of the annual quota using the formula:
=IF(M19<=B$14,$G19,MIN(G19,$F$7-SUM(P$18:P18)))
The second helper column calculates the amount of the sale that is between 100% and 133% of the annual quota using the formula:
=IF(M19<=B$15,$G19-$P19,MIN(G19-P19,F$7*B$15-SUM(P$18:P19,Q$18:Q18)))
The third helper column calculates the amount of the sale that is over 133% of the annual quota using the formula:
Column N then calculates the commission on the sales from the three helper columns using the formula:
Here is a copy of your file with the helper columns and formulas applied:
Commission formula with conditions.xlsx
Let me know if you have any questions.
Bookmarks