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

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
[TABLE="width: 938"]
<colgroup><col span="2"><col span="2"><col><col><col><col><col></colgroup><tbody>[TR]
[TD]joined[/TD]
[TD]tenure days[/TD]
[TD]years[/TD]
[TD]remdays[/TD]
[TD]remmonths[/TD]
[TD]remdays[/TD]
[TD]stated in plain english[/TD]
[TD]today=[/TD]
[TD]27/06/2017[/TD]
[/TR]
[TR]
[TD]03/02/2008[/TD]
[TD]3432.00[/TD]
[TD]9[/TD]
[TD]144.75[/TD]
[TD]4[/TD]
[TD]23[/TD]
[TD]9 years 4 months 23 days[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]04/09/2013[/TD]
[TD]1392.00[/TD]
[TD]3[/TD]
[TD]296.25[/TD]
[TD]9[/TD]
[TD]22[/TD]
[TD]3 years 9 months 22 days[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
.
Code:
=DATEDIF(C2,TODAY(),"y")&" years, "& DATEDIF(C2,TODAY(),"ym") &" month(s), "& DATEDIF(C2,TODAY(),"md")&" Days"
 
Upvote 0
You are welcome. Glad to help.
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,917
Members
452,366
Latest member
TePunaBloke

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
Back
Top