Calculate Completed Years of Service as of April 1 in Excel
Question details
Calculate an employee's completed years of service as of April 1 in the current year.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- An employee's start date is stored in a worksheet, and the calculation should use April 1 of the current year as the cutoff.
- Observed behavior
- The result should count only full years of service completed by the cutoff date.
Enter the employee's start date as a valid Excel date in cell A1. Confirm that the start date is on or before April 1 of the current year.
Use DATEDIF to count completed years as of April 1
Use this formula when you need a whole-year service count that updates with the current year.
Type the employee's start date in cell A1, or identify the cell that already contains it.
Select an empty cell and enter =DATEDIF(A1,DATE(YEAR(TODAY()),4,1),"y"). Replace A1 if the start date is in another cell.
Press Enter. The result is the number of full years completed by April 1; an anniversary after that date is not counted.

Calculate completed service years in WPS Spreadsheet
Use the same DATEDIF formula in WPS Spreadsheet to count full years of service as of April 1 in the current year.
- 1. Open the worksheet: Open WPS Spreadsheet and select Open to load your employee workbook.
- 2. Check the start date: Enter or locate the employee's start date in cell A1, and make sure it is a valid date on or before the current year's April 1 cutoff.
- 3. Calculate completed years: Select an empty cell, enter =DATEDIF(A1,DATE(YEAR(TODAY()),4,1),"y"), and press Enter. Change A1 if the start date is in another cell.

Frequently Asked Questions
Does the formula count a partial year of service?
No. The "y" argument in DATEDIF counts only full years completed by April 1.
What happens if the work anniversary falls on April 1?
The anniversary is included because it has been reached on the April 1 cutoff date.
Why does the formula return an error for a recent hire?
DATEDIF returns an error when the start date is later than April 1 of the current year. Check the date in A1 against that cutoff.
How do I calculate service years for other employees?
If start dates are listed in column A, enter the formula next to the first date and drag the fill handle down. Excel adjusts the A1 reference for each row.




