Calculate Vacation Days from a Start Date in Excel
Question details
Calculate an employee's vacation entitlement from their start date or completed years of service.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Apply an entitlement schedule of 10 days for 0–4 years, 15 days for 5–14 years, 20 days for 15–24 years, and 25 days for 25 or more years.
- Observed behavior
- The formula should return the numeric vacation entitlement for the employee's completed years of service.
Check whether your sheet contains a valid Excel start date or an existing column of completed years of service. The examples below use A2 for the start date and T5 for completed years.
Calculate entitlement directly from the start date
Use this formula when you have an employee's start date and want entitlement calculated as of today.
Enter the employee's start date as a valid Excel date in cell A2.
Select the result cell and enter =IF(OR(A2="",A2>TODAY()),"",IF(DATEDIF(A2,TODAY(),"y")<5,10,IF(DATEDIF(A2,TODAY(),"y")<15,15,IF(DATEDIF(A2,TODAY(),"y")<25,20,25))))
Press Enter, then drag the result cell's fill handle down to calculate entitlement for other start dates in column A.

Calculate entitlement from completed years of service
Use this shorter formula if your worksheet already calculates completed years of service.
Calculate Vacation Days in WPS Spreadsheets
Use WPS Spreadsheets to calculate completed service years and apply the same four vacation entitlement ranges to your employee list.
- 1. Open your worksheet: Open WPS Spreadsheets and select Open to load your employee workbook, or create a blank spreadsheet.
- 2. Enter start dates: Enter an employee's start date as a valid date in cell A2.
- 3. Add the formula: Select the entitlement cell and enter =IF(OR(A2="",A2>TODAY()),"",IF(DATEDIF(A2,TODAY(),"y")<5,10,IF(DATEDIF(A2,TODAY(),"y")<15,15,IF(DATEDIF(A2,TODAY(),"y")<25,20,25)))).
- 4. Fill and save: Press Enter, drag the fill handle down for other employees, and use Menu > Save As to save the workbook.

Frequently Asked Questions
How many vacation days does an employee get after five years?
Under this schedule, an employee receives 15 days once they have completed five years of service. The start-date formula checks this using DATEDIF and TODAY().
Does the formula count partial years of service?
No. DATEDIF(A2,TODAY(),"y") counts completed years, so an employee remains in the current range until their next service anniversary.
How can I calculate entitlement as of a different date?
Enter the desired calculation date in a cell, such as B2, and replace each occurrence of TODAY() in the start-date formula with B2. The start date must not be later than that date.
Why does the start-date formula return a blank?
The formula returns a blank when A2 is empty or contains a future date. Check that A2 contains a valid Excel date on or before today.




