Capture In and Out Time from a scrambled excel output

Keerthiv

New Member
Joined
Aug 29, 2019
Messages
14
Hi,
I have an excel file with all the employees in and out punch time in a very jumbled format. Have attached a sample for your easy reference.

In-Out Time.xls
BCDEFGHIJK
2User IDNamePunch Time I/O Type Device/Source DetailLocationPunch ModeEvent StatusSpecial Function
3
4
525/10/2019 - Date of Punch
6AAPRAMOD KUMAR MAJHEE00:03:36 IN
7
8AAPRAMOD KUMAR MAJHEE00:05:39 OUT
9
10BBPRABAKARAN.N00:06:18 IN
11
12BBPRABAKARAN.N00:06:42 IN
13
14CCPRAMOD KUMAR MAJHEE00:38:59 IN
15
16CCPRAMOD KUMAR MAJHEE00:41:04 OUT
17
18CCPRAMOD KUMAR MAJHEE00:56:40 IN
19
20CCPRAMOD KUMAR MAJHEE01:03:18 IN
21
22CCPRAMOD KUMAR MAJHEE01:03:23 OUT
23
24DDSOUMYA RANJAN MOHANTY01:32:01 IN
25
26DDSOUMYA RANJAN MOHANTY01:34:24 OUT
27
28DDSOUMYA RANJAN MOHANTY03:07:00 IN
29
30DDSOUMYA RANJAN MOHANTY03:09:49 OUT
31
32EEPRAMOD KUMAR MAJHEE05:14:21 IN
33
34EEPRAMOD KUMAR MAJHEE05:49:11 OUT
35
Sheet1


There could be multiple punch times for one employee. I would like to have 1st In time and last out time captured for each employee in a different sheet. If out time is not available, the cell value against that particular employee will show blank. The values that need to be capture to another sheet is as below

S.No. Date of Punch Employee Name In Time Out Time Device/Source Detail Location Punch Mode Event Status Special Function
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Is the USER ID unique to each employee , your sample shows
shows the same name for different IDs
Assuming the ID is unique

Setup a table with all the Employee IDs
thne you can use a MAXIFS() and a MINIFS()


Where column I has the list of IDs, this could be in a different sheet
=MAXIFS(D:D,E:E,"out",B:B,I2)
=MINIFS(D:D,E:E,"in",B:B,I2)

0 will return if not found, but an IF maybe used to change that
 
Upvote 0
Is the USER ID unique to each employee , your sample shows
shows the same name for different IDs
Assuming the ID is unique

Setup a table with all the Employee IDs
thne you can use a MAXIFS() and a MINIFS()


Where column I has the list of IDs, this could be in a different sheet
=MAXIFS(D:D,E:E,"out",B:B,I2)
=MINIFS(D:D,E:E,"in",B:B,I2)

0 will return if not found, but an IF maybe used to change that

Thank you.... this can be used if I only need the in and out time. However as mentioned in my post, I would need 1 row per employee with name and In/Out time in a separate sheet (headers below)

S.No. Date of Punch Employee Name In Time Out Time Device/Source Detail Location Punch Mode Event Status
 
Upvote 0
also posted here

As Asked
Is the USER ID unique to each employee , your sample shows
shows the same name for different IDs
 
Upvote 0
answered in your other forum, with a pivot table example , but i don't think that fully solves your issue fully, can you change the layout slightly with the date in a different column or is this a fixed format
 
Upvote 0
@Keerthiv
While we do allow Cross-Posting on this site, we do ask that you please mention you are doing so and provide links in each of the threads pointing to the other thread (see rule 13 here along with the explanation: Forum Rules). This way, other members can see what has already been done in regards to a question, and do not waste time working on a question that may already be answered.
 
Upvote 0
Dear All,

Please be informed that this query is also posted in another forum and here is the link

 
Upvote 0
Thanks for that, but the link is working for me. Admittedly it's a bit slow, so there may be problems with the XlGuru website.
 
Upvote 0

Forum statistics

Threads
1,215,063
Messages
6,122,935
Members
449,094
Latest member
teemeren

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top