Date issue

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

Guest

Writing a function in Excel 2003 that starts"=IF(<11/30/2006..."
When run the function returns a false result, however if the date is entered
as "=IF(<39093", the "serial date" that Excel uses it returns a correct
result. Shouldn't the function be using the "human friendly" date format?
What do I need to do to correct this, as I can't expect the teacher to figure
out "serial dates"?

THANKS
 
Try

=IF(A2<--"11/30/2006"

or better

=IF(A2<--"2006-11-30"

or even better

=IF(A2<DATE(2006,11,30)
 
Ron de Bruin said:
The ISO date format in the string Peo use is working in all Excel language
versions and is always interpreted correctly as a date.
....

Very picky: with transition formula entry, the entry 2007-07-27 is
interpreted as =2007-7-27 and returns 1973; transition formula evaluation
treats --"2007-07-27" as 0.
 

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