Here is the formula and what I've been able to make of it so far:
=ROUND(IF($C11>0,ROUND(($B$14*ATAN($B$16*((IF((F$2-$D11)/($E11-$D11+1)>1,1,IF((F$2-$D11)/($E11-$D11+1)<0,0,(F$2-$D11)/($E11-$D11+1))))+$B$15))+$B$17)/100,3),IF($E11-F$2>0,0,100%)),4)
The first ‘IF’ says that if cell C11 is greater than 0, to round the result (to the nearest 3rd decimal of):
IF the result of cell (F2-D11)/(E11-D11+1) is greater than 1, multiply cell B14 by the trigonometric function of Arctangent of 1 in radians
Or
If the result of cell (F2-D11)/(E11-D11+1) is less than 0, multiply cell B14 by the trigonometric function of Arctangent of 1 in radians
IF the result of cell (F2-D11)/(E11-D11+1) is greater than 1, multiply cell B14 by the trigonometric function of Arctangent of ((F2-D11)/(E11-D11+1)/100) and rounded to the nearest 3rd decimal in radians
IF cell E11-F2 is greater than zero, put 0 in the cell, if less than zero, put 100% in the cell – round the cell to the nearest 4th decimal.
Bookmarks