ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Need excel formula to display 28.50hrs in HRS & MINS? (https://www.excelbanter.com/excel-worksheet-functions/8681-need-excel-formula-display-28-50hrs-hrs-mins.html)

rbc

Need excel formula to display 28.50hrs in HRS & MINS?
 
I am trying to calculate distance, speed and time to cover the distance in
Excel spreadsheet.
I am using distance/speed to display the time in hours & decimals of an
hour, e.g. 28.50hrs [which is 28 hrs 30mins]; but can't come up with a
consistent formula to display the time in hours and mins. =TEXT (F2/24 etc.)
does not work once the number of hours is more than 24hrs. Can anyone
suggest a formula please?
--
Regards
rbc

Ron Rosenfeld

On Wed, 5 Jan 2005 05:01:02 -0800, rbc wrote:

I am trying to calculate distance, speed and time to cover the distance in
Excel spreadsheet.
I am using distance/speed to display the time in hours & decimals of an
hour, e.g. 28.50hrs [which is 28 hrs 30mins]; but can't come up with a
consistent formula to display the time in hours and mins. =TEXT (F2/24 etc.)
does not work once the number of hours is more than 24hrs. Can anyone
suggest a formula please?


=TEXT(F2/24,"[h]:mm")

The brackets around the 'h' allow it to display more than 24 hours.


--ron

Bernie Deitrick

rbc,

=TEXT(F2/24,"[h]:mm")

or, more simply:

=F2/24

then format for custom [h]:mm

HTH,
Bernie
MS Excel MVP

"rbc" wrote in message
...
I am trying to calculate distance, speed and time to cover the distance in
Excel spreadsheet.
I am using distance/speed to display the time in hours & decimals of an
hour, e.g. 28.50hrs [which is 28 hrs 30mins]; but can't come up with a
consistent formula to display the time in hours and mins. =TEXT (F2/24

etc.)
does not work once the number of hours is more than 24hrs. Can anyone
suggest a formula please?
--
Regards
rbc




rbc

Thanks Ron, much appreciated.


"Ron Rosenfeld" wrote:

On Wed, 5 Jan 2005 05:01:02 -0800, rbc wrote:

I am trying to calculate distance, speed and time to cover the distance in
Excel spreadsheet.
I am using distance/speed to display the time in hours & decimals of an
hour, e.g. 28.50hrs [which is 28 hrs 30mins]; but can't come up with a
consistent formula to display the time in hours and mins. =TEXT (F2/24 etc.)
does not work once the number of hours is more than 24hrs. Can anyone
suggest a formula please?


=TEXT(F2/24,"[h]:mm")

The brackets around the 'h' allow it to display more than 24 hours.


--ron


rbc

Thanks Bernie, worked fine.

"Bernie Deitrick" wrote:

rbc,

=TEXT(F2/24,"[h]:mm")

or, more simply:

=F2/24

then format for custom [h]:mm

HTH,
Bernie
MS Excel MVP

"rbc" wrote in message
...
I am trying to calculate distance, speed and time to cover the distance in
Excel spreadsheet.
I am using distance/speed to display the time in hours & decimals of an
hour, e.g. 28.50hrs [which is 28 hrs 30mins]; but can't come up with a
consistent formula to display the time in hours and mins. =TEXT (F2/24

etc.)
does not work once the number of hours is more than 24hrs. Can anyone
suggest a formula please?
--
Regards
rbc






All times are GMT +1. The time now is 01:41 PM.

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