View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Clueless Clueless is offline
external usenet poster
 
Posts: 25
Default IF statement with time over midnight

I am trying to create and IF statement with time. What I have so far is as
follows:
=IF(I2<J2,TRUE,IF(I2="","",FALSE))

I column is beginning time, J column is the finish time.

I am trying to catch time that is entered incorrectly. It works fine until
we have time over midnight. What can I add to the above statement for time
over midnight?

i.e. I J
12:15 12:14 FALSE (which is correct)
23:59 00:02 FALSE (this should be TRUE)
Thanks so much for your help in advance!


--
clueless