精益求精。只需要根据当日数据自动计算缺勤人数

时间:2018-10-27 08:27:48

标签: excel time formula time-and-attendance

我有一张考勤表,只显示没有。员工的出勤天数。TASystem无法自动安排和标记缺勤者。所以我需要计算不。所有员工的缺席人数。在Excel中使用公式有什么解决方案吗?还是可以指导我如何以最少的工作量从“当今”数据中获取缺席?参见下面的考勤数据格式。它是6名员工和6名员工的样本。全天候工作人员每周工作5天,而轮班员工则在不同的日子里轮班工作。

+-------+----------+----------+------------------+------------------+---------------+--------------+---------------+-------------------+------------+
| Name  | Badge ID | SYSTEMID | Check In         | Check Out        | Time Duration | Access       | Shift Type    | Shift Description | Date       |
+-------+----------+----------+------------------+------------------+---------------+--------------+---------------+-------------------+------------+
| EMP A | 0-1005   | 10000095 | 06/10/2018 9:32  | 06/10/2018 16:28 | 6:56:11       | Valid access | General Shift | Day Staff         | 06/10/2018 |
+-------+----------+----------+------------------+------------------+---------------+--------------+---------------+-------------------+------------+
| EMP A | 0-1005   | 10000095 | 04/10/2018 8:39  | 04/10/2018 15:49 | 7:10:16       | Valid access | General Shift | Day Staff         | 04/10/2018 |
+-------+----------+----------+------------------+------------------+---------------+--------------+---------------+-------------------+------------+
| EMP A | 0-1005   | 10000095 | 03/10/2018 8:01  | 03/10/2018 18:30 | 10:28:10      | Valid access | General Shift | Day Staff         | 03/10/2018 |
+-------+----------+----------+------------------+------------------+---------------+--------------+---------------+-------------------+------------+
| EMP A | 0-1005   | 10000095 | 02/10/2018 7:03  | 02/10/2018 17:41 | 10:38:26      | Valid access | General Shift | Day Staff         | 02/10/2018 |
+-------+----------+----------+------------------+------------------+---------------+--------------+---------------+-------------------+------------+
| EMP A | 0-1005   | 10000095 | 01/10/2018 7:49  | 01/10/2018 17:58 | 10:09:01      | Valid access | General Shift | Day Staff         | 01/10/2018 |
+-------+----------+----------+------------------+------------------+---------------+--------------+---------------+-------------------+------------+
| EMP B | 0-1020   | 10000040 | 04/10/2018 9:03  | 04/10/2018 17:20 | 8:17:44       | Valid access | General Shift | Day Staff         | 04/10/2018 |
+-------+----------+----------+------------------+------------------+---------------+--------------+---------------+-------------------+------------+
| EMP B | 0-1020   | 10000040 | 03/10/2018 17:51 | 03/10/2018 17:51 | 0:00:00       | Valid access | General Shift | Day Staff         | 03/10/2018 |
+-------+----------+----------+------------------+------------------+---------------+--------------+---------------+-------------------+------------+
| EMP B | 0-1020   | 10000040 | 02/10/2018 9:47  | 02/10/2018 17:54 | 8:07:29       | Valid access | General Shift | Day Staff         | 02/10/2018 |
+-------+----------+----------+------------------+------------------+---------------+--------------+---------------+-------------------+------------+
| EMP B | 0-1020   | 10000040 | 01/10/2018 8:38  | 01/10/2018 17:00 | 8:21:03       | Valid access | General Shift | Day Staff         | 01/10/2018 |
+-------+----------+----------+------------------+------------------+---------------+--------------+---------------+-------------------+------------+
| EMP C | 0-1039   | 10000031 | 04/10/2018 7:33  | 04/10/2018 16:03 | 8:29:24       | Valid access | Shift A       | Shift Employee    | 04/10/2018 |
+-------+----------+----------+------------------+------------------+---------------+--------------+---------------+-------------------+------------+
| EMP C | 0-1039   | 10000031 | 03/10/2018 7:33  | 03/10/2018 17:39 | 10:06:02      | Valid access | Shift A       | Shift Employee    | 03/10/2018 |
+-------+----------+----------+------------------+------------------+---------------+--------------+---------------+-------------------+------------+
| EMP C | 0-1039   | 10000031 | 02/10/2018 7:28  | 02/10/2018 17:14 | 9:45:52       | Valid access | Shift A       | Shift Employee    | 02/10/2018 |
+-------+----------+----------+------------------+------------------+---------------+--------------+---------------+-------------------+------------+
| EMP C | 0-1039   | 10000031 | 01/10/2018 7:35  | 01/10/2018 15:41 | 8:06:10       | Valid access | Shift A       | Shift Employee    | 01/10/2018 |
+-------+----------+----------+------------------+------------------+---------------+--------------+---------------+-------------------+------------+
| EMP D | 0-1063   | 10000120 | 03/10/2018 6:23  | 03/10/2018 18:14 | 11:50:53      | Valid access | Shift A       | Shift Employee    | 03/10/2018 |
+-------+----------+----------+------------------+------------------+---------------+--------------+---------------+-------------------+------------+
| EMP D | 0-1063   | 10000120 | 02/10/2018 6:24  | 02/10/2018 17:47 | 11:22:49      | Valid access | Shift A       | Shift Employee    | 02/10/2018 |
+-------+----------+----------+------------------+------------------+---------------+--------------+---------------+-------------------+------------+
| EMP D | 0-1063   | 10000120 | 01/10/2018 6:57  | 01/10/2018 17:48 | 10:50:45      | Valid access | Shift A       | Shift Employee    | 01/10/2018 |
+-------+----------+----------+------------------+------------------+---------------+--------------+---------------+-------------------+------------+
| EMP E | 0-1038   | 10000047 | 03/10/2018 18:05 | 04/10/2018 5:52  | 11:47:02      | Valid access | Shift A       | Shift Employee    | 03/10/2018 |
+-------+----------+----------+------------------+------------------+---------------+--------------+---------------+-------------------+------------+
| EMP E | 0-1038   | 10000047 | 02/10/2018 18:05 | 03/10/2018 6:15  | 12:09:59      | Valid access | Shift A       | Shift Employee    | 02/10/2018 |
+-------+----------+----------+------------------+------------------+---------------+--------------+---------------+-------------------+------------+
| EMP E | 0-1038   | 10000047 | 01/10/2018 18:07 | 02/10/2018 5:47  | 11:39:55      | Valid access | Shift A       | Shift Employee    | 01/10/2018 |
+-------+----------+----------+------------------+------------------+---------------+--------------+---------------+-------------------+------------+
| EMP F | 0-1078   | 10000097 | 04/10/2018 6:12  | 04/10/2018 17:49 | 11:37:04      | Valid access | Shift A       | Shift Employee    | 04/10/2018 |
+-------+----------+----------+------------------+------------------+---------------+--------------+---------------+-------------------+------------+
| EMP F | 0-1078   | 10000097 | 03/10/2018 6:17  | 03/10/2018 18:13 | 11:56:52      | Valid access | Shift A       | Shift Employee    | 03/10/2018 |
+-------+----------+----------+------------------+------------------+---------------+--------------+---------------+-------------------+------------+
| EMP F | 0-1078   | 10000097 | 02/10/2018 6:18  | 02/10/2018 17:47 | 11:28:54      | Valid access | Shift A       | Shift Employee    | 02/10/2018 |
+-------+----------+----------+------------------+------------------+---------------+--------------+---------------+-------------------+------------+
| EMP F | 0-1078   | 10000097 | 01/10/2018 7:54  | 01/10/2018 18:18 | 10:23:27      | Valid access | Shift A       | Shift Employee    | 01/10/2018 |
+-------+----------+----------+------------------+------------------+---------------+--------------+---------------+-------------------+------------+

1 个答案:

答案 0 :(得分:0)

Dan已经评论了该解决方案。我只是在这里用示例图片来说明。

请使用特定月份或所需期间的日期,您希望在该日期或所需期间找到以行和员工姓名或BadgeID(出于唯一性)绘制的行中存在/不存在的数据-在这里,我使用了员工姓名,因为它是唯一的。

在“日期”列(数据中的最后一列)和“员工姓名”列之间使用MATCH公式。如果返回的值是数字,则员工为“当前”,否则为“缺席”。

Excel片段:

excel_TA_absentees_png

希望这会有所帮助!