Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default Comparing 2 Dates

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
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default Comparing 2 Dates

=IF(A1<DATEVALUE("10/31/2008"),"X","")
--
Gary''s Student - gsnu200800
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default Comparing 2 Dates

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

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,081
Default Comparing 2 Dates

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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Comparing Dates fubdap Excel Discussion (Misc queries) 3 September 27th 07 03:53 PM
Comparing two dates in one column Koveras Excel Discussion (Misc queries) 1 November 11th 06 11:03 PM
Comparing 3 dates Steve Excel Worksheet Functions 1 May 9th 06 12:10 PM
Comparing dates Debbie F Excel Worksheet Functions 7 September 7th 05 11:57 AM
Comparing Dates using Greater Than and Less than waipio2 Excel Discussion (Misc queries) 1 June 7th 05 09:48 PM


All times are GMT +1. The time now is 10:21 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"