How can I use a date in an IF/AND statement?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Trying to formulate =IF(c2 > 01/31/05, 1,"2") Is there a different date
format to use?

Thank you in advance for any help.
 
Hi,

Try this:

=2-(C2>VALUE("01/31/05"))

or

=2-(C2>DATEVALUE("01/31/05"))

or

=2-(C2>DATE(2005,1,31))

or

=IF(C2>DATE(2005,1,31),1,2)

etc.

Regards,
KL
 

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

Back
Top