+ Reply to Thread
Results 1 to 26 of 26

Detect employee actual entry data and exit date

  1. #1
    Registered User
    Join Date
    09-30-2024
    Location
    Vietnam
    MS-Off Ver
    Excel 365 for Mac - Version 16.90.2
    Posts
    11

    Detect employee actual entry data and exit date

    Hi everyone,

    I have a employee database, structure as below:
    - Each movement of employees will be created as new row in database
    Eg. Employee A, move from team "Engineering 1" to "Data Science" with the entry date = exit date + 1

    - Blank cell in Exit date means Active employee
    - Employee "E" left, then came back after several months

    Now, I want to have the actual entry date and actual exit date as what column F and G show.
    Could anyone please help? Thank you so much.

    Sample Data:

    Screenshot 2024-09-30 at 14.48.08.png
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,522

    Re: Detect employee actual entry data and exit date

    Clean All expected results.

    F2
    Please Login or Register  to view this content.
    G2
    Please Login or Register  to view this content.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    09-30-2024
    Location
    Vietnam
    MS-Off Ver
    Excel 365 for Mac - Version 16.90.2
    Posts
    11

    Re: Detect employee actual entry data and exit date

    thank you so much, it's fantastic

    here another issue, when i change it as a Table format, the formula returns #SPILL!, I checked google for the error, but dont know how to fix it, could you please help?

  4. #4
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,522

    Re: Detect employee actual entry data and exit date

    F2
    Please Login or Register  to view this content.
    G2
    Please Login or Register  to view this content.
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    10-11-2021
    Location
    Netherlands
    MS-Off Ver
    365
    Posts
    1,504

    Re: Detect employee actual entry data and exit date

    Here a spilled version, all at once

    Please Login or Register  to view this content.
    Last edited by JEC.; 09-30-2024 at 09:21 AM.

  6. #6
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2019
    Posts
    4,202

    Re: Detect employee actual entry data and exit date

    Try,
    Actual Entry Date:
    =IF(ISNUMBER(MATCH([@[Entry Date]]-1,FILTER([[Exit Date ]],[[Employee Name ]]=[@[Employee Name ]]),0)),MINIFS([Entry Date],[[Employee
    Name ]],[@[Employee Name ]]),[@[Entry Date]])

    Actualy Exit Date:
    =IF(ISNUMBER(MATCH([@[Exit Date ]]+1,FILTER([Entry Date],[[Employee Name ]]=[@[Employee Name ]]),0)),IF(AGGREGATE(15,6,$C$2:$C$11/($A$2:$A$11=$A2),1)=0,"",MAXIFS($C$2:$C$11,$A$2:$A$11,$A2)),IF([@[Exit Date ]]=0,"",[@[Exit Date ]]))

  7. #7
    Registered User
    Join Date
    09-30-2024
    Location
    Vietnam
    MS-Off Ver
    Excel 365 for Mac - Version 16.90.2
    Posts
    11

    Re: Detect employee actual entry data and exit date

    thank you so much everyone
    all solutions are greatt

  8. #8
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,522

    Re: Detect employee actual entry data and exit date

    You are welcome.
    -----------------------------------
    If that takes care of your original question, please click on "Thread Tools" from the menu link above and mark this thread as SOLVED.

  9. #9
    Registered User
    Join Date
    09-30-2024
    Location
    Vietnam
    MS-Off Ver
    Excel 365 for Mac - Version 16.90.2
    Posts
    11

    Re: Detect employee actual entry data and exit date

    Hi Josephteh, I am checking several answers, and there's an error if I add another row data (see row 10), the entry date it takes from the old contract, could you please check it and show me how to fix?

  10. #10
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2019
    Posts
    4,202

    Re: Detect employee actual entry data and exit date

    Delete delete
    Last edited by josephteh; 10-01-2024 at 09:39 AM.

  11. #11
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2019
    Posts
    4,202

    Re: Detect employee actual entry data and exit date

    Change both formulas to:

    Actual Entry Date:
    =IF(ISNUMBER(MATCH([@[Entry Date]]-1,FILTER([[Exit Date ]],[[Employee Name ]]=[@[Employee Name ]]),0)),MIN(FILTER([Entry Date],([[Employee Name ]]=[@[Employee Name ]])*ISNUMBER(MATCH([[Exit Date ]],[Entry Date]-1,0)))),[@[Entry Date]])

    Actual Exit Date:
    =IFERROR(1/(1/IF(ISNUMBER(MATCH([@[Exit Date ]]+1,FILTER([Entry Date],[[Employee Name ]]=[@[Employee Name ]]),0)),MAX(FILTER([[Exit Date ]],([[Employee Name ]]=[@[Employee Name ]])*(ISNUMBER(MATCH([[Exit Date ]],[Entry Date]-1,0))=FALSE))),[@[Exit Date ]])),"")

  12. #12
    Registered User
    Join Date
    09-30-2024
    Location
    Vietnam
    MS-Off Ver
    Excel 365 for Mac - Version 16.90.2
    Posts
    11

    Re: Detect employee actual entry data and exit date

    thank you so much

  13. #13
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2019
    Posts
    4,202

    Re: Detect employee actual entry data and exit date

    You are welcome. Thanks for the Rep.

  14. #14
    Registered User
    Join Date
    09-30-2024
    Location
    Vietnam
    MS-Off Ver
    Excel 365 for Mac - Version 16.90.2
    Posts
    11

    Question Detect employee actual entry data and exit date

    Hi everyone,

    I still have this issues after entering some new records. Could you please help me to fix it? Or give me another suggestion? I also tried LET function, the results are correct, but I have over 2000 records, and it takes alot of Macbook RAM to calculate, so I don't prefer that option much

    Attachment 882475
    Attachment 882474
    Thank you.
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by allienguyen; 11-06-2024 at 03:35 AM.

  15. #15
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2019
    Posts
    4,202

    Re: Detect employee actual entry data and exit date

    Try Exit Date:
    Please Login or Register  to view this content.

  16. #16
    Registered User
    Join Date
    09-30-2024
    Location
    Vietnam
    MS-Off Ver
    Excel 365 for Mac - Version 16.90.2
    Posts
    11

    Re: Detect employee actual entry data and exit date

    It's still not working :(
    E11 is incorrect
    and also, when i input the exit date for employee A at E2, it leads to the error in E3 & E4
    Attached Files Attached Files

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

    Re: Detect employee actual entry data and exit date

    What should E11 be and why?

    Similarly E3 and E4?
    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.

  18. #18
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2019
    Posts
    4,202

    Re: Detect employee actual entry data and exit date

    Please check attached workbook.

  19. #19
    Registered User
    Join Date
    09-30-2024
    Location
    Vietnam
    MS-Off Ver
    Excel 365 for Mac - Version 16.90.2
    Posts
    11

    Re: Detect employee actual entry data and exit date

    Thank you josephteh, it works
    however, my sample doesn't cover all scenario :(, so the formula is still incorrect after i input employee V as a new sample, could you please check it again? I am sorry and highly appreciate for your help T_T

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

    Re: Detect employee actual entry data and exit date

    You are drip-feeding requirements, which is unfair to your helper. Please check carefully that you have now included ALL possible scenarios.

    If your Excel version is 365, you need to add this detail to your forum profile, please.

  21. #21
    Registered User
    Join Date
    09-30-2024
    Location
    Vietnam
    MS-Off Ver
    Excel 365 for Mac - Version 16.90.2
    Posts
    11

    Re: Detect employee actual entry data and exit date

    yes, my bad for not include all scenarios before, so sorry about it
    and I will update my Excel version soon, thanks AliGW

  22. #22
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,522

    Re: Detect employee actual entry data and exit date

    Try this in E2.
    Please Login or Register  to view this content.

  23. #23
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2019
    Posts
    4,202

    Re: Detect employee actual entry data and exit date

    Thanks windknife for coming to the rescue. I have probably complicated matters by trying to come up with a formula to ensure it will work even if the data are not in entry date order.

  24. #24
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,522

    Re: Detect employee actual entry data and exit date

    @josephteh, you are welcome. I just have an idea to solve it.
    But I’m not sure if it meets the requirements of the original post.

  25. #25
    Registered User
    Join Date
    09-30-2024
    Location
    Vietnam
    MS-Off Ver
    Excel 365 for Mac - Version 16.90.2
    Posts
    11

    Re: Detect employee actual entry data and exit date

    thank you both of you

  26. #26
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,522

    Re: Detect employee actual entry data and exit date

    You are welcome.
    -----------------------------------
    If that takes care of your original question, please click on "Thread Tools" from the menu link above and mark this thread as SOLVED.

+ 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. Replies: 1
    Last Post: 07-19-2022, 12:38 PM
  2. how to extract records having the same entry and exit date?
    By sumesh56 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-04-2021, 10:29 PM
  3. Entry/Exit System Data - Duration check
    By clownfishcoxy in forum Excel General
    Replies: 3
    Last Post: 10-05-2021, 11:57 AM
  4. Vba for data entry sheet for employee overtime
    By Abhilashvasu in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-07-2020, 11:55 AM
  5. [SOLVED] Returning the newest date entry for an employee on a separate sheet
    By avidcat in forum Excel General
    Replies: 4
    Last Post: 09-14-2012, 07:34 PM
  6. I'm a salaried employee, ?how to calculate actual rate of pay
    By help in CA in forum Excel - New Users/Basics
    Replies: 20
    Last Post: 08-07-2006, 02:05 PM
  7. detect changes when exit?
    By d61helix in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-08-2005, 04:28 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