today function in an "if" formula

R

RainyDay

I tried to make a formula that would return a 1 only if today is past a
certain date. I tried
=IF(TODAY()>11/14/2008,1,0)
but it returns a 1 irregardless of what date I put in the formula. Where did
I go wrong?
 
G

Glenn

RainyDay said:
I tried to make a formula that would return a 1 only if today is past a
certain date. I tried
=IF(TODAY()>11/14/2008,1,0)
but it returns a 1 irregardless of what date I put in the formula. Where did
I go wrong?


=IF(TODAY()>DATE(2008,11,14),1,0)
 
J

John C

The Date needs to be in quotes, and ensure the date isn't "ambiguous".
=IF(TODAY()>"11/14/2008",1,0)
Or you could put the date in cell A1 and
=IF(TODAY()>A1,1,0)
 
P

Pete_UK

If you want to keep that date in a recognisable format, try it this
way:

IF(TODAY()>--"11/14/2008",1,0)

Hope this helps.

Pete
 
R

RainyDay

Thank you everyone, that was a big help!

Pete_UK said:
If you want to keep that date in a recognisable format, try it this
way:

IF(TODAY()>--"11/14/2008",1,0)

Hope this helps.

Pete
 
D

David Biddulph

Where you went wrong is that you compared not with a date but with a small
number (11 divided by 14, and then that result divided by 2008).
Others have suggested ways of getting it right.
 
D

Dana DeLouis

RainyDay said:
I tried to make a formula that would return a 1 only if today is past a
certain date. I tried
=IF(TODAY()>11/14/2008,1,0)
but it returns a 1 irregardless of what date I put in the formula. Where did
I go wrong?


If it's just 1/0, just another way...

=--(TODAY()>DATE(2008,11,14))

- -
HTH
Dana DeLouis
 

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