PC Review


Reply
Thread Tools Rating: Thread Rating: 1 votes, 5.00 average.

Convert Decimal Minutes to Hours-Minutes-Seconds

 
 
Scott
Guest
Posts: n/a
 
      22nd Oct 2008
The below formula will convert decimal minutes-seconds into real time
hours-minutes-seconds. In the current example, the total time is 23:59:00
which is correct.

However, if I increase the minutes so that they total more than 24 hours, my
formula losses 24 hours.

Can someone help me modify my formula, so if cell A2 changes to 2 decimal
minutes, the correct total would be displayed as 24:01:00, instead of
00:01:00 ?


Example Formula
*****************
=TEXT((SUM(A1:A5))/1440, "hh:mm:ss")


Example Data
*****************

A
===============
1 200.00
2 0.00
3 39.00
4 800.00
5 400.00


 
Reply With Quote
 
 
 
 
Jim Rech
Guest
Posts: n/a
 
      22nd Oct 2008
=TEXT((SUM(A1:A5))/1440,"[hh]:mm:ss")

--
Jim
"Scott" <(E-Mail Removed)> wrote in message
news:%23%(E-Mail Removed)...
> The below formula will convert decimal minutes-seconds into real time
> hours-minutes-seconds. In the current example, the total time is 23:59:00
> which is correct.
>
> However, if I increase the minutes so that they total more than 24 hours,
> my formula losses 24 hours.
>
> Can someone help me modify my formula, so if cell A2 changes to 2 decimal
> minutes, the correct total would be displayed as 24:01:00, instead of
> 00:01:00 ?
>
>
> Example Formula
> *****************
> =TEXT((SUM(A1:A5))/1440, "hh:mm:ss")
>
>
> Example Data
> *****************
>
> A
> ===============
> 1 200.00
> 2 0.00
> 3 39.00
> 4 800.00
> 5 400.00
>
>



 
Reply With Quote
 
Scott
Guest
Posts: n/a
 
      22nd Oct 2008
what exactly do brackets around the hours mean?


"Jim Rech" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> =TEXT((SUM(A1:A5))/1440,"[hh]:mm:ss")
>
> --
> Jim
> "Scott" <(E-Mail Removed)> wrote in message
> news:%23%(E-Mail Removed)...
>> The below formula will convert decimal minutes-seconds into real time
>> hours-minutes-seconds. In the current example, the total time is 23:59:00
>> which is correct.
>>
>> However, if I increase the minutes so that they total more than 24 hours,
>> my formula losses 24 hours.
>>
>> Can someone help me modify my formula, so if cell A2 changes to 2 decimal
>> minutes, the correct total would be displayed as 24:01:00, instead of
>> 00:01:00 ?
>>
>>
>> Example Formula
>> *****************
>> =TEXT((SUM(A1:A5))/1440, "hh:mm:ss")
>>
>>
>> Example Data
>> *****************
>>
>> A
>> ===============
>> 1 200.00
>> 2 0.00
>> 3 39.00
>> 4 800.00
>> 5 400.00
>>
>>

>
>



 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      22nd Oct 2008
Try this on a new worksheet:
Format B1: hh:mm:ss
Format C1: [hh]:mm:ss

Put =a1 in both cells

Now put some times in A1 to see what appears in B1 and C1.

Try
13:00:00
18:00:00
23:00:00
38:00:00
43:00:00

And you'll see what those []'s do.

Scott wrote:
>
> what exactly do brackets around the hours mean?
>
> "Jim Rech" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > =TEXT((SUM(A1:A5))/1440,"[hh]:mm:ss")
> >
> > --
> > Jim
> > "Scott" <(E-Mail Removed)> wrote in message
> > news:%23%(E-Mail Removed)...
> >> The below formula will convert decimal minutes-seconds into real time
> >> hours-minutes-seconds. In the current example, the total time is 23:59:00
> >> which is correct.
> >>
> >> However, if I increase the minutes so that they total more than 24 hours,
> >> my formula losses 24 hours.
> >>
> >> Can someone help me modify my formula, so if cell A2 changes to 2 decimal
> >> minutes, the correct total would be displayed as 24:01:00, instead of
> >> 00:01:00 ?
> >>
> >>
> >> Example Formula
> >> *****************
> >> =TEXT((SUM(A1:A5))/1440, "hh:mm:ss")
> >>
> >>
> >> Example Data
> >> *****************
> >>
> >> A
> >> ===============
> >> 1 200.00
> >> 2 0.00
> >> 3 39.00
> >> 4 800.00
> >> 5 400.00
> >>
> >>

> >
> >


--

Dave Peterson
 
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
I need to convert 157.25 minutes, into hours, minutes and seconds. Al Microsoft Excel Misc 1 11th Mar 2009 09:04 AM
Convert seconds to days, hours, minutes and seconds. Sheldon Microsoft VB .NET 5 6th Jul 2008 03:09 PM
convert decimal figure to minutes and seconds stevendavina@whetstonelane.orangehome.co.uk Microsoft Excel Misc 3 6th May 2008 03:08 PM
How do I convert hours, minutes, and seconds into decimal format? =?Utf-8?B?UHJvZ3JhbW1lciBXYW5uYWJl?= Microsoft Excel Worksheet Functions 2 13th May 2007 03:01 AM
Convert Decimal hours and Minutes to minutes please. =?Utf-8?B?U3RldmVk?= Microsoft Excel Worksheet Functions 13 5th Jul 2006 05:33 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:34 PM.