Calculation Issues

Calculate Employee Employment Days by Financial Year in Excel

Emma BrownEmma Brown Nov 12, 2026 869 views

Question details

Calculate how many calendar days an employee was employed within each April-to-March financial year using their joining and leaving dates.

Calculate Employee Employment Days for Each Financial Year in Excel
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.
Before you start

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.

Solution 1Recommended

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.

1
Set up the date columns

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.

2
Enter the inclusive employment-days formula

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.

3
Fill the formula across financial years

Select E4 and drag the fill handle right for additional financial-year end-date columns, then drag down for other employees.

4
Adjust for an exclusive leaving date if needed

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))).

Use an overlap formula for an April-to-March financial year
Expected result: An employee who worked for the entire April 1 to March 31 financial year returns 365 days, or 366 days when the period includes February 29.
Calculate employment periods accurately

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. 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. 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. 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. 4. Fill the report: Drag the cell fill handle across financial-year columns and down employee rows to apply the calculation.
Use DATE, MIN, and MAX functions to calculate employment-day overlaps.Fill formulas across multiple financial years and employee rows quickly.Open and save Microsoft Excel .xlsx files with formula compatibility.Use a familiar spreadsheet interface for smooth Excel workbook migration.
microsoft office alternative - wps office

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).