Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 149
Default Convert Decimal Minutes to Hours-Minutes-Seconds

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


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 533
Default Convert Decimal Minutes to Hours-Minutes-Seconds

=TEXT((SUM(A1:A5))/1440,"[hh]:mm:ss")

--
Jim
"Scott" wrote in message
...
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




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 149
Default Convert Decimal Minutes to Hours-Minutes-Seconds

what exactly do brackets around the hours mean?


"Jim Rech" wrote in message
...
=TEXT((SUM(A1:A5))/1440,"[hh]:mm:ss")

--
Jim
"Scott" wrote in message
...
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






  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Convert Decimal Minutes to Hours-Minutes-Seconds

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" wrote in message
...
=TEXT((SUM(A1:A5))/1440,"[hh]:mm:ss")

--
Jim
"Scott" wrote in message
...
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
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
I need to convert 157.25 minutes, into hours, minutes and seconds. Al Excel Discussion (Misc queries) 2 March 11th 09 09:04 AM
convert decimal figure to minutes and seconds [email protected] Excel Discussion (Misc queries) 3 May 6th 08 03:08 PM
How do I convert hours, minutes, and seconds into decimal format? Programmer Wannabe Excel Worksheet Functions 2 May 13th 07 03:01 AM
Convert Decimal hours and Minutes to minutes please. Steved Excel Worksheet Functions 13 July 5th 06 05:33 AM
Convert "Time Interval" in "hours : minutes : seconds" to seconds Ianukotnorth New Users to Excel 7 May 8th 05 08:11 PM


All times are GMT +1. The time now is 07:47 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"