Text in time with milliseconds
In column A1, I have 16304238 which represents the hour, minutes, seconds and milliseconds that I want to display in B1 as 4: 30: 42: 380 PM.
I am able to format with hours and minutes, but cannot get seconds and millisecond right. I tried
=TIME(LEFT(E2,2),MID(E2,3,2),RIGHT(E2,2))
Which comes out as 16: 30: 38.000. Also, I am using
[h]:mm:ss.000
to format the result. What should I use instead of [h] to get AM / PM or military time?
+3
source to share