Help with if function

G

Greg B

Sorry for another post but

I use this =IF(A2<NOW(),"yes","no")

How do I add a extra part to it it has to be in between the range of now()
and now()+14

How would I put that into the formula

Thanks again

Greg
 
C

Chris Short

IF(and(A2>NOW(),A2<NOW()+14), "yes", "no")

(you may want to use <= and >=, depending on your exact requirement.

Cheers,

Christopher

Sorry for another post but

I use this =IF(A2<NOW(),"yes","no")

How do I add a extra part to it it has to be in between the range of
 
B

Bob Phillips

Also, you probably want TODAY not NOW, as 03/03/2005 is less than NOW() but
equal to TODAY()

=IF(AND(A2>=TODAY(),A2<=TODAY()+14), "yes", "no")

--

HTH

RP
(remove nothere from the email address if mailing direct)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top