Perhaps try also:
=IF(OR(I2={"",0}),"",IF(AND(G2="yes",I2<=DATE(2005,1,4)),"ok",IF(AND(G2="no"
,I2<=DATE(2005,1,4)),"ck","")))
(Presumed you wanted blanks: "" returned as the Value_if_FALSE)
The additional front check on I2: =IF(OR(I2={"",0}),"", ... )
is just a precaution taken to prevent empty cell/zero
from being evaluated as a "valid date" which might give spurious results
--
Rgds
Max
xl 97
---
Singapore, GMT+8
xdemechanik
http://savefile.com/projects/236895
--
<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Need help once again.
> I am trying to enter an if statement using and/or. what i am trying to
> do is find out if G2 has a "yes" and column I2's date is <=1/4/2005
> then give me "ok", OR, if
> G2 has a "no" and I2's date is <=1/4/2005 then give me "ck".
> Is this doable?
> thanks.
>
>
IF((AND(G2="yes",I2<=date(2005,1,4)),"ok",(IF((OR(G2="no",I2<=date(2005,1,4)
),"ck")))
>