Calculate Tenure of an employee in the orgnanisation

sssanmeet

New Member
Joined
Jun 27, 2017
Messages
2
Hi,

I need to calculate the tenure of employees in my org, i wrote this code however I keep getting an #value error, can someone help me?

=DATEDIF(C2,TODAY(),"y") & " years, " & DATEDIF(C2,TODAY(),"ym") & " months "

C2 is the cell where I have the employees joining date.
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).

oldbrewer

Well-known Member
Joined
Apr 11, 2010
Messages
11,005
joinedtenure daysyearsremdaysremmonthsremdaysstated in plain englishtoday=27/06/2017
03/02/20083432.009144.754239 years 4 months 23 days
04/09/20131392.003296.259223 years 9 months 22 days

<colgroup><col span="2"><col span="2"><col><col><col><col><col></colgroup><tbody>
</tbody>
 
Upvote 0

Logit

Well-known Member
Joined
Aug 31, 2016
Messages
4,579
.
Code:
=DATEDIF(C2,TODAY(),"y")&" years, "& DATEDIF(C2,TODAY(),"ym") &" month(s), "& DATEDIF(C2,TODAY(),"md")&" Days"
 
Upvote 0

Forum statistics

Threads
1,186,986
Messages
5,960,964
Members
438,504
Latest member
KristofGoossens

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top