Excel 2010 : Find seconds between two date time

前端 未结 1 938
旧巷少年郎
旧巷少年郎 2021-01-29 10:12

I have a column Cal Date time, which contains the date and time of the call as shown below.

A       B                           C           D
------         


        
相关标签:
1条回答
  • 2021-01-29 10:31

    Alright, you need to format a cell as custom like this:

    Then use this formula in it

    =DATEVALUE(RIGHT(LEFT(B3,10),2)&"/"&RIGHT(LEFT(B3,7),2)&"/"&LEFT(B3,4))+TIMEVALUE(RIGHT(LEFT(B3,13),2)&":"&RIGHT(LEFT(B3,16),2)&":"&RIGHT(B3,9))
    

    Where B3 is your text data.

    you can do a simple subtract after that

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