Convert to hours, minutes and seconds

jkitterm

New Member
Joined
Nov 2, 2017
Messages
12
I have a spreadsheet with the time someone has been in an application expressed as 128:23:44 or 128 hours, 23 minutes and 44 seconds
Unfortunately Excel is reading it as a date and time 1/5/1900 8:23:44 AM
I can't seem to find the right format so Excel understands it is 128 hours, 23 minutes and 44 seconds and not a date and time.
Can someone help me with this?
Ultimately I would like to be able to accurately separate out the hours, minutes and second in separate columns which I can currently do but only if the total time is less than 24 hours. (=HOUR(A1)
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
To format the cell like that use [h]:mm:ss
 
Upvote 0
To get the total number of hours you could use
Excel Formula:
=HOUR(A1)+INT(A1)*24
 
Upvote 0
Solution
In that case you did not use the cell format I suggested. ;)
 
Upvote 0
=HOUR(A1)+INT(A1)*24
This produces an error
In that case you did not use the cell format I suggested. ;)
I did.

Perhaps this will help explain further
Copy of time conversion example.xlsx
ABCDEFG
1Time in ApplicationConverted timeLogged on time hoursLogged on time minutesLogged on time secondsLogged on time total secondsLogged on time seconds
2128:23:448:23:448234430224462224
318:12:5018:12:501812506557065570
4
5Row 2 above should be
6Time in ApplicationConverted timeLogged on time hoursLogged on time minutesLogged on time secondsLogged on time total secondsLogged on time seconds
7128:23:44128:23:441282344462224462224
8128:23:44#VALUE!
Sheet1
Cell Formulas
RangeFormula
B2:B3B2=A2
C2:C3C2=HOUR(B2)
D7,D2:D3D2=MINUTE(B2)
E7,E2:E3E2=SECOND(B2)
F7,F2:F3F2=SUM(((C2*60)*60)+(D2*60))+E2
G7,G2:G3G2=SUM(A2*86400)
B8B8=HOUR(A1)+INT(A1)*24
 
Upvote 0
You need to change the A1 in the formula to point to the cell with the date/time.
 
Upvote 0
Hi,

May be this to make a bit more clear for you, cleaned up some of your formulas.
I don't understand the need for Column B, since it's just =A

Book3.xlsx
ABCDEFG
1Time in ApplicationConverted timeLogged on time hoursLogged on time minutesLogged on time secondsLogged on time total secondsLogged on time seconds
2128:23:44128:23:441282344462224462224
318:12:5018:12:501812506557065570
4^formatted [h]:mm:ss^formatted General^formatted General^formatted General^formatted General^formatted General
Sheet1055
Cell Formulas
RangeFormula
B2:B3B2=A2
C2:C3C2=HOUR(A2)+INT(A2)*24
D2:D3D2=MINUTE(A2)
E2:E3E2=SECOND(A2)
F2:F3F2=SUM(C2*3600,D2*60,E2)
G2:G3G2=A2*86400
 
Upvote 0
N.B. C7 is custom formatted [h]

For this example A8 = A7

Time.xlsm
ABCDEFG
6Time in ApplicationConverted timeLogged on time hoursLogged on time minutesLogged on time secondsLogged on time total secondsLogged on time seconds
7128:23:441282344
8128:23:441282344462224
9
6b
Cell Formulas
RangeFormula
C7C7=A7
D7:D8D7=MINUTE(A7)
E7:E8E7=SECOND(A7)
C8C8=INT(A8)*24+HOUR(A8-INT(A8))
A8A8=A7
G8G8=C8*60*60+D8*60+E8
 
Upvote 0
Hi,

May be this to make a bit more clear for you, cleaned up some of your formulas.
I don't understand the need for Column B, since it's just =A

Book3.xlsx
ABCDEFG
1Time in ApplicationConverted timeLogged on time hoursLogged on time minutesLogged on time secondsLogged on time total secondsLogged on time seconds
2128:23:44128:23:441282344462224462224
318:12:5018:12:501812506557065570
4^formatted [h]:mm:ss^formatted General^formatted General^formatted General^formatted General^formatted General
Sheet1055
Cell Formulas
RangeFormula
B2:B3B2=A2
C2:C3C2=HOUR(A2)+INT(A2)*24
D2:D3D2=MINUTE(A2)
E2:E3E2=SECOND(A2)
F2:F3F2=SUM(C2*3600,D2*60,E2)
G2:G3G2=A2*86400
Thank You! Makes sense now....
 
Upvote 0

Forum statistics

Threads
1,214,945
Messages
6,122,393
Members
449,081
Latest member
JAMES KECULAH

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top