ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   How to convert hours in days? (https://www.excelbanter.com/excel-worksheet-functions/16859-how-convert-hours-days.html)

Tony

How to convert hours in days?
 
Guys.... how can I make cell A1 (which as 159.25 hours)say 6 hours and so
many mintues?

Thanks for you help

Tony

Bob Phillips

Tony,

I assume that you mean 6 days etc?

=A1/24

and format as d\d hh:mm:ss

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Tony" wrote in message
...
Guys.... how can I make cell A1 (which as 159.25 hours)say 6 hours and so
many mintues?

Thanks for you help

Tony




[email protected]

Tony wrote:
Guys.... how can I make cell A1 (which as 159.25 hours)
say 6 hours and so many mintues?


No one can convert 159 hr into 6 __hours__ without cheating :-).
Do you mean 6 __days__ and "so many minutes"?

Do you mean that literally, or would days, __hours__ and
minutes meet your needs?

For the latter, use the custom format dd:hh:mm.

But that only seems to work for less than 32 days.

The format [d]:hh:mm does not seem to work. But the format
[h]:mm does, yielding hours and minutes, not days.


Jason Morin

The subject and body of your post don't jive. If A1
contains hours, then to convert to days / hours / minutes:

=INT(A1/24)&" days "&INT(MOD(A1/24,1)*24)&" hrs "&ROUND
(MOD(MOD(A1/24,1)*24,1)*60,0)&" min"

HTH
Jason
Atlanta, GA

-----Original Message-----
Guys.... how can I make cell A1 (which as 159.25 hours)

say 6 hours and so
many mintues?

Thanks for you help

Tony
.



All times are GMT +1. The time now is 04:55 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com