PC Review


Reply
Thread Tools Rate Thread

How do I get time elapsed in terms of minute?

 
 
Mcspore
Guest
Posts: n/a
 
      8th Dec 2007
I cannot, for the life of me, figure out how to make a cell read time in
total minutes. I am trying to read the amount of time elapsed in minutes.
For example, I start running a sample at 18:32 (24 hour clock) and stops at
21:43. I can get Excel to calculate the difference to 3:11 (3 hours and 11
mins) but I need it in terms of minutes (191 mins). I also cannot find out
how to get excel to calculate time elapsed of any kind if it changes days.
For example, if I start a sample at 22:32 and it ends at 01:43 (once again
191 mins) excel gets confused.
 
Reply With Quote
 
 
 
 
pseudo_pro
Guest
Posts: n/a
 
      8th Dec 2007
Try this:
=((A2-A1)*60)*24

A2 is the date/time for end and A1 is date/time for beginning

"Mcspore" wrote:

> I cannot, for the life of me, figure out how to make a cell read time in
> total minutes. I am trying to read the amount of time elapsed in minutes.
> For example, I start running a sample at 18:32 (24 hour clock) and stops at
> 21:43. I can get Excel to calculate the difference to 3:11 (3 hours and 11
> mins) but I need it in terms of minutes (191 mins). I also cannot find out
> how to get excel to calculate time elapsed of any kind if it changes days.
> For example, if I start a sample at 22:32 and it ends at 01:43 (once again
> 191 mins) excel gets confused.

 
Reply With Quote
 
Pete_UK
Guest
Posts: n/a
 
      8th Dec 2007
Assuming start time is in A1 and finish time in B1. You need to know
that Excel stores times as fractions of a 24-hour day, so 12 hours is
stored internally as 0.5, 6 hours as 0.25. Thus, any answer you get
which is in Excel time format needs to be multiplied by 24 and by 60
(and the cell formatted as number) if you want it to be in minutes.

Further, in the situation where the start time appears to be larger
than the finish time because you have gone through midnight, you need
to add 1 to any subtraction of the times to account for this. So, this
leads to (one of many ways of doing it):

=IF(A1>B1,B1-A1+1,B1-A1)*24*60

Format the cell as General or as Number.

Hope this helps.

Pete

On Dec 8, 8:38 pm, Mcspore <Mcsp...@discussions.microsoft.com> wrote:
> I cannot, for the life of me, figure out how to make a cell read time in
> total minutes. I am trying to read the amount of time elapsed in minutes.
> For example, I start running a sample at 18:32 (24 hour clock) and stops at
> 21:43. I can get Excel to calculate the difference to 3:11 (3 hours and 11
> mins) but I need it in terms of minutes (191 mins). I also cannot find out
> how to get excel to calculate time elapsed of any kind if it changes days.
> For example, if I start a sample at 22:32 and it ends at 01:43 (once again
> 191 mins) excel gets confused.


 
Reply With Quote
 
Bill Kuunders
Guest
Posts: n/a
 
      8th Dec 2007

=IF(J1>K1,(K1+1-J1)*24*60,(K1-J1)*24*60)

J1 is start time
K1 is end time

formatted as general

normally a general format time result gives you part of a day
thats why you have to multiply by 24 and 60 to get minutes
the "if" formula part will ensure you get the right result when times fall
passed midnight


Bill K
Greetings from New Zealand


"Mcspore" <(E-Mail Removed)> wrote in message
news:2D927AC5-32E7-438D-A893-(E-Mail Removed)...
>I cannot, for the life of me, figure out how to make a cell read time in
> total minutes. I am trying to read the amount of time elapsed in minutes.
> For example, I start running a sample at 18:32 (24 hour clock) and stops
> at
> 21:43. I can get Excel to calculate the difference to 3:11 (3 hours and
> 11
> mins) but I need it in terms of minutes (191 mins). I also cannot find
> out
> how to get excel to calculate time elapsed of any kind if it changes days.
> For example, if I start a sample at 22:32 and it ends at 01:43 (once again
> 191 mins) excel gets confused.



 
Reply With Quote
 
FloMM2
Guest
Posts: n/a
 
      8th Dec 2007
Mcspore,
Try this:
Column B Column C
Start End
Lapse
54 12/8/07 18:32 12/8/07 21:43
=(((C54-B54)*86400)/60)
55 12/8/07 22:32 12/9/07 1:43
=(((C55-B55)*86400)/60)
Both these give you 191 minutes.
Make sure format cell B54, C54, and all others as Date and Time.
HTH
Dennis

"Mcspore" wrote:

> I cannot, for the life of me, figure out how to make a cell read time in
> total minutes. I am trying to read the amount of time elapsed in minutes.
> For example, I start running a sample at 18:32 (24 hour clock) and stops at
> 21:43. I can get Excel to calculate the difference to 3:11 (3 hours and 11
> mins) but I need it in terms of minutes (191 mins). I also cannot find out
> how to get excel to calculate time elapsed of any kind if it changes days.
> For example, if I start a sample at 22:32 and it ends at 01:43 (once again
> 191 mins) excel gets confused.

 
Reply With Quote
 
