
Signature
Greetings from New Zealand
> This small equation is kicking my butt. Could someone enlighten me.
>
[quoted text clipped - 8 lines]
>
> Appreciate any help
"Bill Kuunders" <bill.kuund...@xtra.co.nz> wrote...
>=IF(C2<39813, C2,"future")
>excel date system is based on numbers of days after 0 jan 1900
[quoted text clipped - 3 lines]
>you probably want 39814 being the date for 1 jan 09.
>or have <=39813
...
Not exactly readable, and it's specific to the 1900 date system, so
would fubar if the OP were using the 1904 date system. Using the DATE
function, which other respondents did, is far more robust AND easier
to read and understand.
FTHOI, the OP's formula failed because Excel treats 12/31/08 as (12
divided by 31) divided by 8. Alternatives that are more readable,
=IF("12/31/08"-C2>0, C2,"future")
=IF(C2<DATEVALUE("12/31/08"), C2,"future")
=IF(C2<VALUE("12/31/08"), C2,"future")
That is, under standard formula evaluation, Excel will convert date
strings into dates in arithmetic expressions, and it also provides
functions that convert date strings into dates.