Excel 2010:查找两个日期时间之间的秒数 [英] Excel 2010 : Find seconds between two date time

查看:118
本文介绍了Excel 2010:查找两个日期时间之间的秒数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个列 Cal Date time ,其中包含如下所示的通话日期和时间。

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

A       B                           C           D
-----------------------------------------------------------------------------
Number  Call Date Time                          Duration(in Sec)
123     2010-01-10-01.07.24.465000                  ?
123     2010-01-10-01.07.24.783000      
234     2010-01-12-01.09.45.186000                  ?
234     2010-01-12-01.11.40.186000      
896     2010-01-13-10.10.35.186000                  ?
896     2010-01-13-11.10.45.186000      

注意:我想计算每秒数中 D 列中的呼叫持续时间。

Note: I want to calculate the duration of call in the column D of the each number in the seconds.

推荐答案

好的,你需要像这样自定义格式化单元格:

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))

其中B3是您的文本数据。

Where B3 is your text data.

您可以在此之后简单减去

you can do a simple subtract after that

这篇关于Excel 2010:查找两个日期时间之间的秒数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