Use of "AND"

  • Thread starter Thread starter Wally
  • Start date Start date
Hi,
when you want to meet two conditions for example
A1= 2
A2= 3

if the conditions above are true you want to result be "OK" otherwise "WRONG"

=if(and(A1=2,A2=3),"OK","WRONG")
 
Here's an example:

=IF(AND(A1>0,B1>0),"Positive","not valid")

Both A1 and B1 have to be greater than 0 to get "positive".

Hope this helps.

Pete
 
Back
Top