View Single Post
  #7   Report Post  
Posted to microsoft.public.excel.misc
Rick Rothstein \(MVP - VB\)[_110_] Rick Rothstein \(MVP - VB\)[_110_] is offline
external usenet poster
 
Posts: 1
Default how to turn decimal hours into hours and minutes?

I think you can do away with the two string function calls by doing this...

=INT(A1)&" hours "&MINUTE(A1/24)&" minutes"

Rick


"T. Valko" wrote in message
...
"237 hours 50 minutes". if i can get with text, that would be great.


A1 = decimal value = 237.83

=INT(A1)&" hours "&RIGHT(TEXT(A1/24,"h:mm"),2)&" mins"

Returns: 237 hours 49 mins

--
Biff
Microsoft Excel MVP


"Josh" wrote in message
...
i want to display my vacation hours as as hours and minutes. right now
lets
say i have 237.83 displayed. i would like to find a way to display this
as
"237 hours 50 minutes". if i can get with text, that would be great. if
not,
i can work with that as well.