PC Review


Reply
Thread Tools Rate Thread

Comparing 2 Dates

 
 
JWeaver
Guest
Posts: n/a
 
      14th Aug 2008
Hi All,

I need to compare a date in "Driver's License Expires" column to a specific
date like, 10/31/08, and if the expiration date is less than this date to put
an "X" in a separate column. I want to mark those rows where an employee's
driver's license has expired or will expire by 10/31/08.

I've tried using an IF statement but the results are not correct. It
doesn't appear that the full date is being compared.

Any help would be appreciated!!
--
JWeaver
 
Reply With Quote
 
 
 
 
Gary''s Student
Guest
Posts: n/a
 
      14th Aug 2008
=IF(A1<DATEVALUE("10/31/2008"),"X","")
--
Gary''s Student - gsnu200800
 
Reply With Quote
 
JWeaver
Guest
Posts: n/a
 
      14th Aug 2008
I tried your formula but it resulted in a blank cell. The date being
compared to 10/31/2008 is 2/16/2007 and should have resulted in a X in the
cell but it is blank.
--
JWeaver


"Gary''s Student" wrote:

> =IF(A1<DATEVALUE("10/31/2008"),"X","")
> --
> Gary''s Student - gsnu200800

 
Reply With Quote
 
Duke Carey
Guest
Posts: n/a
 
      14th Aug 2008
Is A1 a real date or is it text?

Format the cell as a date, then press F2 followed by the Enter key and see
what happens

"JWeaver" wrote:

> I tried your formula but it resulted in a blank cell. The date being
> compared to 10/31/2008 is 2/16/2007 and should have resulted in a X in the
> cell but it is blank.
> --
> JWeaver
>
>
> "Gary''s Student" wrote:
>
> > =IF(A1<DATEVALUE("10/31/2008"),"X","")
> > --
> > Gary''s Student - gsnu200800

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Comparing two dates minimoi Microsoft Excel Programming 1 27th Jan 2010 03:57 PM
RE: Comparing Dates RonaldoOneNil Microsoft Access Queries 4 9th Nov 2008 11:21 PM
Comparing Dates jeff Microsoft Access Form Coding 10 2nd Apr 2007 07:05 AM
Comparing dates Simon Harvey Microsoft C# .NET 6 16th Feb 2006 09:36 AM
Comparing Dates Delenn Microsoft Access Reports 0 9th Feb 2004 04:27 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:44 PM.