Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Converting Seconds to HH:MM:SS

Status
Not open for further replies.

Neenas19

Technical User
Apr 10, 2002
22
US
Hello ,
I currently have the amount of time in SECONDS and am looking for a way to convert it to HH:MM:SS. Either Excel or Access would work. Any ideas?

 
Hi - try this
if time in seconds is in A1 then
=INT(A1/3600)&":"&INT((A1-(INT(A1/3600)*3600))/60)&":"&A1-((INT(A1/3600)*3600)+(INT((A1-(INT(A1/3600)*3600))/60)*60))
will give you hours mins and secs
HTH
Geoff
 
An easier formula is this ....

=TEXT(A1/(24*60*60),"[H]:MM:SS")

again assuming the time in seconds is in cell A1.

Glenn.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top