如何获得Excel中2个日期时间戳之间的小时和分钟差异? [英] How to get the hour and minutes difference between 2 datetimestamp in Excel?
本文介绍了如何获得Excel中2个日期时间戳之间的小时和分钟差异?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
假设我有 2 个时间戳日期:
Suppose I have 2 timestamp dates:
- 2010/2/24 上午 1:05:15
- 2010/2/25 上午 4:05:17
谁能告诉我应该在 Excel 中使用什么函数来获得小时和分钟的差异?
Can anyone please advise what function should I use in Excel to get the difference in hours and minutes?
谢谢.
推荐答案
小时差异:
=(A2-A1)*24
分钟差异:
=(A2-A1)*24*60
小时和分钟的区别:
=TRUNC((A2-A1)*24) - the hours portion
=MOD((A2-A1)*24*60,60) - the minutes portion
这篇关于如何获得Excel中2个日期时间戳之间的小时和分钟差异?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文