comparing dates cells

B

ben

I'm comparing a date from one cell to a date within my
formula. I've tried using datevalue but that doesn't work
either. How do you do this?

My formula reads as:

=IF(A2>1/1/2003, "yes", "no")

Where A2 is an entered date ie: 5/1/2003

Thanks,
Ben
 
D

Dave Peterson

One more way:

=if(a2>date(2003,1,1),"yes","no")

I like date(year,month,day). It's unambiguous and I don't want excel guessing
at my dates. (especially if I share the workbooks with others.)
 

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