Converting time stamps in excel to dates

后端 未结 13 1050
长情又很酷
长情又很酷 2020-12-23 12:38

I have a very large excel spread sheet that has a column of time stamps. Does anyone know convert that over to a date? Is there a function I can use? I tried format cell dat

相关标签:
13条回答
  • 2020-12-23 13:07

    Be aware of number of digits in epoch time. Usually they are ten (1534936923) ,then use:

    =(A1 / 86400) + 25569    
    

    For thirteen digits (1534936923000) of epoch time adjust the formula:

    =(LEFT(A1,LEN(A1)-3) / 86400) + 25569    
    

    to avoid

    ###################################
    

    Dates or times that are negative or too large display as ######

    See more on https://www.epochconverter.com/

    0 讨论(0)
  • 2020-12-23 13:14

    AD ticks to datetime format: =A1/864000000000 - 109205

    0 讨论(0)
  • 2020-12-23 13:20

    i got result from this in LibreOffice Calc :

    =DATE(1970,1,1)+Column_id_here/60/60/24

    0 讨论(0)
  • 2020-12-23 13:20

    This worked for me:

    =(col_name]/60/60/24)+(col_name-1)
    
    0 讨论(0)
  • 2020-12-23 13:22

    Use this simple formula. It works.

    Suppose time stamp in A2:

    =DATE(YEAR(A2),MONTH(A2),DAY(A2))
    
    0 讨论(0)
  • 2020-12-23 13:26

    A timestamp is the elapsed time since Epoch time (01/01/1970), so basically we have to convert this time in days, and add the epoch time, to get a valid format for any Excel like spreadsheet software.

    • From a timestamp in milliseconds (ex: 1488380243994)

      use this formula:

      =A1/1000/86400+25569
      

      with this formater:

      yyyy-mm-dd hh:mm:ss.000
      
    • From a timestamp in seconds (ex: 1488380243)

      use this formula:

      =A1/86400+25569
      

      with this formater:

      yyyy-mm-dd hh:mm:ss
      

    Where A1 is your column identifier. Given custom formaters allow to not loose precision in displayed data, but you can of course use any other date/time one that corresponds to your needs.

    0 讨论(0)
提交回复
热议问题