ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Formula that will represent years & months worked (https://www.excelbanter.com/excel-discussion-misc-queries/42834-formula-will-represent-years-months-worked.html)

Pam

Formula that will represent years & months worked
 
I am trying to figure out a formula that will calculate how many years &
months an employee has worked for the company. I found a formula that will
give me the years, but not years & months.

Dave Peterson

Take a look at Chip Pearson's notes at:
http://www.cpearson.com/excel/datedif.htm

Pam wrote:

I am trying to figure out a formula that will calculate how many years &
months an employee has worked for the company. I found a formula that will
give me the years, but not years & months.


--

Dave Peterson

Mike

=today()-hiredate
Then format that cell as Special YY:MM

"Pam" wrote:

I am trying to figure out a formula that will calculate how many years &
months an employee has worked for the company. I found a formula that will
give me the years, but not years & months.


Pam

I followed Mike's instruction =today()-hiredate, however I do not have YY:MM
under Special or Custom formatting, how do I obtain this selection?

"Pam" wrote:

I am trying to figure out a formula that will calculate how many years &
months an employee has worked for the company. I found a formula that will
give me the years, but not years & months.


Ron Rosenfeld

On Mon, 29 Aug 2005 10:12:05 -0700, Pam wrote:

I am trying to figure out a formula that will calculate how many years &
months an employee has worked for the company. I found a formula that will
give me the years, but not years & months.


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


--ron

Dave Peterson

Select Custom and just type it in the Type: box.


Pam wrote:

I followed Mike's instruction =today()-hiredate, however I do not have YY:MM
under Special or Custom formatting, how do I obtain this selection?

"Pam" wrote:

I am trying to figure out a formula that will calculate how many years &
months an employee has worked for the company. I found a formula that will
give me the years, but not years & months.


--

Dave Peterson


All times are GMT +1. The time now is 05:26 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com