Please help me in finding the finding first check in and last check out in excel for an employee.
File attached: AttendanceSheet.xlsx
Regards,
Microsoft ExcelMicrosoft Office
Last Comment
Rob Henson
8/22/2022 - Mon
Flyster
Here's one option. Create a unique list of employees and then use this array formula for the first entry:
=MIN(IF(B:B=J3,D:D))
To enter an array formula use Crtl+Shift+Enter. Change MIN to MAX for the last entry. Please refer to the attached, columns J:L. I used conditional formatting to blank out the two employees who had only one time entry.
When you say "an employee" did you mean all employees? For instance if you are looking for "an" employee are you looking for the who was there the longest, or... ?
Martin Liss
Click the button in the attached workbook in which I added some new data for John. 29168201.xlsm
@Rob,
Pivot table is working for me. How do we get the time difference between check out and check in time of the employee in from of Pivot table.
@Flyster,
Many thanks for your solution. This is also good for me. In anyway, we can get the unique names and then apply your filters on it. I don't mind if we have to use VLOOKup
@Martin,
Many thanks to you as well. Its bit complex solution and also the excel is just highlighting the values. This needs lots of manual intervention to find details for all employees.
@All,
Thanks for your response. I want to find total in time of the employee in office, so I was looking for check in ad=nd check out time.
Please help me with the issues I commented. I don't mind if you need to use any other thing as well to identify the details like using VLookup, Pivot tables etc.
Many thanks again.
Rob Henson
You can get duration with a calculated item in the pivot, see attached. AttendanceSheet.xlsx
=MIN(IF(B:B=J3,D:D))
To enter an array formula use Crtl+Shift+Enter. Change MIN to MAX for the last entry. Please refer to the attached, columns J:L. I used conditional formatting to blank out the two employees who had only one time entry.
Paul