![](/img/trans.png)
[英]How to get earliest date and latest date from a Date Column which has values in the format “01/01/2019 09:01:00 AM”?
[英]How to subtract two date columns(format: 2019-01-31 23:45:45+01:00) in Excel and display in hours?
假设我有两列:
Creation Date Delivery date hours
2019-01-31 23:45:45+01:00 2019-02-01 15:18:21+01:00 ?
任何人都可以帮我做这件事吗?
他们是其他方式,但这有效:
=((DATE(LEFT(C3,4),MID(C3,6,2),MID(C3,9,2))-DATE(LEFT(B3,4),MID(B3,6,2),MID(B3,9,2)))-1)+((1-(TIME(MID(B3,12,2),MID(B3,15,2),MID(B3,18,2))))+TIME(MID(C3,12,2),MID(C3,15,2),MID(C3,18,2)))*24
如果是文本,c3 是交付,b3 是创建。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.