简体   繁体   English

如何在Excel中计算这两次之间的差异

[英]how to calculate difference between these two times in excel

2016-10-31T15:26:39.569Z AND 2016-10-31T03:00:00.462Z 2016-10-31T15:26:39.569Z2016-10-31T03:00:00.462Z

I am not able to find any functions for this calculations as these times are in UTC format. 由于这些时间均为UTC格式,因此无法找到用于此计算的任何函数。 Is there any formula to convert them to normal time? 是否有任何公式可以将其转换为正常时间?

Since you mentioned only formulas not VBA - there has been a solution for this but it doesn't factor in the timezones which may be problematic for you. 由于您只提到了公式而不是VBA,因此已经有解决方案,但是没有考虑可能对您造成问题的时区。

=DATEVALUE(MID(A1,1,10))+TIMEVALUE(MID(A1,12,8))

If the timezones don't matter then this should help, if they do then there are VBA solutions further down on the link you could explore. 如果时区无关紧要,那么这会有所帮助;如果时区确实如此,那么在您可以探索的链接上还有VBA解决方案。

Parsing an ISO8601 date/time (including TimeZone) in Excel 在Excel中解析ISO8601日期/时间(包括TimeZone)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM