Age, Experience, Tenure and Date Difference in excel Practice Questions with Solutions

Introduction

Date calculations are common in employee records, student databases, customer information, subscriptions, and business reports. In this chapter, you will practice calculating age, years of experience, employee tenure, completed months, total days, and detailed date differences. The questions use practical Excel formulas such as DATEDIF, DAYS, YEARFRAC, and date arithmetic so you can test your Excel skills with different real-world examples. Age, Experience, Tenure and Date Difference in Excel Practice Questions with Solutions to help you understand the concepts.


Question 1: Calculate Age in Completed Years

Problem Statement

Calculate the current age of each person as of 28 September 2026.

Excel Data

NameDate of BirthAs-of DateAge
Rahul15/06/200028/09/2026
Priya20/10/200228/09/2026
Amit10/01/199828/09/2026
Neha05/12/200528/09/2026
Arjun25/08/199528/09/2026

Solution

In D2, enter:

=DATEDIF(B2,C2,"Y")

Copy the formula down.

Expected Output

NameDate of BirthAs-of DateAge
Rahul15/06/200028/09/202626
Priya20/10/200228/09/202623
Amit10/01/199828/09/202628
Neha05/12/200528/09/202620
Arjun25/08/199528/09/202631

DATEDIF with "Y" returns completed years.


Question 2: Calculate Age in Years and Months

Problem Statement

Calculate each person’s age in completed years and remaining months.

Excel Data

NameDate of BirthAs-of DateAge
Rahul15/06/200028/09/2026
Priya20/10/200228/09/2026
Amit10/01/199828/09/2026
Neha05/12/200528/09/2026
Arjun25/08/199528/09/2026

Solution

In D2, enter:

=DATEDIF(B2,C2,"Y")&" years "&DATEDIF(B2,C2,"YM")&" months"

Copy down.

Expected Output

NameDate of BirthAs-of DateAge
Rahul15/06/200028/09/202626 years 3 months
Priya20/10/200228/09/202623 years 11 months
Amit10/01/199828/09/202628 years 8 months
Neha05/12/200528/09/202620 years 9 months
Arjun25/08/199528/09/202631 years 1 month

"YM" returns the remaining complete months after completed years.


Question 3: Calculate Age in Years, Months and Days

Problem Statement

Calculate the complete age of each person in years, months, and days.

Excel Data

NameDate of BirthAs-of DateDetailed Age
Rahul15/06/200028/09/2026
Priya20/10/200228/09/2026
Amit10/01/199828/09/2026
Neha05/12/200528/09/2026
Arjun25/08/199528/09/2026

Solution

In D2, enter:

=DATEDIF(B2,C2,"Y")&" years "&DATEDIF(B2,C2,"YM")&" months "&DATEDIF(B2,C2,"MD")&" days"

Copy down.

Expected Output

NameDate of BirthAs-of DateDetailed Age
Rahul15/06/200028/09/202626 years 3 months 13 days
Priya20/10/200228/09/202623 years 11 months 8 days
Amit10/01/199828/09/202628 years 8 months 18 days
Neha05/12/200528/09/202620 years 9 months 23 days
Arjun25/08/199528/09/202631 years 1 month 3 days

Question 4: Calculate Employee Experience

Problem Statement

Calculate the completed years of professional experience for each employee as of 28 September 2026.

Excel Data

EmployeeJoining DateAs-of DateExperience
Rahul15/06/201828/09/2026
Priya20/02/202028/09/2026
Amit10/01/201928/09/2026
Neha05/12/202128/09/2026
Arjun25/08/201728/09/2026

Solution

In D2, enter:

=DATEDIF(B2,C2,"Y")

Copy down.

Expected Output

EmployeeJoining DateAs-of DateExperience
Rahul15/06/201828/09/20268
Priya20/02/202028/09/20266
Amit10/01/201928/09/20267
Neha05/12/202128/09/20264
Arjun25/08/201728/09/20269

Question 5: Calculate Employee Tenure in Years and Months

Problem Statement

