May 23 2022 02:36 AM
Hi all!
New to this site after a week of pulling my hair.
I have a case where I've been tasked to calculate an outcome of bonus levels. The % outcome of below is used in another formula - which is why it is important to use the ranges I address below. This is also what makes me failing in a solution. Unfortunately it is not a sliding scale but two gradients which also makes it a bit more difficult.
So what I need is a formula that captures below:
Thresh. | Mid | Cap | |
% achievement | 50% | 100% | 150% |
Increase target | 2 | 4 | 5 |
I tried myself to do it - but only succeeded without my threshold and cap by following formulas that were thereafter added together:
=IF(outcome<thresh.;0;IF(AND(Outcome>thresh.;Outcome<=Mid);((Outcome-thresh.)/(Mid-thresh.));1))
=IF(Outcome<=mid;0;IF(AND(outcome>mid;outcome<=cap);((outcome-mid)/(cap-mid));1))
In other words, above is not what is needed
May 23 2022 04:14 AM
SolutionIt could be
=IF(outcome>=cap, capP,
IF(outcome>mid, capP + (capP - midP)/(cap-mid)*(outcome-cap),
IF(outcome>=thresh., threshP + (midP-threshP)/(mid-thresh.)*(outcome-thresh.), 0 ) ) )
May 23 2022 06:05 AM