Forum Discussion
Creating a Sliding Commission Scale in Excel
I confess, there was an element of playing with this. I first used the function I had already written to determine the the commission corresponding to each threshold. Then I calculated the commission shortfall for each band. What I should have done then is select the band with the smallest positive amount and base the calculation upon that.
Being perverse, I performed the calculation for each band and relied upon convexity of the piecewise-linear sales/commission curve to determine that lowest value is the correct value. The final return values include a check that the 'required' sales indeed returns the target commission.
= LET(
delta, target - MAP(Threshold, COMMISSIONλ),
uplift, delta / Percentage,
required, MIN(Threshold + uplift),
HSTACK(required, COMMISSIONλ(required))
)... and then I wonder why so many standard Excel users fail to recognise the solutions I offer as having anything to do with Excel
!