Hi,
Put this in A1 and drag down.
=IF(AND(A1="y",ISNUMBER(B1)),"OK",IF(AND(A1="y",B1=""),"Error",IF(AND(A1="N",ISNUMBER(B1)),"Error",IF(AND(A1="N",B1=""),"OK",""))))
Mike
> Dear All
>
[quoted text clipped - 14 lines]
>
> D
muddan madhu - 30 May 2008 13:16 GMT
Try this one !!!!
=IF((A1="y")*(B1>0),"ok",IF((A1="n")*(B1=""),"ok","error"))
> Hi,
>
[quoted text clipped - 28 lines]
>
> - Show quoted text -
Carla - 31 May 2008 03:52 GMT
Thank you!!! I searched on a solution to my problem and came across this
posting which COMPLETELY worked for me in a similar situation!!! I learned
something in the process, that *=AND. I never knew that. Thank you muddan
madhu for replying to the person requesting help below! I was going to end
up bald from pulling my hair out trying to complete an "if(or(and" statement,
you saved my locks!
Carla
St. Petersburg, FL
> Try this one !!!!
>
[quoted text clipped - 32 lines]
> >
> > - Show quoted text -
dazoloko - 30 May 2008 16:51 GMT
Thanks Mike !
D
>Hi,
>
[quoted text clipped - 9 lines]
>>
>> D
=IF(OR(AND(A1="Y",ISNUMBER(B1)),AND(A1="N",B1="")),"OK",
IF(OR(AND(A1="N",ISNUMBER(B1)),AND(A1="Y",B1="")),"Error",""))

Signature
HTH
Bob
(there's no email, no snail mail, but somewhere should be gmail in my addy)
> Dear All
>
[quoted text clipped - 15 lines]
>
> D
dazoloko - 31 May 2008 10:33 GMT
Thanks Bob and Thank you to all who took the time to respond. And glad it
helped you too Carla !
D
>=IF(OR(AND(A1="Y",ISNUMBER(B1)),AND(A1="N",B1="")),"OK",
> IF(OR(AND(A1="N",ISNUMBER(B1)),AND(A1="Y",B1="")),"Error",""))
[quoted text clipped - 4 lines]
>>
>> D