+ Reply to Thread
Results 1 to 12 of 12

login id change during the day?

  1. #1
    Registered User
    Join Date
    08-16-2016
    Location
    Hungary
    MS-Off Ver
    2015
    Posts
    4

    login id change during the day?

    Hi

    Please help me, I wanna check that my employee's have changed their login id during the day at least once. Which formula can I use for that?

  2. #2
    Registered User
    Join Date
    08-16-2016
    Location
    Hungary
    MS-Off Ver
    2015
    Posts
    4

    Re: login id change during the day?

    This is an example (sorry I dont know how to attach excel file):
    Where the Expected result is 2 it means that there were two different logins on that day, where the result is 1, there was no change during the day.

    Date transaction time Login id Expected result
    2016.06.01 7:27 604 2
    2016.06.01 8:24 604 2
    2016.06.01 9:44 604 2
    2016.06.01 11:28 604 2
    2016.06.01 12:36 604 2
    2016.06.01 14:12 602 2
    2016.06.01 14:57 602 2
    2016.06.01 15:08 602 2
    2016.06.01 15:16 602 2
    2016.06.01 15:58 602 2
    2016.06.01 16:02 602 2
    2016.06.01 16:16 602 2
    2016.06.01 17:17 602 2
    2016.06.01 17:55 602 2
    2016.06.01 20:21 602 2
    2016.06.01 20:25 602 2
    2016.06.02 7:21 604 2
    2016.06.02 7:50 604 2
    2016.06.02 7:59 604 2
    2016.06.02 8:53 604 2
    2016.06.02 9:57 604 2
    2016.06.02 10:34 604 2
    2016.06.02 10:42 604 2
    2016.06.02 11:10 604 2
    2016.06.02 11:19 604 2
    2016.06.02 11:35 604 2
    2016.06.02 13:22 604 2
    2016.06.02 13:53 606 2
    2016.06.02 13:54 606 2
    2016.06.02 14:24 606 2
    2016.06.02 15:14 606 2
    2016.06.02 15:33 606 2
    2016.06.02 16:04 606 2
    2016.06.02 16:14 606 2
    2016.06.02 17:08 606 2
    2016.06.02 18:55 606 2
    2016.06.02 19:20 606 2
    2016.06.02 19:47 606 2
    2016.06.02 21:11 606 2
    2016.06.02 21:28 606 2
    2016.06.03 6:19 602 1
    2016.06.03 7:30 602 1
    2016.06.03 8:22 602 1
    2016.06.03 8:27 602 1
    2016.06.03 8:28 602 1
    2016.06.03 8:53 602 1
    2016.06.03 8:58 602 1
    2016.06.03 9:08 602 1
    2016.06.03 11:13 602 1
    2016.06.03 11:17 602 1
    2016.06.03 12:12 602 1
    2016.06.03 12:25 602 1
    2016.06.03 12:29 602 1
    2016.06.03 13:11 602 1
    2016.06.03 13:15 602 1
    2016.06.03 13:48 602 1
    2016.06.03 14:02 602 1
    2016.06.03 14:14 602 1
    2016.06.03 14:49 602 1
    2016.06.03 16:06 602 1
    2016.06.03 16:51 602 1
    2016.06.03 16:53 602 1
    2016.06.03 17:05 602 1
    2016.06.03 17:31 602 1
    2016.06.03 17:44 602 1
    2016.06.03 17:47 602 1
    2016.06.03 18:21 602 1
    2016.06.03 18:31 602 1
    2016.06.03 18:49 602 1
    2016.06.03 18:52 602 1
    2016.06.03 18:55 602 1
    2016.06.03 19:01 602 1
    2016.06.03 19:32 602 1
    2016.06.03 20:05 602 1
    2016.06.03 20:05 602 1
    2016.06.03 20:21 602 1
    2016.06.03 20:47 602 1
    Last edited by ze4lot; 08-17-2016 at 02:15 AM.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,387

    Re: login id change during the day?

    T attach a sample workbook:

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

    Please explain your expected results above.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  4. #4
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2503 Build 16.0.18604.20000) 64-bit
    Posts
    3,992

    Re: login id change during the day?

    Assuming your Dates & Time in A column and login id is in B column then try

    C1=COUNTIFS($A$1:A1,A1,$B$1:B1,B1) and drag down.

    It will take care if Same Employee loging in same date twice then it will deliver 2.

    If you have any problem the please attach workbook with expected result.


    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  5. #5
    Registered User
    Join Date
    08-16-2016
    Location
    Hungary
    MS-Off Ver
    2015
    Posts
    4

    Re: login id change during the day?

    Thanks attachment here with the Countifs its still not giving me the good result :/
    Attached Files Attached Files
    Last edited by ze4lot; 08-17-2016 at 02:31 AM.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,387

    Re: login id change during the day?

    What COUNTIFS formula is giving the wrong result? How did you arrive at your expected results?

  7. #7
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2503 Build 16.0.18604.20000) 64-bit
    Posts
    3,992

    Re: login id change during the day?

    Try

    D2=SUMPRODUCT(--(IF(FREQUENCY(OFFSET($A$1,MATCH($A2,$A$2:$A$78,0),2,COUNTIFS($A$2:$A$78,$A2)),OFFSET($A$1,MATCH($A2,$A$2:$A$78,0),2,COUNTIFS($A$2:$A$78,$A2)))>0,1))) and drag down!!

  8. #8
    Registered User
    Join Date
    08-16-2016
    Location
    Hungary
    MS-Off Ver
    2015
    Posts
    4

    Re: login id change during the day?

    yes that monster works :D thank you

  9. #9
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2503 Build 16.0.18604.20000) 64-bit
    Posts
    3,992

    Re: login id change during the day?

    Hppy to help you

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED and add reputation by clicking star * icon on your left corner of screen. Thanks.

  10. #10
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: login id change during the day?

    Quote Originally Posted by shukla.ankur281190 View Post
    =SUMPRODUCT(--(IF(FREQUENCY(OFFSET($A$1,MATCH($A2,$A$2:$A$78,0),2,COUNTIFS($A$2:$A$78,$A2)),OFFSET($A$1,MATCH($A2,$A$2:$A$78,0),2,COUNTIFS($A$2:$A$78,$A2)))>0,1)))
    You have an unhealthy penchant for OFFSET.

    Have you ever read http://www.decisionmodels.com/calcsecretsi.htm

    Here's a non-volatile equivalent array formula

    =SUM(IFERROR(1/COUNTIFS($A$2:$A$78,$A$2:$A$78,$A$2:$A$78,$A2,$C$2:$C$78,$C$2:$C$78),0))

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.

    Or, if you just need to check if it has been changed on any given day rather than count the changes. (Note that this one only checks the first and last ID on any given day, so if they change during the day, then return to the original one, this formula will not see it).

    =IF(INDEX(C:C,MATCH(A2,A:A,0))<>LOOKUP(A2,A:A,C:C),"Changed","Not Changed")

    There are probably a few other methods that would work as well, I expect that the FREQUENCY method that Ankur suggested can be done without the use of OFFSET, but I haven't looked at it in detail.

  11. #11
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2503 Build 16.0.18604.20000) 64-bit
    Posts
    3,992

    Re: login id change during the day?

    Quote Originally Posted by jason.b75 View Post
    You have an unhealthy penchant for OFFSET.

    Have you ever read http://www.decisionmodels.com/calcsecretsi.htm

    .
    Actual I really didn't know about it thanks for letting me know. Let me also explain about your countifs function how did you do it??

    Thanks a lot
    Last edited by shukla.ankur281190; 08-17-2016 at 03:38 AM. Reason: missing Thnaks

  12. #12
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: login id change during the day?

    The countifs method is not the best one to use, but it does work.

    Frequency with out offset would be preferable, one way

    =SUM(SIGN(FREQUENCY(IF($A$2:$A$78=A2,$C$2:$C$78),$C$2:$C$78)))

    Array confirmed with shift ctrl enter.

    For the countifs method to work, you have to compare each entire range to itself, then compare a key to a range (the date is the key so column A is referenced twice, comparing A2:A78 to A2:A78, then A2:A78 to A2), then trap #DIV/0 errors, and it gets even more messy when you have empty cells to contend with

    Probably best left not explained in too much detail, it is something best practiced on a simpler scale first. (Running before you can walk kind of scenario).

+ 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. formula for Early login Time & Late Login Time
    By Rushendra in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-03-2016, 10:22 AM
  2. Any excel formula to get first login and last login data
    By sandesh joshi in forum Excel General
    Replies: 5
    Last Post: 07-11-2014, 11:18 AM
  3. Re-Login after Login attempt failed
    By raw_geek in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-09-2014, 05:24 AM
  4. Replies: 0
    Last Post: 02-17-2014, 07:44 AM
  5. [SOLVED] Login sheet rather than login form?
    By mdovey in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-06-2013, 05:17 PM
  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. find the login user and saving /login the name
    By belkin in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-03-2008, 08:24 AM

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