excel - Multiple IF, AND, OR statements -
i trying create excel formula represent logic:
if (b8 < 0 & a8 > 0), b8+a8 or if (b8 < 0 & a8 < 0), b8-a8 or if (b8 > 0 & a8 > 0), b8-a8
i can't seem syntax right.
alternatively, following put more closely/literally:
=if(and(b8<0,a8>0),b8+a8, if(and(b8<0,a8<0), b8-a8, if(and(b8>0,a8>0), b8-a8, "null?" )))
should trick. wasn't sure put if none of cases fail, showing "null?" .. change desired.
(but suspect pascx64's more efficient in long run ;) )
Comments
Post a Comment