ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Help with time formatting (https://www.excelbanter.com/excel-discussion-misc-queries/213624-help-time-formatting.html)

tom

Help with time formatting
 
I have a cell that totals in hours and minutes
I need to convert that cell automatically to total in minutes
in other words I need 2:40 minutes to show as 160 minutes.
I tried formatting the cell as :mm using custom formating and it didn't work
any suggestions as to how to convert this would be very much appreciated
Tom

JMay

Help with time formatting
 
Try something like:

=IF(HOUR(A1)0,HOUR(A1)*60,0)+ROUNDUP(MINUTE(A1),0 )+1

HTH


"Tom" wrote:

I have a cell that totals in hours and minutes
I need to convert that cell automatically to total in minutes
in other words I need 2:40 minutes to show as 160 minutes.
I tried formatting the cell as :mm using custom formating and it didn't work
any suggestions as to how to convert this would be very much appreciated
Tom


Dave Peterson

Help with time formatting
 
Try a custom number format of:
[mm]

2:40 does mean 2 hours 40 minutes, right?


Tom wrote:

I have a cell that totals in hours and minutes
I need to convert that cell automatically to total in minutes
in other words I need 2:40 minutes to show as 160 minutes.
I tried formatting the cell as :mm using custom formating and it didn't work
any suggestions as to how to convert this would be very much appreciated
Tom


--

Dave Peterson

David Biddulph[_2_]

Help with time formatting
 
=A1*24*60 and format as number or general, not as time.
--
David Biddulph

"Tom" wrote in message
...
I have a cell that totals in hours and minutes
I need to convert that cell automatically to total in minutes
in other words I need 2:40 minutes to show as 160 minutes.
I tried formatting the cell as :mm using custom formating and it didn't
work
any suggestions as to how to convert this would be very much appreciated
Tom





All times are GMT +1. The time now is 02:55 PM.

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