Calculate Employee Employment Days by Financial Year in Excel
Question details
Calculate how many calendar days an employee was employed within each April-to-March financial year using their joining and leaving dates.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- The worksheet contains an employee joining date, leaving date, and one or more financial-year end dates.
- Observed behavior
- The required result is the inclusive overlap in days between each employee's employment period and each financial-year period.
Confirm that joining dates, leaving dates, and financial-year end dates are real Excel dates rather than text. This method assumes each financial year runs from April 1 through March 31 and that both joining and leaving dates are included.
Use an overlap formula for an April-to-March financial year
Use this method when the financial-year end date, such as March 31, is stored in the column header and you need the employed days that fall within that period.
The formula compares the earlier of the leaving date and financial-year end with the later of the joining date and financial-year start. MAX prevents a negative result when the employee was not employed during that financial year.
Enter the joining date in C4 and the leaving date in D4. Enter the financial-year end date in E3, for example, 3/31/2024 for the 2023/24 financial year.
In E4, enter =MAX(0,MIN($D4,E$3)-MAX($C4,DATE(YEAR(E$3)-1,4,1))+1). This calculates the days from April 1 of the prior calendar year through the March 31 date in E3.
Select E4 and drag the fill handle right for additional financial-year end-date columns, then drag down for other employees.
If an employee's leaving date is the first day they were no longer employed, remove the final +1 from the formula: =MAX(0,MIN($D4,E$3)-MAX($C4,DATE(YEAR(E$3)-1,4,1))).

Calculate a financial-year start date in a helper cell
Use a helper cell when you want to display and verify the April 1 start date before applying the overlap calculation.
Calculate Financial-Year Employment Days in WPS Spreadsheets
WPS Spreadsheets can calculate the overlap between employee dates and April-to-March financial years with familiar Excel-compatible formulas. Enter the dates, apply the overlap formula, and fill it across your report.
- 1. Open the employee worksheet: In WPS Spreadsheets, open the workbook and place joining dates in column C, leaving dates in column D, and March 31 financial-year end dates in row 3.
- 2. Enter the overlap formula: Select E4 and enter =MAX(0,MIN($D4,E$3)-MAX($C4,DATE(YEAR(E$3)-1,4,1))+1).
- 3. Confirm the first result: Press Enter and check that the result reflects only the dates falling between April 1 and the March 31 year-end date.
- 4. Fill the report: Drag the cell fill handle across financial-year columns and down employee rows to apply the calculation.

Frequently Asked Questions
What does the +1 do in the employment-days formula?
The +1 makes the calculation inclusive, so both the joining date and leaving date count as employed days. Remove +1 if the leaving date should not be counted.
How do I calculate employment days when the employee has no leaving date?
Replace the leaving-date reference with a current or reporting-end date. For example, use =MAX(0,MIN(TODAY(),E$3)-MAX($C4,DATE(YEAR(E$3)-1,4,1))+1) when the employee is still employed.
Why does the formula return zero for some employees?
A zero means the joining-to-leaving period does not overlap the April 1 to March 31 financial-year range. Check that the source cells contain valid dates and that the financial-year end date is correct.
Can I use this formula for a different financial-year start month?
Yes. Change DATE(YEAR(E$3)-1,4,1) to the required start date. For example, for a July-to-June year ending June 30, use DATE(YEAR(E$3)-1,7,1).




