A Microsoft Excel forum. ExcelBanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » ExcelBanter forum » Excel Newsgroups » Excel Discussion (Misc queries)
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Formatting cells to show length of time in Days and hours



 
 
Thread Tools Display Modes
  #1  
Old January 9th 08, 08:28 AM posted to microsoft.public.excel.misc
David Biddulph[_2_]
external usenet poster
 
Posts: 8,651
Default Formatting cells to show length of time in Days and hours

You could do something like =INT(A2)&" days "&TEXT(A2,"hh")&" hours"
--
David Biddulph

"Forum Freak" > wrote in message
...
> Hi all
>
> Is it possible to format cells to show length of time as "Days and Hours"?
>
> I tried [d]:h (based on [h]:m) but this does not work. d:h gives a false
> result if the value is a few months!
>
> The majority of cells time value are around a couple of days but
> occasionally some values are months or even over a year.
>
> I do not want to format as "y:m:d:h" to cover every eventuality.
>
> I am using excel2003
>
> TIA
>
> Kenny
>



Ads
  #2  
Old January 9th 08, 07:34 PM posted to microsoft.public.excel.misc
Forum Freak
external usenet poster
 
Posts: 5
Default Formatting cells to show length of time in Days and hours

Many thanks David - it worked a treat!

Kenny


"David Biddulph" <groups [at] biddulph.org.uk> wrote in message
...
> You could do something like =INT(A2)&" days "&TEXT(A2,"hh")&" hours"
> --
> David Biddulph
>
> "Forum Freak" > wrote in message
> ...
>> Hi all
>>
>> Is it possible to format cells to show length of time as "Days and
>> Hours"?
>>
>> I tried [d]:h (based on [h]:m) but this does not work. d:h gives a false
>> result if the value is a few months!
>>
>> The majority of cells time value are around a couple of days but
>> occasionally some values are months or even over a year.
>>
>> I do not want to format as "y:m:d:h" to cover every eventuality.
>>
>> I am using excel2003
>>
>> TIA
>>
>> Kenny
>>

>
>



 




Thread Tools
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 On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
calculate time in days:hours:minutes Stice Excel Discussion (Misc queries) 1 February 5th 07 09:55 PM
When I add time - Example 10 days of 8 hours each I receive 81.46 Kathy Excel Worksheet Functions 3 August 12th 06 05:43 PM
Subtract time between certain days/work hours? lisa b. Excel Worksheet Functions 2 July 17th 06 09:26 PM
How to convert an elapsed time in minutes to Days hours and minute Time Tracker Excel Discussion (Misc queries) 1 April 9th 06 03:40 AM
How to show negative time (e.g. -10 hours) Arhippa Excel Worksheet Functions 3 January 19th 05 08:53 AM


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


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