ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   {h}:mm to display x hours and x minutes (https://www.excelbanter.com/excel-discussion-misc-queries/179345-%7Bh%7D-mm-display-x-hours-x-minutes.html)

Josh

{h}:mm to display x hours and x minutes
 
i want to make a cell display text and numbers. i want to take time from one
cell, say A1 is 227:23 as [h]:mm and make it say in A2 227 hours 23 minutes.
how can i do this?

T. Valko

{h}:mm to display x hours and x minutes
 
Try this:

In chunks so line wrap doesn't break at the needed spaces:

=INT(A1*24)&" hour"&IF(INT(A1*24)=1," ","s ")&MINUTE(A1)
&" minute"&IF(MINUTE(A1)=1,"","s")


--
Biff
Microsoft Excel MVP


"Josh" wrote in message
...
i want to make a cell display text and numbers. i want to take time from
one
cell, say A1 is 227:23 as [h]:mm and make it say in A2 227 hours 23
minutes.
how can i do this?




David Biddulph[_2_]

{h}:mm to display x hours and x minutes
 
=A1 and format as [h]" hours "mm" minutes"
--
David Biddulph

"Josh" wrote in message
...
i want to make a cell display text and numbers. i want to take time from
one
cell, say A1 is 227:23 as [h]:mm and make it say in A2 227 hours 23
minutes.
how can i do this?





All times are GMT +1. The time now is 10:52 PM.

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