Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Issam LAdki
 
Posts: n/a
Default Can you please help agai

Sorry to be a pain again, but i hope you can help with this, and thanks in
advance again.

I am trying the following

Cell A1 = Input time, i.e. 08:00:00
Cell B1 = Calcualte time, i.e. =A1+TIME(07,00,00)
Cell C1 = Input time, i.e. 06:00:00 (next day)
Cell D1 = Following statement
=IF(C1<(B1+TIME(12,00,00),"ERROR",C1+TIME(07,00,00 ))

The formula seems to work all right in the first instance, but assuming I
get the error message, and
go back and correct C1, the "ERROR" remains in D1.

Is there any way i can get the right time to display after correcting C1.

Thank you very much for your help it is really appreciated.

Regards


  #2   Report Post  
JE McGimpsey
 
Posts: n/a
Default

I'm not sure exactly what you're doing (your D1 statement is missing a
paren, at least), but if you're simply trying to make sure that at least
12 hours have elapsed between B1 and C1, then this may work for you:

=IF(C1<MOD(B1+TIME(12,0,0),1),"ERROR",C1+TIME(7,0, 0))

In article ,
"Issam LAdki" wrote:

Sorry to be a pain again, but i hope you can help with this, and thanks in
advance again.

I am trying the following

Cell A1 = Input time, i.e. 08:00:00
Cell B1 = Calcualte time, i.e. =A1+TIME(07,00,00)
Cell C1 = Input time, i.e. 06:00:00 (next day)
Cell D1 = Following statement
=IF(C1<(B1+TIME(12,00,00),"ERROR",C1+TIME(07,00,00 ))

The formula seems to work all right in the first instance, but assuming I
get the error message, and
go back and correct C1, the "ERROR" remains in D1.

Is there any way i can get the right time to display after correcting C1.

Thank you very much for your help it is really appreciated.

Regards

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



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