Forum Discussion

nkurup's avatar
nkurup
Copper Contributor
Mar 09, 2024

Need help in finding number of days of emloyment in any given year

Hello,

 

In the attached file, columns C and D contain data on Dates of Joining and Dates of Leaving, respectively for various employees. Row 3 (Column E to N) show the various year ending periods (April to March).

 

I need help in calculating the number of days each employee was in services (in columns E to N) depending on their data in columns C and D, with logical checks - such as any employee joining after the year end should have 0 days of employment and any employee leaving before the beginning of the year to also have 0 days).

 

Quick assistance on this file will be most appreciated.

 DOJDOL31-Mar-2531-Mar-2631-Mar-2731-Mar-2831-Mar-2931-Mar-3031-Mar-3131-Mar-3231-Mar-3331-Mar-34
Current30-Sep-2431-Mar-34182         
Current31-Mar-2431-Mar-33365         
Current31-Mar-2431-Mar-32365         
Future1-Dec-2531-Mar-31-245         
Current31-Mar-2431-Mar-30365         
Current31-Mar-2431-Mar-31365         
Current31-Mar-2431-Mar-29365         
Future1-Sep-2631-Mar-32-519         
Current31-Mar-2431-Mar-29365         
Current31-Mar-2431-Mar-29365         
Current31-Mar-2431-Mar-31365         
Future1-Sep-2631-Mar-32-519         
Current31-Mar-2431-Mar-27365         
Current31-Mar-2431-Mar-29365         
Current31-Mar-2431-Mar-31365         
Current31-Mar-2431-Mar-33365         
Future1-Dec-2531-Mar-31-245         
Future1-Dec-2531-Mar-31-245         
Current31-Mar-2431-Mar-31365         
Current31-Mar-2431-Mar-31365         

 

 

 

Resources