How to Calculate the Tenure for Staff in Months or Years in Excel

For HR assistant or department secretary, calculate the tenure for staff in their company or department is one normal task in their daily work, so acquire the skill of calculating tenure in excel is necessary. This article will provide a simple formula to calculate tenure, the final value can be displayed in months or years depends on your demands.

Prepare a simple table. Suppose some of the list already quit. Some are still working for this company.

Calculate the Tenure 1

Calculate the Tenure for Staff in Months


To calculate the tenure for a staff, we can use DATEDIF function. It is used for returning the Years/Months/Dates between two dates. Please see the general formula for DATEDIF function.

=DATEDIF(start_date,end_date,unit)

Now let’s start to calculate the tenure in months.

Step 1: in C2, enter the formula =DATEDIF(B2,NOW(),”M”). In this formula, B2 is start date, as there is no end date, so we enter NOW() to calculate the months between entry date till now, M is month unit.

Calculate the Tenure 2

Step 2: Click Enter to get result.

Calculate the Tenure 3

Step 3: If there is end date parameter, for example, for ID 01036, leave date is 5/14/2010, we can enter the formula =DATEDIF(B4,C4,”M”) .

Calculate the Tenure 4

Step 4: Click Enter to get result.

Calculate the Tenure 5

Calculate the Tenure for Staff in Years


We just need to change the unit from M to Y.

Step 1: In D2, enter the formula =DATEDIF(B2,NOW(),”Y”). Then click Enter.

Calculate the Tenure 6

Step 2: In D4, enter the formula =DATEDIF(B4,C4,”Y”). Then click Enter.

Calculate the Tenure 7

Calculate the Tenure for Staff in Years and Months


If we want to show the Tenure like XX years and XX months, we need to update the formula. Please be aware that when calculating Months, Years of the dates should be ignored.

Step 1: In D2, enter the formula =DATEDIF(B2,NOW(),”Y”)&” years, “&DATEDIF(B2,NOW(),”YM”)&” months “. Then click Enter. Verify that 25 years and 3 months are displayed.

Calculate the Tenure 8

Step 2: In D4, enter the formula =DATEDIF(B4,C4,”y”)&” years, “&DATEDIF(B4,C4,”ym”)&” months “.

Calculate the Tenure 9

Through above steps, we can find that the tenure is more accurate if we set smaller unit in formula. So, you can calculate tenure by Years and Months, Months and Dates or Years and Dates per your demands accordingly.

Video: Calculate the Tenure for Staff in Months or Years in Excel

SAMPLE Files

Below are sample files in Microsoft Excel that you can download for reference if you wish.

Related Functions


  • Excel DATEDIF function
    The Excel DATEDIF function returns the number of days, months, or years between tow dates.The syntax of the DATEDIF function is as below:=DATEDIF (start_date,end_date,unit)…
Related Posts

Excel Array Construction

This article will talk about how to create one-dimensional array or two-dimensional array by using some functions in Excel. When using array formulas in Excel, we often use functions to construct arrays. Generate Array with ROW or COLUMN Functions Array ...

Excel Array Operation

We have all heard of arrays. Depending on the dimensionality, they are divided into one-dimensional arrays and two-dimensional arrays. Depending on the data type, they can also be divided into numeric arrays, logical arrays, and so on. The concatenation and ...

Excel Array Matrix Operation

In Excel, we have a built-in function used to perform matrix operations. It is the MMULT function. This function accepts two arrays as parameters and returns the product of the two arrays. However, this function has a prerequisite that the ...

A1 Reference Style and R1C2 Reference in Excel

In Excel, there are two reference styles. A1 reference style and R1C2 reference style. These two reference styles can help us find the cell by the cell address. Some functions return these two addresses through the argument settings. A1 Reference ...

Excel Structure Reference

This tutorial introduces the basics of structured referencing in Excel and shows you how to use structured referencing in a table with examples. When you use formulas that reference tables, whether the formula references a part of the table or ...

Sidebar