+ Reply to Thread
Results 1 to 10 of 10

Google Sheets: Filter Multiple Login and Logout

  1. #1
    Registered User
    Join Date
    12-16-2020
    Location
    Philippines
    MS-Off Ver
    Google Spreadsheet
    Posts
    11

    Question Google Sheets: Filter Multiple Login and Logout

    Hi guys. Hopefully you could help me complete what I want to achieve.

    I have 3 columns A:C

    A = Employee Name
    B = Timestamp (Date&Time)
    C = In/Out

    Example:
    Agent 1 | 12/15/20 4 AM | Login
    Agent 1 | 12/15/20 5 AM | LogOut
    Agent 1 | 12/15/20 6 AM | Login
    Agent 1 | 12/15/20 7 AM | LogOut
    Agent 1 | 12/15/20 8 AM | LogIn

    I want to create a filter for columns D:E

    D = First Login, Second Login, Third Login
    E = First Logout, Second Logout, Third Login

    the main Idea is I'm looking for their Logouts followed by their next Login. This would help with computing Unproductive Hours (Duration between Logout and next login).

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: Filter Multiple Login and Logout

    Try in D2:

    Please Login or Register  to view this content.
    E2:

    Please Login or Register  to view this content.
    F2:

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Quang PT

  3. #3
    Registered User
    Join Date
    12-16-2020
    Location
    Philippines
    MS-Off Ver
    Google Spreadsheet
    Posts
    11

    Re: Filter Multiple Login and Logout

    Attachment 709127

    This is what I'm trying to achieve.

    I'm currently using Google Sheet and it shows as blank on my end. Is there some code that we could have used/modify?

  4. #4
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: Filter Multiple Login and Logout

    Attachment is invalid.
    Try to follow the guide on top of the page to see how to attach a worksheet.

  5. #5
    Registered User
    Join Date
    12-16-2020
    Location
    Philippines
    MS-Off Ver
    Google Spreadsheet
    Posts
    11

    Re: Filter Multiple Login and Logout

    It's alright. I think I've got it now.

    The data shows if I made it an Array Formula.

    Thanks a lot! How can I mark this thread as solved?

  6. #6
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: Filter Multiple Login and Logout

    Array formula? No, I don't think so. Just confirm formula input by "Enter" only.

  7. #7
    Registered User
    Join Date
    12-16-2020
    Location
    Philippines
    MS-Off Ver
    Google Spreadsheet
    Posts
    11
    Quote Originally Posted by bebo021999 View Post
    Array formula? No, I don't think so. Just confirm formula input by "Enter" only.
    What if there's a lot of agent? Will it be the same thing?

    Example:
    Agent 1
    Agent 2
    Agent 2
    Agent 3
    Agent 1
    Agent 3
    Agent 2

    Will it be the same code?

  8. #8
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: Filter Multiple Login and Logout

    Quote Originally Posted by kyoyacchi View Post
    What if there's a lot of agent? Will it be the same thing?
    ...
    Will it be the same code?
    I think so. Try to test with different agent.

  9. #9
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Filter Multiple Login and Logout

    In D2 then copied across

    =IF($C2=D$1,COUNTIFS($A$1:$A2,$A2,$C$1:$C2,D$1) &" "& D$1,"")
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  10. #10
    Registered User
    Join Date
    12-16-2020
    Location
    Philippines
    MS-Off Ver
    Google Spreadsheet
    Posts
    11

    Re: Filter Multiple Login and Logout

    Hi!

    Would you mind providing a code to calculate the duration between last logout vs next login?

    The code on top is not working unless it's on Array Formula. If it's not on array formula, it goes blank.

    since it's array formula, it slows down the spreadsheet.
    Attached Files Attached Files
    Last edited by kyoyacchi; 12-18-2020 at 06:43 PM.

+ 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 Macro to capture the First Login & Last Logout with Total Login Hours Delivered
    By Yadavgiri in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-08-2020, 01:02 PM
  2. Lookup closest login/logout time from multiple instances with criteria
    By sushant.pan in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-22-2017, 09:11 PM
  3. [SOLVED] login & logout attendance sheet for multiple users
    By MdYas in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 10-01-2015, 07:32 AM
  4. Login/logout from multiple places
    By gregersdk in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-23-2015, 04:27 AM
  5. Replies: 0
    Last Post: 02-17-2014, 07:44 AM
  6. login and logout time , with total login time ,break> 1 hours
    By shrinivasmj in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-12-2013, 05:37 AM
  7. First login & last Logout
    By Vikky in forum Excel General
    Replies: 2
    Last Post: 08-19-2006, 01:20 AM

Tags for this Thread

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