reighzaigne
New Member
- Joined
- Oct 19, 2015
- Messages
- 28
Hi!
Our biometrics had a glitch and I have to manually check the data extracted from the machine. There are multiple logs in a day from different people. I would like to know the formula to get the First In and Last Out per person per day. I initially concatenated the employee number and dates to somewhat create a code. So now I just need to get the first and last logs.
Of if you have other ideas on how to solve it, please let me know.
Here's an example:
[TABLE="class: grid, width: 348"]
<colgroup><col span="2"><col><col><col></colgroup><tbody>[TR]
[TD]Concatenate [/TD]
[TD]EnNo[/TD]
[TD]DateTime[/TD]
[TD]Date[/TD]
[TD]Time[/TD]
[/TR]
[TR]
[TD]643467[/TD]
[TD="align: right"]6[/TD]
[TD="align: right"]02/01/19 8:47[/TD]
[TD="align: right"]02/01/19[/TD]
[TD="align: right"]8:47:07 AM[/TD]
[/TR]
[TR]
[TD]643467[/TD]
[TD="align: right"]6[/TD]
[TD="align: right"]02/01/19 15:42[/TD]
[TD="align: right"]02/01/19[/TD]
[TD="align: right"]3:42:31 PM[/TD]
[/TR]
[TR]
[TD]843468[/TD]
[TD="align: right"]8[/TD]
[TD="align: right"]03/01/19 4:44[/TD]
[TD="align: right"]03/01/19[/TD]
[TD="align: right"]4:44:47 AM[/TD]
[/TR]
[TR]
[TD]843468[/TD]
[TD="align: right"]8[/TD]
[TD="align: right"]03/01/19 4:44[/TD]
[TD="align: right"]03/01/19[/TD]
[TD="align: right"]4:44:47 AM[/TD]
[/TR]
[TR]
[TD]643468[/TD]
[TD="align: right"]6[/TD]
[TD="align: right"]03/01/19 8:59[/TD]
[TD="align: right"]03/01/19[/TD]
[TD="align: right"]8:59:15 AM[/TD]
[/TR]
[TR]
[TD]343468[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]03/01/19 9:29[/TD]
[TD="align: right"]03/01/19[/TD]
[TD="align: right"]9:29:31 AM[/TD]
[/TR]
[TR]
[TD]243468[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]03/01/19 10:42[/TD]
[TD="align: right"]03/01/19[/TD]
[TD="align: right"]10:42:05 AM[/TD]
[/TR]
[TR]
[TD]243468[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]03/01/19 10:42[/TD]
[TD="align: right"]03/01/19[/TD]
[TD="align: right"]10:42:05 AM[/TD]
[/TR]
[TR]
[TD]843468[/TD]
[TD="align: right"]8[/TD]
[TD="align: right"]03/01/19 13:45[/TD]
[TD="align: right"]03/01/19[/TD]
[TD="align: right"]1:45:11 PM[/TD]
[/TR]
[TR]
[TD]643468[/TD]
[TD="align: right"]6[/TD]
[TD="align: right"]03/01/19 17:00[/TD]
[TD="align: right"]03/01/19[/TD]
[TD="align: right"]5:00:30 PM[/TD]
[/TR]
[TR]
[TD]343468[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]03/01/19 17:09[/TD]
[TD="align: right"]03/01/19[/TD]
[TD="align: right"]5:09:43 PM[/TD]
[/TR]
[TR]
[TD]343468[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]03/01/19 17:09[/TD]
[TD="align: right"]03/01/19[/TD]
[TD="align: right"]5:09:43 PM[/TD]
[/TR]
[TR]
[TD]243468[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]03/01/19 19:53[/TD]
[TD="align: right"]03/01/19[/TD]
[TD="align: right"]7:53:31 PM[/TD]
[/TR]
[TR]
[TD]243468[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]03/01/19 19:53[/TD]
[TD="align: right"]03/01/19[/TD]
[TD="align: right"]7:53:31 PM[/TD]
[/TR]
[TR]
[TD]243468[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]03/01/19 21:08[/TD]
[TD="align: right"]03/01/19[/TD]
[TD="align: right"]9:08:53 PM[/TD]
[/TR]
</tbody>[/TABLE]
And then I would like to make it into something like this:
[TABLE="class: grid, width: 330"]
<colgroup><col span="2"><col><col span="2"></colgroup><tbody>[TR]
[TD][/TD]
[TD]DATE[/TD]
[TD]In[/TD]
[TD]Out[/TD]
[TD]Duration[/TD]
[/TR]
[TR]
[TD]243486[/TD]
[TD="align: right"]21/01/19[/TD]
[TD="align: right"]02:10:59 AM[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]243487[/TD]
[TD="align: right"]22/01/19[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]243488[/TD]
[TD="align: right"]23/01/19[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]243489[/TD]
[TD="align: right"]24/01/19[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]243490[/TD]
[TD="align: right"]25/01/19[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
You can check the file here:
https://drive.google.com/open?id=1H2R5QWzsJRNop3RzsulFIajK9bqwXKDq
Thank you!
Our biometrics had a glitch and I have to manually check the data extracted from the machine. There are multiple logs in a day from different people. I would like to know the formula to get the First In and Last Out per person per day. I initially concatenated the employee number and dates to somewhat create a code. So now I just need to get the first and last logs.
Of if you have other ideas on how to solve it, please let me know.
Here's an example:
[TABLE="class: grid, width: 348"]
<colgroup><col span="2"><col><col><col></colgroup><tbody>[TR]
[TD]Concatenate [/TD]
[TD]EnNo[/TD]
[TD]DateTime[/TD]
[TD]Date[/TD]
[TD]Time[/TD]
[/TR]
[TR]
[TD]643467[/TD]
[TD="align: right"]6[/TD]
[TD="align: right"]02/01/19 8:47[/TD]
[TD="align: right"]02/01/19[/TD]
[TD="align: right"]8:47:07 AM[/TD]
[/TR]
[TR]
[TD]643467[/TD]
[TD="align: right"]6[/TD]
[TD="align: right"]02/01/19 15:42[/TD]
[TD="align: right"]02/01/19[/TD]
[TD="align: right"]3:42:31 PM[/TD]
[/TR]
[TR]
[TD]843468[/TD]
[TD="align: right"]8[/TD]
[TD="align: right"]03/01/19 4:44[/TD]
[TD="align: right"]03/01/19[/TD]
[TD="align: right"]4:44:47 AM[/TD]
[/TR]
[TR]
[TD]843468[/TD]
[TD="align: right"]8[/TD]
[TD="align: right"]03/01/19 4:44[/TD]
[TD="align: right"]03/01/19[/TD]
[TD="align: right"]4:44:47 AM[/TD]
[/TR]
[TR]
[TD]643468[/TD]
[TD="align: right"]6[/TD]
[TD="align: right"]03/01/19 8:59[/TD]
[TD="align: right"]03/01/19[/TD]
[TD="align: right"]8:59:15 AM[/TD]
[/TR]
[TR]
[TD]343468[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]03/01/19 9:29[/TD]
[TD="align: right"]03/01/19[/TD]
[TD="align: right"]9:29:31 AM[/TD]
[/TR]
[TR]
[TD]243468[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]03/01/19 10:42[/TD]
[TD="align: right"]03/01/19[/TD]
[TD="align: right"]10:42:05 AM[/TD]
[/TR]
[TR]
[TD]243468[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]03/01/19 10:42[/TD]
[TD="align: right"]03/01/19[/TD]
[TD="align: right"]10:42:05 AM[/TD]
[/TR]
[TR]
[TD]843468[/TD]
[TD="align: right"]8[/TD]
[TD="align: right"]03/01/19 13:45[/TD]
[TD="align: right"]03/01/19[/TD]
[TD="align: right"]1:45:11 PM[/TD]
[/TR]
[TR]
[TD]643468[/TD]
[TD="align: right"]6[/TD]
[TD="align: right"]03/01/19 17:00[/TD]
[TD="align: right"]03/01/19[/TD]
[TD="align: right"]5:00:30 PM[/TD]
[/TR]
[TR]
[TD]343468[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]03/01/19 17:09[/TD]
[TD="align: right"]03/01/19[/TD]
[TD="align: right"]5:09:43 PM[/TD]
[/TR]
[TR]
[TD]343468[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]03/01/19 17:09[/TD]
[TD="align: right"]03/01/19[/TD]
[TD="align: right"]5:09:43 PM[/TD]
[/TR]
[TR]
[TD]243468[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]03/01/19 19:53[/TD]
[TD="align: right"]03/01/19[/TD]
[TD="align: right"]7:53:31 PM[/TD]
[/TR]
[TR]
[TD]243468[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]03/01/19 19:53[/TD]
[TD="align: right"]03/01/19[/TD]
[TD="align: right"]7:53:31 PM[/TD]
[/TR]
[TR]
[TD]243468[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]03/01/19 21:08[/TD]
[TD="align: right"]03/01/19[/TD]
[TD="align: right"]9:08:53 PM[/TD]
[/TR]
</tbody>[/TABLE]
And then I would like to make it into something like this:
[TABLE="class: grid, width: 330"]
<colgroup><col span="2"><col><col span="2"></colgroup><tbody>[TR]
[TD][/TD]
[TD]DATE[/TD]
[TD]In[/TD]
[TD]Out[/TD]
[TD]Duration[/TD]
[/TR]
[TR]
[TD]243486[/TD]
[TD="align: right"]21/01/19[/TD]
[TD="align: right"]02:10:59 AM[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]243487[/TD]
[TD="align: right"]22/01/19[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]243488[/TD]
[TD="align: right"]23/01/19[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]243489[/TD]
[TD="align: right"]24/01/19[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]243490[/TD]
[TD="align: right"]25/01/19[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
You can check the file here:
https://drive.google.com/open?id=1H2R5QWzsJRNop3RzsulFIajK9bqwXKDq
Thank you!