Excel计算出拳总时间

时间:2019-01-18 10:44:02

标签: excel excel-formula

我想从包含日期/时间同一行的同一列中计算总时间。

使用数据透视表或将日期和时间分成diff列。我有如下表。

enter image description here

第一个拳在8:48,最后一个拳在19:53。我想获取每天两次打卡之间的总时数。

任何想法如何做到这一点?

1 个答案:

答案 0 :(得分:0)

为此使用SELECT COUNT(DISTINCT q.product_id) - COUNT(DISTINCT p.product_id) AS non_existent_products FROM (SELECT product_id FROM products2) q LEFT JOIN products p ON p.product_id = q.product_id 工作表功能:

例如

select count(A.product_id) from (select distinct product_id from product where product_id not in (1,2)) AS A;
相关问题