Hello Excel Pros,
I am trying to view all the records of employee absences to determine who has been on a leave for greater then 2 years consecutively. It doesn't count if they were on a leave for 6 months, then came back to work for a day or month, then went back on leave for another period of time. Only employees who have been off for more the 2 years consecutively.
My issue is that the 2 years could include previous leaves/absences, but they must be consecutive. Meaning that if employee 12345 was off from Jan 1, 2021 to today(Mar 9, 2021 or later or undetermined), I would have to check if the previous leave/absence ended on Dec 31, 2020. If the prev absence is not immediately before the start of the current absence, then I would not include it in the calculation to determine if the employee has been off for more than 2 years(730 days).
I have over 3000 rows of data and employees have multiple absences/leaves. Some consecutive and some not. I would need to figure out a way to eliminate the ones that are not consecutive. The important absence period is the current one. Anyone who is currently off, must be checked to see if they had a previous absence immediately before the current absence. If they did, then that absence is included in the calculation of 2 years or 730+ days.
Is there a faster way to do this, with over 3000 rows? Any help is appreciated.
I have pulled the data via SQL and pasted it into Excel.
The attached example, includes five employees with absences. Only the last two employee have multiple absences that should not be included in the 2 year calculation, because the most recent absence does not have an absence immediately before.
Thank you in advance,
beginner excel
Bookmarks