Calculate how long each employee has worked for the company.

Display the result as:

8 years 3 months

Excel Data

EmployeeJoining DateAs-of DateTenure
Rahul15/06/201828/09/2026
Priya20/02/202028/09/2026
Amit10/01/201928/09/2026
Neha05/12/202128/09/2026
Arjun25/08/201728/09/2026

Solution

In D2, enter:

=DATEDIF(B2,C2,"Y")&" years "&DATEDIF(B2,C2,"YM")&" months"

Copy down.

Expected Output

EmployeeJoining DateAs-of DateTenure
Rahul15/06/201828/09/20268 years 3 months
Priya20/02/202028/09/20266 years 7 months
Amit10/01/201928/09/20267 years 8 months
Neha05/12/202128/09/20264 years 9 months
Arjun25/08/201728/09/20269 years 1 month

Question 6: Find the Total Number of Days Between Two Dates

Problem Statement

Calculate the total number of days taken to complete each project.

Excel Data

ProjectStart DateEnd DateTotal Days
Website01/09/202615/09/2026
App05/09/202620/09/2026
Database10/09/202625/09/2026
Dashboard12/09/202628/09/2026
Report15/09/202630/09/2026

Solution

In D2, enter:

=DAYS(C2,B2)

Copy down.

Expected Output

ProjectStart DateEnd DateTotal Days
Website01/09/202615/09/202614
App05/09/202620/09/202615
Database10/09/202625/09/202615
Dashboard12/09/202628/09/202616
Report15/09/202630/09/202615

Question 7: Calculate Complete Months of Membership

Problem Statement

A company wants to know how many complete months each customer has been a member.

Excel Data

CustomerMembership StartAs-of DateComplete Months
Rahul15/01/202628/09/2026
Priya20/02/202628/09/2026
Amit05/03/202628/09/2026
Neha10/04/202628/09/2026
Arjun25/05/202628/09/2026

Solution

In D2, enter:

=DATEDIF(B2,C2,"M")

Copy down.

Expected Output

CustomerMembership StartAs-of DateComplete Months
Rahul15/01/202628/09/20268
Priya20/02/202628/09/20267
Amit05/03/202628/09/20266
Neha10/04/202628/09/20265
Arjun25/05/202628/09/20264

Question 8: Calculate Experience as a Decimal Number of Years

Problem Statement

Calculate each employee’s experience as an approximate decimal number of years.

For example:

5.75 years

Excel Data

EmployeeJoining DateAs-of DateExperience
Rahul15/06/201828/09/2026
Priya20/02/202028/09/2026
Amit10/01/201928/09/2026
Neha05/12/202128/09/2026
Arjun25/08/201728/09/2026

Solution

In D2, enter:

=YEARFRAC(B2,C2)

Copy down.

To display only two decimal places, use:

=ROUND(YEARFRAC(B2,C2),2)

Expected Output

EmployeeJoining DateAs-of DateExperience
Rahul15/06/201828/09/20268.29
Priya20/02/202028/09/20266.60
Amit10/01/201928/09/20267.71
Neha05/12/202128/09/20264.81
Arjun25/08/201728/09/20269.09

YEARFRAC expresses the date difference as a fraction of a year.


Question 9: Calculate Remaining Days After Complete Years and Months

Problem Statement

Find the number of remaining days after calculating completed years and months.

Excel Data

EmployeeStart DateEnd DateRemaining Days
Rahul15/06/201828/09/2026
Priya20/02/202028/09/2026
Amit10/01/201928/09/2026
Neha05/12/202128/09/2026
Arjun25/08/201728/09/2026

Solution

In D2, enter:

=DATEDIF(B2,C2,"MD")

Copy down.

Expected Output

EmployeeStart DateEnd DateRemaining Days
Rahul15/06/201828/09/202613
Priya20/02/202028/09/20268
Amit10/01/201928/09/202618
Neha05/12/202128/09/202623
Arjun25/08/201728/09/20263

"MD" returns the remaining days after completed months are excluded.


