The current formula: B2 is a given number. I enter C2 and the below formula calculates D2 based on the following: For every 2 units higher that C2 is than B2, D2 will go up 1. For every 3 units below that C2 is than B2, D2 will go down 1. Below is that formula that is entered into cell D2:
=IF(C2="","",IF((C2-B2)=0,B2,IF((C2-B2)>0,B2+IF((C2-B2)>0,CHOOSE(C2-B2,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12),B2),B2+CHOOSE((C2-B2)*-1,0,0,-1,-1,-1,-2,-2,-2,-3,-3,-3,-4,-4,-4,-5,-5,-5,-6,-6,-6,-7,-7,-7,-8,-8))))
Desired formula: If C2 is 2 units or more higher than B2, then D2 will go up 1. If C2 is 3 units or more lower than B2, then D2 will go down 1.
Someone built the above formula for me and I cannot figure out how to adjust it to meet the desired result. All help is appreciated.
Thanks!
=IF(C2="","",IF((C2-B2)=0,B2,IF((C2-B2)>0,B2+IF((C2-B2)>0,CHOOSE(C2-B2,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12),B2),B2+CHOOSE((C2-B2)*-1,0,0,-1,-1,-1,-2,-2,-2,-3,-3,-3,-4,-4,-4,-5,-5,-5,-6,-6,-6,-7,-7,-7,-8,-8))))
Desired formula: If C2 is 2 units or more higher than B2, then D2 will go up 1. If C2 is 3 units or more lower than B2, then D2 will go down 1.
Someone built the above formula for me and I cannot figure out how to adjust it to meet the desired result. All help is appreciated.
Thanks!