Welcome to the { mindfrost82.com } forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Microsoft > MS Office > Excel

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-05-2008, 08:15 AM
Paul
 
Posts: n/a
Time Question

Column D: 11:01 PM
Column E: 11:10 PM

Using this formula =IF(C116="","",IF(D116="",0,D116-C116)) I get in
column C: 0:09 (Elapsed minutes, which is what I want.)

All well and good until this happens

D: 11:01 pm
E: 12:03 am

Not I get gobbledeegook.


Reply With Quote
  #2 (permalink)  
Old 07-05-2008, 09:47 AM
pub
 
Posts: n/a
Re: Time Question

Paul <Msr33@TPx12.com> wrote in news:7l7u64lph4kf49brn08p0eec8nug221b2d@
4ax.com:

> Column D: 11:01 PM
> Column E: 11:10 PM
>
> Using this formula =IF(C116="","",IF(D116="",0,D116-C116)) I get in
> column C: 0:09 (Elapsed minutes, which is what I want.)
>
> All well and good until this happens
>
> D: 11:01 pm
> E: 12:03 am
>
> Not I get gobbledeegook.
>
>
>


the problem in c116 is that you are getting negative time. so you get
the ###### signs.
do you want c116 to show 1 hour 2 minutes? or 22:58 minutes?

for 1:02 use this
=E116-D116+(E116<D116)

for 22:58 use this
=(MAX(D116:E116)-MIN(D116:E116))

hope thats what you are looking for.
Reply With Quote
  #3 (permalink)  
Old 07-05-2008, 09:48 AM
Sandy Mann
 
Posts: n/a
Re: Time Question

I assume that you have typos in your formula but with the start time (11:01
PM) in D116 and the end time (12:03 AM) in E116 try:

=IF(COUNT(D115:E115)<>2,"",MOD(E115-D115,1))

to give 01:02

Can be used for any time of day not just crossing midnight.

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings

sandymann2@mailinator.com
Replace @mailinator.com with @tiscali.co.uk


"Paul" <Msr33@TPx12.com> wrote in message
news:7l7u64lph4kf49brn08p0eec8nug221b2d@4ax.com...
> Column D: 11:01 PM
> Column E: 11:10 PM
>
> Using this formula =IF(C116="","",IF(D116="",0,D116-C116)) I get in
> column C: 0:09 (Elapsed minutes, which is what I want.)
>
> All well and good until this happens
>
> D: 11:01 pm
> E: 12:03 am
>
> Not I get gobbledeegook.
>
>
>



Reply With Quote
  #4 (permalink)  
Old 07-05-2008, 10:27 AM
Dave Mills
 
Posts: n/a
Re: Time Question

Your formula seem wrong as C116-D116 would ref itself. Assuming you meant to use
D & E as the source data. Then the time diff become negative in the second case
which is invalid. Format C116 as a number to see this.


On Sat, 05 Jul 2008 00:15:22 -0700, Paul <Msr33@TPx12.com> wrote:

>Column D: 11:01 PM
>Column E: 11:10 PM
>
>Using this formula =IF(C116="","",IF(D116="",0,D116-C116)) I get in
>column C: 0:09 (Elapsed minutes, which is what I want.)
>
>All well and good until this happens
>
>D: 11:01 pm
>E: 12:03 am
>
>Not I get gobbledeegook.
>

--
Dave Mills
There are 10 type of people, those that understand binary and those that don't.
Reply With Quote
  #5 (permalink)  
Old 07-05-2008, 12:41 PM
Dave Peterson
 
Posts: n/a
Re: Time Question

Maybe it would be a good idea to include the date with the time if there's a
possibility that you're changing dates.

And if you include the date, you won't have to worry if/when you cross two or
more midnights.

Paul wrote:
>
> Column D: 11:01 PM
> Column E: 11:10 PM
>
> Using this formula =IF(C116="","",IF(D116="",0,D116-C116)) I get in
> column C: 0:09 (Elapsed minutes, which is what I want.)
>
> All well and good until this happens
>
> D: 11:01 pm
> E: 12:03 am
>
> Not I get gobbledeegook.


--

Dave Peterson
Reply With Quote
  #6 (permalink)  
Old 07-05-2008, 09:00 PM
Peter Andrews
 
Posts: n/a
Re: Time Question


"Paul" <Msr33@TPx12.com> wrote in message
news:7l7u64lph4kf49brn08p0eec8nug221b2d@4ax.com...
> Column D: 11:01 PM
> Column E: 11:10 PM
>
> Using this formula =IF(C116="","",IF(D116="",0,D116-C116)) I get in
> column C: 0:09 (Elapsed minutes, which is what I want.)
>
> All well and good until this happens
>
> D: 11:01 pm
> E: 12:03 am
>
> Not I get gobbledeegook.
>
>


Shouldn't 12:03am be 00:03, i.e. three minutes past midnight. But you will
need to include a date if doing any calculations passing through midnight.

Peter


Reply With Quote
  #7 (permalink)  
Old 07-06-2008, 07:29 AM
Paul
 
Posts: n/a
Re: Time Question

Thanks to all. It's working great now.


On Sat, 05 Jul 2008 08:47:20 GMT, pub <puiblicstuff@home.com> wrote:

>Paul <Msr33@TPx12.com> wrote in news:7l7u64lph4kf49brn08p0eec8nug221b2d@
>4ax.com:
>
>> Column D: 11:01 PM
>> Column E: 11:10 PM
>>
>> Using this formula =IF(C116="","",IF(D116="",0,D116-C116)) I get in
>> column C: 0:09 (Elapsed minutes, which is what I want.)
>>
>> All well and good until this happens
>>
>> D: 11:01 pm
>> E: 12:03 am
>>
>> Not I get gobbledeegook.
>>
>>
>>

>
>the problem in c116 is that you are getting negative time. so you get
>the ###### signs.
>do you want c116 to show 1 hour 2 minutes? or 22:58 minutes?
>
>for 1:02 use this
>=E116-D116+(E116<D116)
>
>for 22:58 use this
>=(MAX(D116:E116)-MIN(D116:E116))
>
>hope thats what you are looking for.


Reply With Quote
Reply

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Microsoft > MS Office > Excel


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 03:45 AM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0


Sponsors:
Mortgage Calculator | Online Advertising | Send Money Online | CareerCoach Hotel | Gas Suppliers



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114