Hi,
I have the array formula which gives the 1st entry with respect to date and emp name
1st Entry = {=1/MAX((D4=Raw!$M$2:$M$21063)*(Raw!$B$2:$B$21063<>0)*(1/Raw!$B$2:$B$21063))} Array
last entry = {=MAX((Raw!$M$2:$M$21063=D4)*(Raw!$B$2:$B$21063))} Array
<tbody>
[TD="colspan: 2"]Jojo Kurien
[/TD]
</tbody>
Above result goes all well with array, but many emp have night shift as show below and array don't work here
[TABLE="width: 0"]
<tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD]Login
[/TD]
[TD]Logout
[/TD]
[TD]Total Login Hrs
[/TD]
[/TR]
[TR]
[TD]Jojo Kurien42933
[/TD]
[TD]2017-07-17
[/TD]
[TD]22:14:07
[/TD]
[TD]23:55:00
[/TD]
[TD] 1:40:53
[/TD]
[/TR]
[TR]
[TD]Jojo Kurien42934
[/TD]
[TD]2017-07-18
[/TD]
[TD]0:02:04
[/TD]
[TD]23:09:24
[/TD]
[TD] 23:07:20
[/TD]
[/TR]
[TR]
[TD]Jojo Kurien42935
[/TD]
[TD]2017-07-19
[/TD]
[TD]1:43:41
[/TD]
[TD]23:55:33
[/TD]
[TD] 22:11:52
[/TD]
[/TR]
[TR]
[TD]Jojo Kurien42936
[/TD]
[TD]2017-07-20
[/TD]
[TD]0:03:23
[/TD]
[TD]22:34:58
[/TD]
[TD]22:31:35
[/TD]
[/TR]
</tbody>[/TABLE]
Here user have logout at 2017 -07-18 08:11:13 now this entry should have captured on logout time for 2017-07-17
then the user will come on 2017-07-18 22:17:10 now this will be login time for 18th and logout time for 18th will be 2017-07-19 8:10:11
Any idea. It should be always 1st entry and last entry.
I have the array formula which gives the 1st entry with respect to date and emp name
1st Entry = {=1/MAX((D4=Raw!$M$2:$M$21063)*(Raw!$B$2:$B$21063<>0)*(1/Raw!$B$2:$B$21063))} Array
last entry = {=MAX((Raw!$M$2:$M$21063=D4)*(Raw!$B$2:$B$21063))} Array
Empname&date | Date | Login | Logout | Total Login Hrs |
Jojo Kurien42917 | 2017-07-01 | 0:00:03 | 8:13:24 | 8:13:21 |
Jojo Kurien42918 | 2017-07-02 | 8:13:38 | 16:24:20 | 8:10:42 |
Jojo Kurien42919 | 2017-07-03 | 13:49:06 | 22:02:27 | 8:13:21 |
Jojo Kurien42920 | 2017-07-04 | 13:59:36 | 22:35:37 | 8:36:01 |
<tbody>
[TD="colspan: 2"]Jojo Kurien
[/TD]
</tbody>
Above result goes all well with array, but many emp have night shift as show below and array don't work here
[TABLE="width: 0"]
<tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD]Login
[/TD]
[TD]Logout
[/TD]
[TD]Total Login Hrs
[/TD]
[/TR]
[TR]
[TD]Jojo Kurien42933
[/TD]
[TD]2017-07-17
[/TD]
[TD]22:14:07
[/TD]
[TD]23:55:00
[/TD]
[TD] 1:40:53
[/TD]
[/TR]
[TR]
[TD]Jojo Kurien42934
[/TD]
[TD]2017-07-18
[/TD]
[TD]0:02:04
[/TD]
[TD]23:09:24
[/TD]
[TD] 23:07:20
[/TD]
[/TR]
[TR]
[TD]Jojo Kurien42935
[/TD]
[TD]2017-07-19
[/TD]
[TD]1:43:41
[/TD]
[TD]23:55:33
[/TD]
[TD] 22:11:52
[/TD]
[/TR]
[TR]
[TD]Jojo Kurien42936
[/TD]
[TD]2017-07-20
[/TD]
[TD]0:03:23
[/TD]
[TD]22:34:58
[/TD]
[TD]22:31:35
[/TD]
[/TR]
</tbody>[/TABLE]
Here user have logout at 2017 -07-18 08:11:13 now this entry should have captured on logout time for 2017-07-17
then the user will come on 2017-07-18 22:17:10 now this will be login time for 18th and logout time for 18th will be 2017-07-19 8:10:11
Any idea. It should be always 1st entry and last entry.