Hey all,
I am trying to construct an If and AND formula that includes 3 arguments each argument has its own solution. I am having issues with the syntax of the formula if anyone can help -greatly appreciated. Below is the formula I put together so far.
=IF(AND(C171>D171,D171>0),((D171-C171)*(-1))/D171),1,if(and(C171<D171,D171>0,((C171-D171)*(-1))/D171),2,if(and(c171>=0,d171<0,((H165)+(I165*-1))/(I165*-1),3,0,)))
I am trying to construct an If and AND formula that includes 3 arguments each argument has its own solution. I am having issues with the syntax of the formula if anyone can help -greatly appreciated. Below is the formula I put together so far.
=IF(AND(C171>D171,D171>0),((D171-C171)*(-1))/D171),1,if(and(C171<D171,D171>0,((C171-D171)*(-1))/D171),2,if(and(c171>=0,d171<0,((H165)+(I165*-1))/(I165*-1),3,0,)))