Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

1904 negative time

1 view
Skip to first unread message

Dale G

unread,
Nov 22, 2009, 1:23:01 PM11/22/09
to
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).

Fred Smith

unread,
Nov 22, 2009, 1:29:08 PM11/22/09
to
You do it this way:
=if(d1="","",d1-c1)

Regards,
Fred.

"Dale G" <Da...@discussions.microsoft.com> wrote in message
news:45447921-AE98-4999...@microsoft.com...

Dave Peterson

unread,
Nov 22, 2009, 1:32:04 PM11/22/09
to
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)

--

Dave Peterson

Kassie

unread,
Nov 22, 2009, 1:38:01 PM11/22/09
to
Let's sa your data starts in row 2. Then, in E2, enter =IF(D2="","",D2-C2)

--
HTH

Kassie

Replace xxx with hotmail

Gary''s Student

unread,
Nov 22, 2009, 1:39:02 PM11/22/09
to
Something like:

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

Dale G

unread,
Nov 22, 2009, 4:44:01 PM11/22/09
to
Excellent, thanks for all the help. I think I'll use =IF(D3="","",D3-C3).

"Dave Peterson" wrote:

> .
>

0 new messages