Dear All,
Hope you all doing good!!
https://www.excelforum.com/excel-for...ml#post5325637
Raising the request in VBA Forum as advised by JeteMC. Jete was able to provide resolution to my problem, however, the challenge was that the formula wasn't working for larger data sets as excel is taking longer time than usual and then excel/system gets stuck and crashes.
I have attached the excel which JeteMC was able to provide solution. It would be grateful, if someone could help in getting VBA Macro to capture First Login Date & Last Login Date with Time along with Total Login Hours Delivered from the given data. (In attached, data from Column A to F is the raw data which i usually update. Data given in the Column G to L is the formula provided by JeteMc.
Example Scenario given below:
Employee "A" for dated 25 April 2020 works in evening shift where he first login from evening around 6:00:00 PM and last logout next day morning around 26 April 2020 3:00:00 AM.
Same Employee "A" first login for next day i.e. 26 April 2020 is in morning Shift around 9:00:00 AM and last logout the same day 26 April 2020 at 6:00:00 PM.
What i need is that First Login at around 25 April 2020 6:00:00 PM evening and last logout next day morning around 26 April 2020 3:00:00 AM should be captured for date 25 April 2020.
And First Login at around 26 April 2020 9:00:00 AM morning Shift and last logout the same day 26 April 2020 at 6:00:00 PM should be captured for date 26 April 2020.
I would be grateful, if you could have a look and help me on the VBA Macro. Above Is an example of one such evening shifts and may vary.
Let me know for any clarifications.
Regards,
Yadavagiri
Bookmarks