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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel Macros

Status
Not open for further replies.

jzim9

Programmer
Joined
Sep 1, 2015
Messages
2
Location
US
Would you know how to convert seconds into hours, minutes and seconds using an Excel macro?
 
Divide the number of seconds by 86400 (the number of seconds in a day);
Format the result as a time.
 
Hi,

Excel Date/Time values are used and stored as days. Hence TTT's suggestion to convert seconds to days. Then FORMAT the result as HH:MM:SS.

Skip,

[glasses]Just traded in my OLD subtlety...
for a NUance![tongue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top