+ Reply to Thread
Results 1 to 9 of 9

Trying to get the min and max logins of employees

  1. #1
    Registered User
    Join Date
    02-07-2019
    Location
    montreal
    MS-Off Ver
    13
    Posts
    4

    Trying to get the min and max logins of employees

    Hello! Below is a sample of some excel data. Trying to figure out how to get this into a report for logins and logouts with their multiple login and logout times. I need per agent / per day the earliest time they logged in that day (Agent-Login) and the latest time they logged out (Agent-Logout). I'm stumped. Thanks!

    Date OriginatorID Description StartingTime
    05/02/2019 1003 Agent-Login 2:05:56 PM
    05/02/2019 1003 Agent-Login 2:11:06 PM
    05/02/2019 1003 Agent-Login 2:51:58 PM
    05/02/2019 1003 Agent-Login 2:53:52 PM
    05/02/2019 1003 Agent-Login 3:07:09 PM
    05/02/2019 1003 Agent-Login 3:28:58 PM
    05/02/2019 1003 Agent-Logout 2:07:47 PM
    05/02/2019 1003 Agent-Logout 2:12:07 PM
    05/02/2019 1003 Agent-Logout 2:53:33 PM
    05/02/2019 1003 Agent-Logout 2:57:17 PM
    05/02/2019 1003 Agent-Logout 3:13:03 PM
    05/02/2019 1017 Agent-Login 12:51:33 PM
    05/02/2019 1017 Agent-Logout 12:21:37 AM
    05/02/2019 1017 Agent-Logout 3:55:30 PM
    05/02/2019 1028 Agent-Login 11:12:44 AM
    05/02/2019 1028 Agent-Logout 4:51:17 PM
    05/02/2019 1037 Agent-Login 9:58:40 AM
    05/02/2019 1037 Agent-Logout 6:31:29 PM
    05/02/2019 1043 Agent-Login 12:00:16 PM
    05/02/2019 1043 Agent-Logout 8:31:17 PM
    05/02/2019 1233 Agent-Login 3:11:32 PM
    05/02/2019 1233 Agent-Login 3:47:44 PM
    05/02/2019 1233 Agent-Logout 3:26:01 PM
    05/02/2019 1387 Agent-Login 9:00:13 AM
    05/02/2019 1387 Agent-Logout 6:00:03 PM
    05/02/2019 1492 Agent-Login 8:51:59 AM
    05/02/2019 1492 Agent-Login 11:30:42 AM


    An example would be creating another table that would give this as an output :

    Agent Date Log in Logout
    1003 05/02/2019 2:05:56 PM 3:13:03 PM
    Last edited by MAI1976; 02-07-2019 at 05:35 PM.

  2. #2
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,742

    Re: Trying to get the min and max logins of employees

    As I see you've got data in 4 columns, so into E2 put:

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    and drag it down as long as need to get full list of log numbers (0 should be the last)
    and into F2:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    and drag it down as long as needed.
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

  3. #3
    Forum Expert
    Join Date
    11-26-2013
    Location
    Colac, Victoria, Australia
    MS-Off Ver
    Excel 2016
    Posts
    1,309

    Re: Trying to get the min and max logins of employees

    @KOKOESK provided a satisfactory solution for column F to get the unique agent numbers, but the second half doesn't answer your problem I suspect.

    I suggest you create two adjacent column headings with Agent-Login and Agent-Logout (identical to the assumed column c.

    Then in column F:
    Please Login or Register  to view this content.
    and Column G:
    Please Login or Register  to view this content.
    All the data you provided was for one date. If you need more than one date in the model, you will need to expand add another criteria to the MAXIFS and MINIFS formulae.

    I hope this helps, please let me know!

    Regards,

    David

    If this has been helpful
    - Please click on the *Add Reputation button at the bottom left.

    Please mark your thread as SOLVED:
    - Click Thread Tools above your first post, select "Mark your thread as Solved".


  4. #4
    Registered User
    Join Date
    02-07-2019
    Location
    montreal
    MS-Off Ver
    13
    Posts
    4

    Re: Trying to get the min and max logins of employees

    Thanks Kokosek! I should have been more clear with my question as I needed the earliest login time and latest login time per employee / day. I modified my ask. Thanks for the reply though.

  5. #5
    Registered User
    Join Date
    02-07-2019
    Location
    montreal
    MS-Off Ver
    13
    Posts
    4

    Re: Trying to get the min and max logins of employees

    Thanks David! I don't think the maxifs / minifs work with 2013. I tried using the min if and max if but I can't seem to get it working. Below is some data with multiple dates. Hoping you can help!! Thanks.

    Outpout would start from second ID.

    Date ID Description StartingTime ID Date Agent-Login Agent-Logout
    05/02/2019 1003 Agent-Login 2:05:56 PM 1003 05/02/2019 2:05:56 PM 3:28:58 PM
    05/02/2019 1003 Agent-Login 2:11:06 PM
    05/02/2019 1003 Agent-Login 2:51:58 PM
    05/02/2019 1003 Agent-Login 2:53:52 PM
    05/02/2019 1003 Agent-Login 3:07:09 PM
    05/02/2019 1003 Agent-Login 3:28:58 PM
    05/02/2019 1003 Agent-Logout 2:07:47 PM
    05/02/2019 1003 Agent-Logout 2:12:07 PM
    05/02/2019 1003 Agent-Logout 2:53:33 PM
    05/02/2019 1003 Agent-Logout 2:57:17 PM
    05/02/2019 1003 Agent-Logout 3:13:03 PM
    05/02/2019 1017 Agent-Login 12:51:33 PM
    05/02/2019 1017 Agent-Logout 12:21:37 AM
    05/02/2019 1017 Agent-Logout 3:55:30 PM
    06/02/2019 1003 Agent-Login 8:55:57 AM
    06/02/2019 1003 Agent-Login 9:04:49 AM
    06/02/2019 1003 Agent-Login 9:33:55 AM
    06/02/2019 1003 Agent-Login 9:36:56 AM
    06/02/2019 1003 Agent-Login 9:54:44 AM
    06/02/2019 1003 Agent-Login 9:55:01 AM
    06/02/2019 1003 Agent-Login 9:57:52 AM
    06/02/2019 1003 Agent-Login 10:03:03 AM
    06/02/2019 1003 Agent-Login 10:03:36 AM
    06/02/2019 1003 Agent-Login 10:07:16 AM
    06/02/2019 1003 Agent-Login 10:08:57 AM
    06/02/2019 1003 Agent-Login 10:26:51 AM
    06/02/2019 1003 Agent-Login 10:46:22 AM
    06/02/2019 1003 Agent-Login 10:53:35 AM
    06/02/2019 1003 Agent-Login 11:00:20 AM
    06/02/2019 1003 Agent-Login 11:01:51 AM
    06/02/2019 1003 Agent-Login 11:07:00 AM
    06/02/2019 1003 Agent-Login 11:11:01 AM
    06/02/2019 1003 Agent-Login 11:12:12 AM
    06/02/2019 1003 Agent-Login 11:39:51 AM
    06/02/2019 1003 Agent-Login 11:42:48 AM
    06/02/2019 1003 Agent-Login 11:59:00 AM
    06/02/2019 1003 Agent-Login 12:01:47 PM
    06/02/2019 1003 Agent-Login 12:05:50 PM
    06/02/2019 1003 Agent-Login 2:59:55 PM
    06/02/2019 1003 Agent-Login 3:10:58 PM
    06/02/2019 1003 Agent-Logout 8:01:47 AM

  6. #6
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,742

    Re: Trying to get the min and max logins of employees

    Please Login or Register  to view this content.
    where X is cell with login number and Y particular date
    Last edited by KOKOSEK; 02-08-2019 at 12:47 PM.

  7. #7
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,742

    Re: Trying to get the min and max logins of employees

    Check attached file. I think we are direct to that.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    02-07-2019
    Location
    montreal
    MS-Off Ver
    13
    Posts
    4

    Re: Trying to get the min and max logins of employees

    Thanks so much! Exactly what I needed!

  9. #9
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,742

    Re: Trying to get the min and max logins of employees

    You welcome.
    If You are happy with solution, please use thread tools and marl thread as SOLVED.

    p.s. sort date column asc, it gives you as result date in table sorted.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] VBA to randomly select 10 employees from a list of employees
    By Kimston in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 08-18-2018, 12:13 PM
  2. Replies: 10
    Last Post: 07-27-2017, 12:44 PM
  3. Assigning tasks to employees and moving between employees
    By sbo123 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-20-2014, 10:37 AM
  4. Forecast How Many Employees To Hire Based on Active and Termed Employees
    By Kanook22 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-12-2014, 01:19 PM
  5. Replies: 2
    Last Post: 03-11-2013, 09:59 PM
  6. Replies: 4
    Last Post: 11-28-2010, 11:00 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1