Hello -
Thanks for taking a look at this - I have been trying to get this right, and I keep on getting an error. I know it must be in the parenthesis syntax (at a minimum), but I am missing something...any help will be very much appreciated!
This formula works fine:
=IF(OR(AND($Z3="B",$AD3<$AC3),AND($Z3="S",$AD3>$AC3)), ($AC3-$AD3)/$E3, ($AD3-$AC3)/$E3)
What I am trying to do is add the following, which is (sadly) not fine: It is the same as the line above, but with an additional two sets of AND criteria, both of which would return a negative number if the criteria is satisfied.I.e., so ONE of these criteria will be TRUE.
=IF(OR(AND($Z3="B",$AD3<$AC3),AND($Z3="S",$AD3>$AC3), AND($Z3="B",$AD3>$AC3), AND($Z3="S",$AD3<$AC3))), ($AC3-$AD3/$E3), ($AD3-$AC3/$E3),($AC3-$AD3/$E3*-1),($AD3-$AC3/$E3)*-1)
Thanks again for any help -
Thanks for taking a look at this - I have been trying to get this right, and I keep on getting an error. I know it must be in the parenthesis syntax (at a minimum), but I am missing something...any help will be very much appreciated!
This formula works fine:
=IF(OR(AND($Z3="B",$AD3<$AC3),AND($Z3="S",$AD3>$AC3)), ($AC3-$AD3)/$E3, ($AD3-$AC3)/$E3)
What I am trying to do is add the following, which is (sadly) not fine: It is the same as the line above, but with an additional two sets of AND criteria, both of which would return a negative number if the criteria is satisfied.I.e., so ONE of these criteria will be TRUE.
=IF(OR(AND($Z3="B",$AD3<$AC3),AND($Z3="S",$AD3>$AC3), AND($Z3="B",$AD3>$AC3), AND($Z3="S",$AD3<$AC3))), ($AC3-$AD3/$E3), ($AD3-$AC3/$E3),($AC3-$AD3/$E3*-1),($AD3-$AC3/$E3)*-1)
Thanks again for any help -