ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   autofill timestamp (https://www.excelbanter.com/excel-discussion-misc-queries/193879-autofill-timestamp.html)

FD

autofill timestamp
 
I have a table with over 4000 records collected with a gps every second, but
the timestamp it gives does not make sense (eg.78419863). I am looking for
some help to calculate the values of a field so that it takes the first
record of the field and adds 1 second to each record after the first time. Is
it possible to have the timestamp read hh:mm:ss

Bernie Deitrick

autofill timestamp
 
FD,

It is - possibly - the number of seconds since midnight of January 1, 2006.

Try using the formula

=DATEVALUE("1/1/2006")+A2/86400

where your timestamp is in cell A2 - format the cell for date and time (or use custom, mmm dd, yyyy
hh:mm:ss) - and see if the timestamps make sense.

If you just want the time part, and not the date, then use

=MOD(A2,86400)/86400

formatted just for time.

The date will be June 26, 2008, and in each case, the time will be 15:17:43.

HTH,
Bernie
MS Excel MVP


"FD" wrote in message
...
I have a table with over 4000 records collected with a gps every second, but
the timestamp it gives does not make sense (eg.78419863). I am looking for
some help to calculate the values of a field so that it takes the first
record of the field and adds 1 second to each record after the first time. Is
it possible to have the timestamp read hh:mm:ss




FD

autofill timestamp
 
Thanks Bernie. That is exactly what I was looking for.

Cheers,

FD

"Bernie Deitrick" wrote:

FD,

It is - possibly - the number of seconds since midnight of January 1, 2006.

Try using the formula

=DATEVALUE("1/1/2006")+A2/86400

where your timestamp is in cell A2 - format the cell for date and time (or use custom, mmm dd, yyyy
hh:mm:ss) - and see if the timestamps make sense.

If you just want the time part, and not the date, then use

=MOD(A2,86400)/86400

formatted just for time.

The date will be June 26, 2008, and in each case, the time will be 15:17:43.

HTH,
Bernie
MS Excel MVP


"FD" wrote in message
...
I have a table with over 4000 records collected with a gps every second, but
the timestamp it gives does not make sense (eg.78419863). I am looking for
some help to calculate the values of a field so that it takes the first
record of the field and adds 1 second to each record after the first time. Is
it possible to have the timestamp read hh:mm:ss





Bernie Deitrick

autofill timestamp
 
Hey! A lucky guess - I'm gonna have to go out and play the lottery tonight ;-)

Bernie
MS Excel MVP


Thanks Bernie. That is exactly what I was looking for.





All times are GMT +1. The time now is 07:14 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com