ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   How do I convert hh:mm:ss to an absolute number (26:01:32 to 26)? (https://www.excelbanter.com/excel-discussion-misc-queries/58200-how-do-i-convert-hh-mm-ss-absolute-number-26-01-32-26-a.html)

Fernando

How do I convert hh:mm:ss to an absolute number (26:01:32 to 26)?
 
I am attempting to calculate a duration by subtracting the end date and time
from the beginning date and time, and would like a absolute number returned.

For example: Start=10/25/2005 10:30 End=10/26/2005 12:30 which results in
26:00:00 in time format or 1.08 in number format. I need just 26. Does anyone
have a way to convert either result to an absolute value of 26?

Thanks for the help.


[email protected]

How do I convert hh:mm:ss to an absolute number (26:01:32 to 26)?
 
I do it with a cell format. In the custom format I use:
[h];@ It trims it down to just the hour.



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

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