Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Calculating Years and Months Between Dates

I'm doing some analysis regarding length of employees service but can't find
any thread relating to a formula that may help do this specifically.

Example

Employee A started working on 01/01/2000 and resigned on 01/02/2009

The start date is in e.g. cell A1 and the resignation date is in e.g. cell A2

Can someone give me a formula that will basically deducted one date from the
other date and tell me how many years and months they worked for us? e.g. the
answer I would like to see is 9 (for the years) and 1 (1 for the month).

If you can, please be very simplistic with your explanation as I don't know
excel very well and tend to stumble around with any formulas I do use.

Thanks in advance
--
Tassy
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,480
Default Calculating Years and Months Between Dates

Hi Tassy
Try
=Datedif(A1,A2,"y")&" years "&Datedif(A1,A2,"ym")&" months"

Datedif is an undocumented function in Excel, but more information has been
provided by Chip Pearson
http://www.cpearson.com/Excel/datedif.aspx
--
Regards
Roger Govier

"Tassy Anne" wrote in message
...
I'm doing some analysis regarding length of employees service but can't
find
any thread relating to a formula that may help do this specifically.

Example

Employee A started working on 01/01/2000 and resigned on 01/02/2009

The start date is in e.g. cell A1 and the resignation date is in e.g. cell
A2

Can someone give me a formula that will basically deducted one date from
the
other date and tell me how many years and months they worked for us? e.g.
the
answer I would like to see is 9 (for the years) and 1 (1 for the month).

If you can, please be very simplistic with your explanation as I don't
know
excel very well and tend to stumble around with any formulas I do use.

Thanks in advance
--
Tassy


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 694
Default Calculating Years and Months Between Dates

Hi Tassy Anne
Try this one, you can remove the day and keep Year&Month only if you like.
=DATEDIF(A1,A2,"y")&" Years, "&DATEDIF(A1,A2,"ym")&" Months and
"&DATEDIF(A1,A2,"md")&" Days"
HTH
John
"Tassy Anne" wrote in message
...
I'm doing some analysis regarding length of employees service but can't
find
any thread relating to a formula that may help do this specifically.

Example

Employee A started working on 01/01/2000 and resigned on 01/02/2009

The start date is in e.g. cell A1 and the resignation date is in e.g. cell
A2

Can someone give me a formula that will basically deducted one date from
the
other date and tell me how many years and months they worked for us? e.g.
the
answer I would like to see is 9 (for the years) and 1 (1 for the month).

If you can, please be very simplistic with your explanation as I don't
know
excel very well and tend to stumble around with any formulas I do use.

Thanks in advance
--
Tassy


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Summarizing Dates into Months and Years Yuanhang Excel Discussion (Misc queries) 8 February 19th 08 11:13 PM
problem of calculating years months and days naughtyboy Excel Discussion (Misc queries) 1 August 7th 06 11:22 AM
FORMULA FOR CALCULATING YEARS, DAYS, & MONTHS BETWEEN SEVERAL DATE Sam Excel Discussion (Misc queries) 3 June 28th 06 10:34 PM
calculating years/months with YEARFRAC? Stilla Excel Worksheet Functions 4 February 21st 06 07:06 PM
Dates - Months & Years Rick Excel Worksheet Functions 5 November 23rd 05 04:11 PM


All times are GMT +1. The time now is 10:56 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"