FloMM2
Guest
Posts: n/a
 
      8th Dec 2007
Mcspore<
Or you could try this:
Start
A1
End
B1
Lapse
C1

A1=Date and time
B1=Date and Time
C1=((B1-A1)*1440)

hth

"Mcspore" wrote:

> I cannot, for the life of me, figure out how to make a cell read time in
> total minutes. I am trying to read the amount of time elapsed in minutes.
> For example, I start running a sample at 18:32 (24 hour clock) and stops at
> 21:43. I can get Excel to calculate the difference to 3:11 (3 hours and 11
> mins) but I need it in terms of minutes (191 mins). I also cannot find out
> how to get excel to calculate time elapsed of any kind if it changes days.
> For example, if I start a sample at 22:32 and it ends at 01:43 (once again
> 191 mins) excel gets confused.

 
Reply With Quote
 
David Biddulph
Guest
Posts: n/a
 
      8th Dec 2007
.... or (somewhat shorter) =MOD(K1-J1,1)*24*60
--
David Biddulph

"Bill Kuunders" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
> =IF(J1>K1,(K1+1-J1)*24*60,(K1-J1)*24*60)
>
> J1 is start time
> K1 is end time
>
> formatted as general
>
> normally a general format time result gives you part of a day
> thats why you have to multiply by 24 and 60 to get minutes
> the "if" formula part will ensure you get the right result when times fall
> passed midnight
>
>
> Bill K
> Greetings from New Zealand
>
>
> "Mcspore" <(E-Mail Removed)> wrote in message
> news:2D927AC5-32E7-438D-A893-(E-Mail Removed)...
>>I cannot, for the life of me, figure out how to make a cell read time in
>> total minutes. I am trying to read the amount of time elapsed in
>> minutes.
>> For example, I start running a sample at 18:32 (24 hour clock) and stops
>> at
>> 21:43. I can get Excel to calculate the difference to 3:11 (3 hours and
>> 11
>> mins) but I need it in terms of minutes (191 mins). I also cannot find
>> out
>> how to get excel to calculate time elapsed of any kind if it changes
>> days.
>> For example, if I start a sample at 22:32 and it ends at 01:43 (once
>> again
>> 191 mins) excel gets confused.

>
>



 
Reply With Quote
 
Bill Kuunders
Guest
Posts: n/a
 
      9th Dec 2007
Thanks David,

So why does it work?
Never seen this one before.

Bill K
"David Biddulph" <groups [at] biddulph.org.uk> wrote in message
news:(E-Mail Removed)...
> ... or (somewhat shorter) =MOD(K1-J1,1)*24*60
> --
> David Biddulph
>
> "Bill Kuunders" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>>
>> =IF(J1>K1,(K1+1-J1)*24*60,(K1-J1)*24*60)
>>
>> J1 is start time
>> K1 is end time
>>
>> formatted as general
>>
>> normally a general format time result gives you part of a day
>> thats why you have to multiply by 24 and 60 to get minutes
>> the "if" formula part will ensure you get the right result when times
>> fall
>> passed midnight
>>
>>
>> Bill K
>> Greetings from New Zealand
>>
>>
>> "Mcspore" <(E-Mail Removed)> wrote in message
>> news:2D927AC5-32E7-438D-A893-(E-Mail Removed)...
>>>I cannot, for the life of me, figure out how to make a cell read time in
>>> total minutes. I am trying to read the amount of time elapsed in
>>> minutes.
>>> For example, I start running a sample at 18:32 (24 hour clock) and stops
>>> at
>>> 21:43. I can get Excel to calculate the difference to 3:11 (3 hours and
>>> 11
>>> mins) but I need it in terms of minutes (191 mins). I also cannot find
>>> out
>>> how to get excel to calculate time elapsed of any kind if it changes
>>> days.
>>> For example, if I start a sample at 22:32 and it ends at 01:43 (once
>>> again
>>> 191 mins) excel gets confused.

>>
>>

>
>



 
Reply With Quote
 
David Biddulph
Guest
Posts: n/a
 
      9th Dec 2007
From -18:00, the formula =MOD(-0.75,1) will return 0.25 which is 06:00.

The other useful simplification of your formula is =(K1-J1+(J1>K1))*24*60
which works because the boolean TRUE or FALSE from (J1>K1) is evaluated as 1
or 0.
--
David Biddulph

