#1   Report Post  
Posted to microsoft.public.excel.misc
Pam Pam is offline
external usenet poster
 
Posts: 128
Default Time Format

My customer received a file with columns listing times that represent how
long it took to do something. Example:
88:56:55 (88 hours, 56 minutes, 55 seconds). The problem is that the actual
formatting of the cell is a custom format of:
[=0.0416666666666666][h]:mm:ss;[m]:ss (Yikes!)

What I need is to have the cell actually contain: 88:56:55. I am able to do
the formula: =text(A1,"mm:ss") to get the 56:55 to show up. But if I do:
=text(A1,"hh:mm:ss") I get 16:56:55. (It's working on a 24 hour clock for
hours I guess and so I don't get the entire 88 hours that I want.)

Any ideas would be greatly appreciated.


  #2   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Time Format

Try: =TEXT(A1,"[h]:mm:ss")
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Pam" wrote:
My customer received a file with columns listing times that represent how
long it took to do something. Example:
88:56:55 (88 hours, 56 minutes, 55 seconds). The problem is that the actual
formatting of the cell is a custom format of:
[=0.0416666666666666][h]:mm:ss;[m]:ss (Yikes!)

What I need is to have the cell actually contain: 88:56:55. I am able to do
the formula: =text(A1,"mm:ss") to get the 56:55 to show up. But if I do:
=text(A1,"hh:mm:ss") I get 16:56:55. (It's working on a 24 hour clock for
hours I guess and so I don't get the entire 88 hours that I want.)

Any ideas would be greatly appreciated.


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default Time Format

The custom format should show the hours correctly: the [h] forces Excel to
ignore rolling over 24 hour periods

I don't know why it is necessary to do this but change your formula to:

=TEXT(A1,"[hh]:mm:ss")

"Pam" wrote:

My customer received a file with columns listing times that represent how
long it took to do something. Example:
88:56:55 (88 hours, 56 minutes, 55 seconds). The problem is that the actual
formatting of the cell is a custom format of:
[=0.0416666666666666][h]:mm:ss;[m]:ss (Yikes!)

What I need is to have the cell actually contain: 88:56:55. I am able to do
the formula: =text(A1,"mm:ss") to get the 56:55 to show up. But if I do:
=text(A1,"hh:mm:ss") I get 16:56:55. (It's working on a 24 hour clock for
hours I guess and so I don't get the entire 88 hours that I want.)

Any ideas would be greatly appreciated.


  #4   Report Post  
Posted to microsoft.public.excel.misc
Pam Pam is offline
external usenet poster
 
Posts: 128
Default Time Format

Awesome!!! Thanks to both of you!!!

"Toppers" wrote:

The custom format should show the hours correctly: the [h] forces Excel to
ignore rolling over 24 hour periods

I don't know why it is necessary to do this but change your formula to:

=TEXT(A1,"[hh]:mm:ss")

"Pam" wrote:

My customer received a file with columns listing times that represent how
long it took to do something. Example:
88:56:55 (88 hours, 56 minutes, 55 seconds). The problem is that the actual
formatting of the cell is a custom format of:
[=0.0416666666666666][h]:mm:ss;[m]:ss (Yikes!)

What I need is to have the cell actually contain: 88:56:55. I am able to do
the formula: =text(A1,"mm:ss") to get the 56:55 to show up. But if I do:
=text(A1,"hh:mm:ss") I get 16:56:55. (It's working on a 24 hour clock for
hours I guess and so I don't get the entire 88 hours that I want.)

Any ideas would be greatly appreciated.


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Time Format

0.416666... is one hour (1 divided by 24).

So that formatting says if it's less than an hour just show the minutes and
seconds.

If it's an hour or more, show it as [h]:mm:ss (you got explanations why it's
using [h]).

If wanted your formula to show the same as thing as the format did, you could
use:

=text(a1,"[=0.0416666666666666][h]:mm:ss;[m]:ss")

But that's the same answer you got a week ago in your other post.

Pam wrote:

My customer received a file with columns listing times that represent how
long it took to do something. Example:
88:56:55 (88 hours, 56 minutes, 55 seconds). The problem is that the actual
formatting of the cell is a custom format of:
[=0.0416666666666666][h]:mm:ss;[m]:ss (Yikes!)

What I need is to have the cell actually contain: 88:56:55. I am able to do
the formula: =text(A1,"mm:ss") to get the 56:55 to show up. But if I do:
=text(A1,"hh:mm:ss") I get 16:56:55. (It's working on a 24 hour clock for
hours I guess and so I don't get the entire 88 hours that I want.)

Any ideas would be greatly appreciated.


--

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
Format numbers/time format Pam Excel Discussion (Misc queries) 3 August 1st 07 09:44 PM
Custom Cell format to mimic time format [email protected] Excel Discussion (Misc queries) 6 November 7th 06 09:17 PM
convert time imported as text to time format for calculations batfish Excel Worksheet Functions 3 October 27th 05 11:24 PM
How to format cells in Excel for time in format mm:ss.00 Very Timely Excel Worksheet Functions 0 March 30th 05 07:35 AM
Remove time from a date and time field? Format removes the displa. oaoboc Excel Worksheet Functions 1 February 16th 05 07:20 PM


All times are GMT +1. The time now is 07:26 AM.

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"