Desu Nota from Columbus
Well-known Member
- Joined
- Mar 17, 2011
- Messages
- 556
I have a column (E) of data that is in seconds. I need a code to put in my macro that converts it into hh:mm:ss.
I can divide the numbers by 86400 (60*60*24) and then format to [h]:mm:ss and they work, but I haven't been able to get a macro to do it.
how should I change this code?
I can divide the numbers by 86400 (60*60*24) and then format to [h]:mm:ss and they work, but I haven't been able to get a macro to do it.
how should I change this code?
Code:
Range("E2:E65534").FormulaR1C1 = "=IF(RC[0]="""","""",RC[0]/86400"
Columns("E:E").NumberFormat = "[h]:mm:ss"