I'm struggling with a complex IF formula, hoping someone can help.
In D2 I have a category number 1-4.
In F2 I have a number which could be positive or negative.
I need a formula in G2 to work out the following conditions:
IF F2 is 0, G2 = 0
IF D2 = 1 AND F2 is GREATER than zero MULTIPLY F2 by -0.1.
IF D2 = 1 AND F2 is LESS than zero, G2 = 0.4
IF D2 = 2 AND F2 is GREATER than zero MULTIPLY F2 by -0.1.
IF D2 = 2 AND F2 is LESS than zero, G2 = 0.5
IF D2 = 3 AND F2 is GREATER than zero MULTIPLY F2 by -0.2.
IF D2 = 3 AND F2 is LESS than zero, G2 = 0.6
IF D2 = 3 AND F2 = -1, G2 = 0
IF D2 = 4 AND F2 is GREATER than zero MULTIPLY F2 by -0.3.
IF D2 = 4 AND F2 is LESS than zero, G2 = 0.7
IF D2 = 4 AND F2 = -1 OR -2, G2 = 0
I have a formula which takes into all of the above but I am struggling with adding the part where F2 3 or 4 equal -1 or -1 or -2. I am only getting errors however I do it. Would appreciate any support.
=IF(F2=0,0,IF(AND(F2>0,(D2=4)),F2*-0.3,IF(AND(F2>0,(D2=3)),F2*-0.2,IF(AND(F2>0,(D2=2)),F2*-0.1,IF(AND(F2>0,(D2=1)),F2*-0.1,IF(AND(F2<0,(D2=4)),+0.7,IF(AND(F2<0,(D2=3)),+0.6,IF(AND(F2<0,(D2=2)),+0.5,IF(AND(F2<0,(D2=1)),+0.4,)))))))))
In D2 I have a category number 1-4.
In F2 I have a number which could be positive or negative.
I need a formula in G2 to work out the following conditions:
IF F2 is 0, G2 = 0
IF D2 = 1 AND F2 is GREATER than zero MULTIPLY F2 by -0.1.
IF D2 = 1 AND F2 is LESS than zero, G2 = 0.4
IF D2 = 2 AND F2 is GREATER than zero MULTIPLY F2 by -0.1.
IF D2 = 2 AND F2 is LESS than zero, G2 = 0.5
IF D2 = 3 AND F2 is GREATER than zero MULTIPLY F2 by -0.2.
IF D2 = 3 AND F2 is LESS than zero, G2 = 0.6
IF D2 = 3 AND F2 = -1, G2 = 0
IF D2 = 4 AND F2 is GREATER than zero MULTIPLY F2 by -0.3.
IF D2 = 4 AND F2 is LESS than zero, G2 = 0.7
IF D2 = 4 AND F2 = -1 OR -2, G2 = 0
I have a formula which takes into all of the above but I am struggling with adding the part where F2 3 or 4 equal -1 or -1 or -2. I am only getting errors however I do it. Would appreciate any support.
=IF(F2=0,0,IF(AND(F2>0,(D2=4)),F2*-0.3,IF(AND(F2>0,(D2=3)),F2*-0.2,IF(AND(F2>0,(D2=2)),F2*-0.1,IF(AND(F2>0,(D2=1)),F2*-0.1,IF(AND(F2<0,(D2=4)),+0.7,IF(AND(F2<0,(D2=3)),+0.6,IF(AND(F2<0,(D2=2)),+0.5,IF(AND(F2<0,(D2=1)),+0.4,)))))))))