Calculate the Later of an Employee's 50th Birthday and 25 Years of Service in Excel
Question details
Find the date when an employee has both turned 50 and completed 25 years of service.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- An employee's birth date and hire date are stored in a spreadsheet, and the user needs the later of the two milestone dates.
- Observed behavior
- The desired result is the later of the employee's 50th birthday and 25-year service anniversary.
Enter the employee's birth date and hire date as valid spreadsheet dates. In the example below, B2 contains the birth date and C2 contains the hire date.
Use MAX and DATE to Find the Later Employee Milestone
Calculate both milestone dates in one formula and return the later date.
In Excel, click an empty cell where you want the qualifying date to appear.
Type =MAX(DATE(YEAR(B2)+50,MONTH(B2),DAY(B2)),DATE(YEAR(C2)+25,MONTH(C2),DAY(C2))) and press Enter. Replace B2 and C2 with your birth-date and hire-date cell references.
Select the result cell, then choose Home > Number Format > Short Date if Excel displays a number instead of a date.
Drag the result cell's fill handle down to copy the formula to other employee rows.

Find the Qualifying Date in WPS Spreadsheets
Use the same MAX and DATE formula in WPS Spreadsheets to calculate the later employee milestone and display it as a date.
- 1. Open your spreadsheet: Open WPS Spreadsheets and select File > Open to choose your employee workbook.
- 2. Check the date columns: Enter or locate the birth date in B2 and the hire date in C2, adjusting the references if your dates are in different cells.
- 3. Calculate the milestone: Click an empty result cell, enter =MAX(DATE(YEAR(B2)+50,MONTH(B2),DAY(B2)),DATE(YEAR(C2)+25,MONTH(C2),DAY(C2))), and press Enter.
- 4. Format and copy the result: Use the Home tab's number format controls to select a date format, then drag the fill handle down to calculate other rows.

Frequently Asked Questions
Why does the formula use MAX?
MAX returns the later of the two calculated dates, so the result is the date by which both milestones have been reached.
How do I calculate each milestone separately?
For a birth date in B2, enter =DATE(YEAR(B2)+50,MONTH(B2),DAY(B2)). For a hire date in C2, enter =DATE(YEAR(C2)+25,MONTH(C2),DAY(C2)).
Why does my result appear as a number?
Excel stores dates as serial numbers. Select the result cell and choose Home > Number Format > Short Date to display it as a date.
What happens if the birth date is February 29?
If the 50th-birthday year is not a leap year, the DATE formula returns March 1. Confirm that this matches the rule you need to apply.




