Hi to all,
I got a problem in coding IF Function, here is the condition
Condition:
AP is Negative and AR is Zero-OK
AP is 0 and AR is Positive-OK
AP is Positive and AR is Postive- OK
AP is 0 and AR is Negative-NOT OK
AP is postive and AR is Negative-NOT OK
AP is 0 and AR is 0-NOT OK
Now the problem is, 0 is considered as "Positive" and it just resulted as "OK" if both AP and AR have 0 value. Kindly help!. Thanks
here is my 2 function code, but still resulted to "OK".
1. =IF(OR(AND(LEFT(F4,1)="-",G4=0),AND(F4=0,LEFT(G4,1)<>"-"),AND(LEFT(F4,1)<>"-",LEFT(G4,1)<>"-")),"OK","NOT OK")
2. =IF(AND(LEFT(F4,1)="-",G4=0),"OK",IF(AND(F4=0,LEFT(G4,1)<>"-"),"OK",IF(AND(F4=0,G4=0),"NOT OK",)))
Bookmarks