ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   how to change the h:mm format to number? (https://www.excelbanter.com/excel-worksheet-functions/8966-how-change-h-mm-format-number.html)

Bel

how to change the h:mm format to number?
 
When calculating hourly pay, I need to change the format of h:mm to number,
then time hourly rate. For example: 8 hrs & 25 mins. I need to turn 25min
into 0.42hrs.
8.42 hrs*10= $84.20


Aladin Akyurek

Supposing that A1 houses a true time value like 8:25 (formatted as
[h]:mm)...

=A1*24*HourlyRate

Bel wrote:
When calculating hourly pay, I need to change the format of h:mm to number,
then time hourly rate. For example: 8 hrs & 25 mins. I need to turn 25min
into 0.42hrs.
8.42 hrs*10= $84.20


Niek Otten

=A1*24, format as number, not time.

--

Kind Regards,

Niek Otten

Microsoft MVP - Excel

"Bel" wrote in message
...
When calculating hourly pay, I need to change the format of h:mm to
number,
then time hourly rate. For example: 8 hrs & 25 mins. I need to turn 25min
into 0.42hrs.
8.42 hrs*10= $84.20





All times are GMT +1. The time now is 03:51 PM.

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