"Bill Kuunders" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Thanks David,
>
> So why does it work?
> Never seen this one before.
>
> Bill K
> "David Biddulph" <groups [at] biddulph.org.uk> wrote in message
> news:(E-Mail Removed)...
>> ... or (somewhat shorter) =MOD(K1-J1,1)*24*60
>> --
>> David Biddulph
>>
>> "Bill Kuunders" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>>>
>>> =IF(J1>K1,(K1+1-J1)*24*60,(K1-J1)*24*60)
>>>
>>> J1 is start time
>>> K1 is end time
>>>
>>> formatted as general
>>>
>>> normally a general format time result gives you part of a day
>>> thats why you have to multiply by 24 and 60 to get minutes
>>> the "if" formula part will ensure you get the right result when times
>>> fall
>>> passed midnight
>>>
>>>
>>> Bill K
>>> Greetings from New Zealand
>>>
>>>
>>> "Mcspore" <(E-Mail Removed)> wrote in message
>>> news:2D927AC5-32E7-438D-A893-(E-Mail Removed)...
>>>>I cannot, for the life of me, figure out how to make a cell read time in
>>>> total minutes. I am trying to read the amount of time elapsed in
>>>> minutes.
>>>> For example, I start running a sample at 18:32 (24 hour clock) and
>>>> stops at
>>>> 21:43. I can get Excel to calculate the difference to 3:11 (3 hours
>>>> and 11
>>>> mins) but I need it in terms of minutes (191 mins). I also cannot find
>>>> out
>>>> how to get excel to calculate time elapsed of any kind if it changes
>>>> days.
>>>> For example, if I start a sample at 22:32 and it ends at 01:43 (once
>>>> again
>>>> 191 mins) excel gets confused.
>>>
>>>

>>
>>

>
>



 
Reply With Quote
 
Bill Kuunders
Guest
Posts: n/a
 
      10th Dec 2007
Thanks a lot David

"David Biddulph" <groups [at] biddulph.org.uk> wrote in message
news:LpqdnRqHytJGX8banZ2dnUVZ8h-(E-Mail Removed)...
> From -18:00, the formula =MOD(-0.75,1) will return 0.25 which is 06:00.
>
> The other useful simplification of your formula is =(K1-J1+(J1>K1))*24*60
> which works because the boolean TRUE or FALSE from (J1>K1) is evaluated as
> 1 or 0.
> --
> David Biddulph
>
> "Bill Kuunders" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Thanks David,
>>
>> So why does it work?
>> Never seen this one before.
>>
>> Bill K
>> "David Biddulph" <groups [at] biddulph.org.uk> wrote in message
>> news:(E-Mail Removed)...
>>> ... or (somewhat shorter) =MOD(K1-J1,1)*24*60
>>> --
>>> David Biddulph
>>>
>>> "Bill Kuunders" <(E-Mail Removed)> wrote in message
>>> news:(E-Mail Removed)...
>>>>
>>>> =IF(J1>K1,(K1+1-J1)*24*60,(K1-J1)*24*60)
>>>>
>>>> J1 is start time
>>>> K1 is end time
>>>>
>>>> formatted as general
>>>>
>>>> normally a general format time result gives you part of a day
>>>> thats why you have to multiply by 24 and 60 to get minutes
>>>> the "if" formula part will ensure you get the right result when times
>>>> fall
>>>> passed midnight
>>>>
>>>>
>>>> Bill K
>>>> Greetings from New Zealand
>>>>
>>>>
>>>> "Mcspore" <(E-Mail Removed)> wrote in message
>>>> news:2D927AC5-32E7-438D-A893-(E-Mail Removed)...
>>>>>I cannot, for the life of me, figure out how to make a cell read time
>>>>>in
>>>>> total minutes. I am trying to read the amount of time elapsed in
>>>>> minutes.
>>>>> For example, I start running a sample at 18:32 (24 hour clock) and
>>>>> stops at
>>>>> 21:43. I can get Excel to calculate the difference to 3:11 (3 hours
>>>>> and 11
>>>>> mins) but I need it in terms of minutes (191 mins). I also cannot
>>>>> find out
>>>>> how to get excel to calculate time elapsed of any kind if it changes
>>>>> days.
>>>>> For example, if I start a sample at 22:32 and it ends at 01:43 (once
>>>>> again
>>>>> 191 mins) excel gets confused.
>>>>
>>>>
>>>
>>>

>>
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
System time(minute) change event doesn't raise per minute. =?Utf-8?B?THVja2Nhbw==?= Microsoft Dot NET Compact Framework 1 5th Jul 2007 04:49 PM
Macro elapsed time bar (same as download time elapsed bar) =?Utf-8?B?a2x5c2VsbA==?= Microsoft Excel Programming 2 26th Apr 2007 04:58 PM
How to convert an elapsed time in minutes to Days hours and minute =?Utf-8?B?VGltZSBUcmFja2Vy?= Microsoft Excel Misc 1 9th Apr 2006 03:40 AM
On time and how much has elapsed: how do I Calculate elapsed time. =?Utf-8?B?RmdyaXp6?= Microsoft Access Queries 1 27th Jan 2005 06:15 AM
Elapsed date & time in terms of days, to the second =?Utf-8?B?REI=?= Microsoft Excel Misc 3 24th Nov 2004 02:47 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:50 PM.