Time duration format

R

Ramon

i am useing
Talk =([tt]\86400) & ":" & Format(([tt]\3600) Mod 24,"00") & ":" &
Format(([tt]\60) Mod 60,"00") & ":" & Format([tt] Mod 60,"00")

to convert 16190748 seconds into Time format the result i recieve is
187:09:25:48. I would like to have this time formated as 4,447hrs ##mins
##sec
 
M

Marshall Barton

Ramon said:
i am useing
Talk =([tt]\86400) & ":" & Format(([tt]\3600) Mod 24,"00") & ":" &
Format(([tt]\60) Mod 60,"00") & ":" & Format([tt] Mod 60,"00")

to convert 16190748 seconds into Time format the result i recieve is
187:09:25:48. I would like to have this time formated as 4,447hrs ##mins
##sec


Make up your mind ;-) Your other post wanted a different
result from the same expression. What did you do, copy it
from somewhere without understanding what it does?

This time use something more like:

Talk = Format(tt \ 3600,"#,##0") & " hrs " & Format((tt Mod
3600) \ 60,"00") & " mins " & Format(tt Mod 60,"00") & "
secs"
 
R

Ramon

Thanks Marshall I decided to go with this format and it works perfectly i
really appreciate the help.

Marshall Barton said:
Ramon said:
i am useing
Talk =([tt]\86400) & ":" & Format(([tt]\3600) Mod 24,"00") & ":" &
Format(([tt]\60) Mod 60,"00") & ":" & Format([tt] Mod 60,"00")

to convert 16190748 seconds into Time format the result i recieve is
187:09:25:48. I would like to have this time formated as 4,447hrs ##mins
##sec


Make up your mind ;-) Your other post wanted a different
result from the same expression. What did you do, copy it
from somewhere without understanding what it does?

This time use something more like:

Talk = Format(tt \ 3600,"#,##0") & " hrs " & Format((tt Mod
3600) \ 60,"00") & " mins " & Format(tt Mod 60,"00") & "
secs"
 
M

Marshall Barton

I am happy that you have what you needed.
--
Marsh

Thanks Marshall I decided to go with this format and it works perfectly i
really appreciate the help.

Marshall Barton said:
Ramon said:
i am useing
Talk =([tt]\86400) & ":" & Format(([tt]\3600) Mod 24,"00") & ":" &
Format(([tt]\60) Mod 60,"00") & ":" & Format([tt] Mod 60,"00")

to convert 16190748 seconds into Time format the result i recieve is
187:09:25:48. I would like to have this time formated as 4,447hrs ##mins
##sec


Make up your mind ;-) Your other post wanted a different
result from the same expression. What did you do, copy it
from somewhere without understanding what it does?

This time use something more like:

Talk = Format(tt \ 3600,"#,##0") & " hrs " & Format((tt Mod
3600) \ 60,"00") & " mins " & Format(tt Mod 60,"00") & "
secs"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Converting Seconds into Time Format 3
Converting Seconds to Hours, Minutes, Seconds 3
Seconds as DD:HH:MM:SS 2
Subtracting time...again 2
Time/Date 3
Time calculation 1
Elapsed Time Assistance 3
use range object 5

Top