Converting time stamps in excel to dates

后端 未结 13 1051
长情又很酷
长情又很酷 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:27
    =(((A1/60)/60)/24)+DATE(1970,1,1)+(-5/24)
    

    assuming A1 is the cell where your time stamp is located and dont forget to adjust to account for the time zone you are in (5 assuming you are on EST)

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

    If your file is really big try to use following formula: =A1 / 86400 + 25569

    A1 should be replaced to what your need. Should work faster than =(((COLUMN_ID_HERE/60)/60)/24)+DATE(1970,1,1) cause of less number of calculations needed.

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

    If you get a Error 509 in Libre office you may replace , by ; in the DATE() function

    =(((COLUMN_ID_HERE/60)/60)/24)+DATE(1970;1;1)
    
    0 讨论(0)
  • 2020-12-23 13:31

    below formula worked form me in MS EXEL

    =TEXT(CELL_VALUE/24/60/60/1000 + 25569,"YYYY-MM-DD HH:MM")
    

    CELL_VALUE is timestamp in milliseconds

    here is explanation for text function.

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

    Use this formula and set formatting to the desired time format:

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

    Source: http://www.bajb.net/2010/05/excel-timestamp-to-date/ Tested in libreoffice

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

    This DATE-thing won't work in all Excel-versions.

    =CELL_ID/(60 * 60 * 24) + "1/1/1970"
    

    is a save bet instead.
    The quotes are necessary to prevent Excel from calculating the term.

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