Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
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 |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
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 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
calculate time in days:hours:minutes | Excel Discussion (Misc queries) | |||
When I add time - Example 10 days of 8 hours each I receive 81.46 | Excel Worksheet Functions | |||
Subtract time between certain days/work hours? | Excel Worksheet Functions | |||
How to convert an elapsed time in minutes to Days hours and minute | Excel Discussion (Misc queries) | |||
How to show negative time (e.g. -10 hours) | Excel Worksheet Functions |