ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Convert Hours to Decimal (https://www.excelbanter.com/excel-worksheet-functions/64145-convert-hours-decimal.html)

dminkov

Convert Hours to Decimal
 

Hi everybody!

I have in a cell 40:23:04, which is number of hours and equals to 40.38
hours or to 2423.07 minutes. To convert the first value, I wrote the
following formula: =HOUR(A1567)+MINUTE(A1567)/60+SECOND(A1567)/3600.
I dont think this formula is appropriate, moreover it doesn't work
properly for values greater than 24h.
My final goal is to convert 40:23:04 hours to 2423.07 minutes
So, which function should I use and how to solve the problem?

Thank you in advance.


--
dminkov
------------------------------------------------------------------------
dminkov's Profile: http://www.excelforum.com/member.php...o&userid=17757
View this thread: http://www.excelforum.com/showthread...hreadid=499663


Pete

Convert Hours to Decimal
 
Just multiply your value by 24 and by 60, as follows:

= A1 * 24 * 60

if your value is in cell A1.

Format as number with 2 decimal places.

Pete


Stefi

Convert Hours to Decimal
 
Assume your cell is A1, try this formula in A2:

=ROUND(A1*1440,2)

N.B. 1440=24*60

Regards,
Stefi

dminkov ezt *rta:


Hi everybody!

I have in a cell 40:23:04, which is number of hours and equals to 40.38
hours or to 2423.07 minutes. To convert the first value, I wrote the
following formula: =HOUR(A1567)+MINUTE(A1567)/60+SECOND(A1567)/3600.
I dont think this formula is appropriate, moreover it doesn't work
properly for values greater than 24h.
My final goal is to convert 40:23:04 hours to 2423.07 minutes
So, which function should I use and how to solve the problem?

Thank you in advance.


--
dminkov
------------------------------------------------------------------------
dminkov's Profile: http://www.excelforum.com/member.php...o&userid=17757
View this thread: http://www.excelforum.com/showthread...hreadid=499663




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

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