#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 85
Default 1904 negative time

I would like to use the 1904 date system to calculate positive & negative
time. I have column (c) preset with an scheduled arrival time, and a blank
column (D) to enter the actual arrivel time. Column E is set with =D-C for
the difference.
Column E will always show the negative time of C (e.g -4:50) until I enter
the actual arrived time in D. Is there a way to have column E remain blank
until I enter the actual time. (Also the negative time in E effects other
calulations like Average).
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,389
Default 1904 negative time

You do it this way:
=if(d1="","",d1-c1)

Regards,
Fred.

"Dale G" wrote in message
...
I would like to use the 1904 date system to calculate positive & negative
time. I have column (c) preset with an scheduled arrival time, and a
blank
column (D) to enter the actual arrivel time. Column E is set with =D-C for
the difference.
Column E will always show the negative time of C (e.g -4:50) until I
enter
the actual arrived time in D. Is there a way to have column E remain blank
until I enter the actual time. (Also the negative time in E effects other
calulations like Average).


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default 1904 negative time

Times (and dates) are just numbers to excel. So you could modify your formula
to check to see how many numbers are in those cells before you do anything...

=if(count(c2:d2)<2,"",d2-c2)
(formatted nicely)

If you want to treat negative times as exactly on time (no credit for arriving
early), you could use something like this to determine that adjusted average:

=sumif(e:e,""&0,e:e) / count(e:e)
or
=sumif(e:e,""&0) / count(e:e)




Dale G wrote:

I would like to use the 1904 date system to calculate positive & negative
time. I have column (c) preset with an scheduled arrival time, and a blank
column (D) to enter the actual arrivel time. Column E is set with =D-C for
the difference.
Column E will always show the negative time of C (e.g -4:50) until I enter
the actual arrived time in D. Is there a way to have column E remain blank
until I enter the actual time. (Also the negative time in E effects other
calulations like Average).


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 85
Default 1904 negative time

Excellent, thanks for all the help. I think I'll use =IF(D3="","",D3-C3).

"Dave Peterson" wrote:

Times (and dates) are just numbers to excel. So you could modify your formula
to check to see how many numbers are in those cells before you do anything...

=if(count(c2:d2)<2,"",d2-c2)
(formatted nicely)

If you want to treat negative times as exactly on time (no credit for arriving
early), you could use something like this to determine that adjusted average:

=sumif(e:e,""&0,e:e) / count(e:e)
or
=sumif(e:e,""&0) / count(e:e)




Dale G wrote:

I would like to use the 1904 date system to calculate positive & negative
time. I have column (c) preset with an scheduled arrival time, and a blank
column (D) to enter the actual arrivel time. Column E is set with =D-C for
the difference.
Column E will always show the negative time of C (e.g -4:50) until I enter
the actual arrived time in D. Is there a way to have column E remain blank
until I enter the actual time. (Also the negative time in E effects other
calulations like Average).


--

Dave Peterson
.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 515
Default 1904 negative time

Let's sa your data starts in row 2. Then, in E2, enter =IF(D2="","",D2-C2)

--
HTH

Kassie

Replace xxx with hotmail


"Dale G" wrote:

I would like to use the 1904 date system to calculate positive & negative
time. I have column (c) preset with an scheduled arrival time, and a blank
column (D) to enter the actual arrivel time. Column E is set with =D-C for
the difference.
Column E will always show the negative time of C (e.g -4:50) until I enter
the actual arrived time in D. Is there a way to have column E remain blank
until I enter the actual time. (Also the negative time in E effects other
calulations like Average).



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default 1904 negative time

Something like:

=IF(OR(D1="",C1=""),"",D1-C1)
--
Gary''s Student - gsnu200909


"Dale G" wrote:

I would like to use the 1904 date system to calculate positive & negative
time. I have column (c) preset with an scheduled arrival time, and a blank
column (D) to enter the actual arrivel time. Column E is set with =D-C for
the difference.
Column E will always show the negative time of C (e.g -4:50) until I enter
the actual arrived time in D. Is there a way to have column E remain blank
until I enter the actual time. (Also the negative time in E effects other
calulations like Average).

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
1900 vs 1904 date functions Mary Lou Excel Worksheet Functions 1 October 27th 08 03:43 PM
using if statement to subtract 24 hours from time still shows as a negative time from both responses under 24 hours richard.littlewing Excel Worksheet Functions 2 September 15th 08 08:05 AM
convert Excel sheet in 1904 format to 1900 without changing dates Joe Excel Worksheet Functions 1 June 8th 07 01:51 PM
Calculating time and negative time Josh UK Excel Worksheet Functions 3 February 8th 07 04:48 PM
Negative time should be allowed in Excel, eg time difference Bengt-Inge Larsson Excel Discussion (Misc queries) 2 October 13th 05 12:59 PM


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