Tracking Login/Logout Times for users' multiple login/logouts on the multiple days.

ZThaButcher

New Member
Joined
Nov 1, 2022
Messages
4
Office Version
  1. 365
Platform
  1. Windows
Hello everyone!

I am in the process of figuring out how to make this work. I need to be able to track my beginning and ending Login/Logout times for my end-users.
I need to track end-users login and log-out times. The issue is they can log in and out multiple times a day.
Ideally, I would like to be able to take the below and automate it to just put it in and take the first login and last logout of each day of the week and compile it.
If I could paste multiple users which all would follow the same format altogether and separate per name and day of the week.
I don't know much about VBA yet but I am learning and this one is going over my head.
The format is below.
Quotation Marks are Blanks.

Agent NameEvent NameDateTimeDurationReasonCodeReason Text
ButcherLogin11/1/2022 8:00:00 AM00:00:00""""
""Logout11/1/2022 9:05:00 AM001:05:001Logout
""Login11/1/2022 9:06:00 AM01:00:00
""
""Logout11/1/2022 10:06:00 AM01:00:005Undefined
ZLogin11/1/2022 08:00:00 AM00:00:00""Login
""Logout11/1/2022 12:00:004:00:00
""
Logout
""""
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
So I have Tried the following Code Below and it does not seem to want to work with the DateTime being together and I don't want to have to separate it each time if possible. I want to be able and copy and pasta this in and get the data I'm looking for per agent.

=MAX(IF(ISNUMBER(SEARCH(M1,$C$2:$C$199)),$C$2:$C$199,))
=MIN(IF(ISNUMBER(SEARCH(M1,$C$2:$C$199)),$C$2:$C$199,))
M1 Referring to the date above.
I was only trying to get this to work for one person at a time but I have not been able to even get that far yet without separating the date and time to separate columns.

10/24/2022​
10/25/2022​
10/26/2022​
10/27/2022​
LoginLoginLoginLogin
12:00:00 AM​
12:00:00 AM​
12:00:00 AM​
12:00:00 AM​
LogoutLogoutLogoutLogout
12:00:00 AM​
12:00:00 AM​
12:00:00 AM​
12:00:00 AM​
 
Upvote 0

Forum statistics

Threads
1,214,605
Messages
6,120,476
Members
448,967
Latest member
visheshkotha

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