Function Problems

Calculate Vacation Days from a Start Date in Excel

Emma BrownEmma Brown Dec 2, 2026 869 views

Question details

Calculate an employee's vacation entitlement from their start date or completed years of service.

Calculate Vacation Days from a Start Date in Excel
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.
Before you start

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.

Solution 1Recommended

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.

1
Enter the start date

Enter the employee's start date as a valid Excel date in cell A2.

2
Enter the entitlement formula

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

3
Apply it to other employees

Press Enter, then drag the result cell's fill handle down to calculate entitlement for other start dates in column A.

Calculate entitlement directly from the start date
How the date is evaluated: DATEDIF counts completed years as of today. The formula returns a blank for an empty or future start date, and entitlement changes when a service anniversary is reached.
Calculate vacation entitlement in WPS

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. 1. Open your worksheet: Open WPS Spreadsheets and select Open to load your employee workbook, or create a blank spreadsheet.
  2. 2. Enter start dates: Enter an employee's start date as a valid date in cell A2.
  3. 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. 4. Fill and save: Press Enter, drag the fill handle down for other employees, and use Menu > Save As to save the workbook.
Calculate vacation days from start dates with DATEDIF and IFOpen and save Microsoft Excel XLSX filesCopy a formula down an employee listUse a familiar spreadsheet interface for free
QA img-9

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.