comparing dates cells

  • Thread starter Thread starter ben
  • Start date Start date
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
 
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.)
 
Back
Top