ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Date - greater than and less than (https://www.excelbanter.com/excel-worksheet-functions/81773-date-greater-than-less-than.html)

John H.

Date - greater than and less than
 
Hi.

I'm writing a function where I need to know if a date is earlier than or
later than a base date. I'm trying to use an IF function:
=IF(A1<2/1/06,1,0).

But for some reason it's not recognizing the dates - or something is wrong.

What's not right?

Thanks.

Bob Phillips

Date - greater than and less than
 
=IF(A1<--"2006-02-01",1,0).


--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"John H." <John wrote in message
...
Hi.

I'm writing a function where I need to know if a date is earlier than or
later than a base date. I'm trying to use an IF function:
=IF(A1<2/1/06,1,0).

But for some reason it's not recognizing the dates - or something is

wrong.

What's not right?

Thanks.





All times are GMT +1. The time now is 10:03 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com