Question 10: Build a Complete Employee Date-Difference Report

Problem Statement

Create an employee report that calculates:

  1. Age in completed years
  2. Company tenure in completed years
  3. Tenure in years and months
  4. Total number of days since joining

Use 28 September 2026 as the calculation date.

Excel Data

EmployeeDate of BirthJoining DateAs-of DateAgeTenureDetailed TenureTotal Days
Rahul15/06/200015/06/201828/09/2026
Priya20/10/200220/02/202028/09/2026
Amit10/01/199810/01/201928/09/2026
Neha05/12/200505/12/202128/09/2026
Arjun25/08/199525/08/201728/09/2026

Solution

In E2, calculate age:

=DATEDIF(B2,D2,"Y")

In F2, calculate completed years of tenure:

=DATEDIF(C2,D2,"Y")

In G2, calculate years and months:

=DATEDIF(C2,D2,"Y")&" years "&DATEDIF(C2,D2,"YM")&" months"

In H2, calculate total days:

=DAYS(D2,C2)

Copy all formulas down.

Expected Output

EmployeeAgeTenureDetailed TenureTotal Days
Rahul2688 years 3 months3027
Priya2366 years 7 months2412
Amit2877 years 8 months2818
Neha2044 years 9 months1758
Arjun3199 years 1 month3313

This combines several date-difference techniques into one practical employee-report exercise.


Key Takeaways

  • DATEDIF is useful for calculating completed years, months, and days between dates.
  • DATEDIF(...,"Y") returns completed years.
  • DATEDIF(...,"M") returns completed months.
  • DATEDIF(...,"D") returns the total number of days.
  • DATEDIF(...,"YM") returns remaining complete months after completed years.
  • DATEDIF(...,"MD") returns remaining days after completed months.
  • DAYS calculates the total number of days between two dates.
  • YEARFRAC expresses a date difference as a fraction of a year.
  • Age calculations can be created using DATEDIF.
  • Employee experience and tenure can be calculated using the same technique.
  • Combining DATEDIF with & lets you create readable results such as 8 years 3 months.
  • Date calculations are useful for employee records, memberships, subscriptions, projects, student records, and customer databases.

FAQs

1. How can I calculate age in Excel?

If the date of birth is in A2 and the as-of date is in B2, use:

=DATEDIF(A2,B2,"Y")

This returns the completed age in years.

2. How can I calculate employee experience in Excel?

If the employee’s joining date is in A2 and the calculation date is in B2, use:

=DATEDIF(A2,B2,"Y")

This returns completed years of experience.

3. How can I calculate tenure in years and months?

Use:

=DATEDIF(A2,B2,"Y")&" years "&DATEDIF(A2,B2,"YM")&" months"

The result can look like:

6 years 7 months

4. What is the difference between DATEDIF and DAYS?

DATEDIF can calculate differences using different units such as years, months, and days.

DAYS specifically returns the number of days between two dates.

5. How can I calculate total days between two dates?

Use:

=DAYS(B2,A2)

Alternatively, Excel dates can also be subtracted:

=B2-A2

6. What does YEARFRAC do?

YEARFRAC calculates the fraction of a year represented by the number of days between two dates.

For example:

=YEARFRAC(A2,B2)

can return a value such as 6.60.

7. Can I calculate age in years, months, and days?

Yes. You can combine three DATEDIF calculations:

=DATEDIF(A2,B2,"Y")&" years "&DATEDIF(A2,B2,"YM")&" months "&DATEDIF(A2,B2,"MD")&" days"

8. What does the “YM” unit mean in DATEDIF?

"YM" returns the number of complete months remaining after completed years have been removed from the date difference.

9. What does the “MD” unit mean in DATEDIF?

"MD" returns the remaining number of days after completed months have been removed.

10. Where are age and tenure calculations used?

They are commonly used in employee databases, HR reports, student records, membership systems, customer databases, subscriptions, project tracking, and other date-based reports.

Written by Shubhranshu Shekhar, who has trained 20000+ students in coding.

Scroll to Top