Link to home
Start Free TrialLog in
Avatar of zimmer9
zimmer9Flag for United States of America

asked on

Do you know how to compute seconds into hours, minutes and seconds via an Excel macro?

Do you know how to compute seconds into hours, minutes and seconds via an Excel macro?

I tried the following but got a syntax error?

Private Sub CommandButton1_Click()
=TIME(INT(A2/3600),INT(MOD(A2,3600)/60),MOD(MOD(A2,3600),60))
End Sub
ASKER CERTIFIED SOLUTION
Avatar of Ejgil Hedegaard
Ejgil Hedegaard
Flag of Denmark image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial