Calculation Issues

Calculate Completed Years of Service as of April 1 in Excel

Aamir Naveed AkramAamir Naveed Akram Nov 27, 2026 870 views

Question details

Calculate an employee's completed years of service as of April 1 in the current year.

Calculate Completed Years of Service as of April 1 in Excel
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.
Before you start

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.

Solution 1Recommended

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.

1
Enter the start date

Type the employee's start date in cell A1, or identify the cell that already contains it.

2
Enter the formula

Select an empty cell and enter =DATEDIF(A1,DATE(YEAR(TODAY()),4,1),"y"). Replace A1 if the start date is in another cell.

3
Check the result

Press Enter. The result is the number of full years completed by April 1; an anniversary after that date is not counted.

Use DATEDIF to count completed years as of April 1
Start dates after the cutoff: DATEDIF returns an error if the start date is later than April 1 of the current year. Check the start date before applying the formula.
Calculate service years in WPS

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. 1. Open the worksheet: Open WPS Spreadsheet and select Open to load your employee workbook.
  2. 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. 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.
Counts completed service years without including partial yearsUpdates the April 1 cutoff when the current year changesCompatible with Microsoft Excel XLS and XLSX files
microsoft office alternative - wps office

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.