Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Michael
 
Posts: n/a
Default Do when a time and date has elapsed

I have a problem that is driving me nuts. In cell A1 I have a heading
of Time, and in B1 I have the heading Date. Column A2:A501 is
formatted in hh:mm and B2:B501 is formatted daddy - dd/mmm/yyyy.

I want to use a if statement to if the date in say row 3 and the time
in the same row has elapsed.

I can get the today to work by using =if(b4today(),"yes","no") but
this only gives me from midnight on the day in question, where I need
it from the date and time.

Thanks

Michael

  #2   Report Post  
PeterAtherton
 
Posts: n/a
Default



"Michael" wrote:

I have a problem that is driving me nuts. In cell A1 I have a heading
of Time, and in B1 I have the heading Date. Column A2:A501 is
formatted in hh:mm and B2:B501 is formatted daddy - dd/mmm/yyyy.

I want to use a if statement to if the date in say row 3 and the time
in the same row has elapsed.

I can get the today to work by using =if(b4today(),"yes","no") but
this only gives me from midnight on the day in question, where I need
it from the date and time.

Thanks

Michael

Michael

Is this what you need?
=IF(B13+A13TODAY(),"yes","no")

regards
Peter
  #3   Report Post  
Bob Phillips
 
Posts: n/a
Default

I think Peter means NOW(), and shouldn't elapsed be <?

=IF(B13+A13<NOW(),"yes","no")


--

HTH

RP
(remove nothere from the email address if mailing direct)


"PeterAtherton" wrote in message
...


"Michael" wrote:

I have a problem that is driving me nuts. In cell A1 I have a heading
of Time, and in B1 I have the heading Date. Column A2:A501 is
formatted in hh:mm and B2:B501 is formatted daddy - dd/mmm/yyyy.

I want to use a if statement to if the date in say row 3 and the time
in the same row has elapsed.

I can get the today to work by using =if(b4today(),"yes","no") but
this only gives me from midnight on the day in question, where I need
it from the date and time.

Thanks

Michael

Michael

Is this what you need?
=IF(B13+A13TODAY(),"yes","no")

regards
Peter



  #4   Report Post  
Michael
 
Posts: n/a
Default

On Sun, 24 Apr 2005 14:19:04 -0700, "PeterAtherton"
wrote:

=IF(B13+A13TODAY(),"yes","no")


Hi Peter

I tried the above formula but it did not work properly the day was
fine but not the time. I altered your formula slightly TODAY() has
been substituted for NOW(). This now works me thats.

Michael
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
Automatically enter date and time but only update once. PM New Users to Excel 3 January 21st 05 07:47 AM
Help - Information with time and date PM Excel Discussion (Misc queries) 4 January 6th 05 08:25 AM
Combined date time cell to separate date & time components Mark Ada Excel Discussion (Misc queries) 1 December 2nd 04 12:07 AM
Combined date time cell to separate date & time components Mark Ada Excel Discussion (Misc queries) 1 December 2nd 04 12:07 AM
Combined date time cell to separate date & time components Mark Ada Excel Worksheet Functions 1 December 2nd 04 12:04 AM


All times are GMT +1. The time now is 03:30 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"