Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 252
Default formula to caluclate the # of years and months between two dates

Look at the DATEDIF function. it will look something like this

=DATEDIF(A1,A2,"Y")
results in whole years between two dates.

=DATEDIF(A1,A2,"YM")
results in whole months between two dates (ignores years)

for example...
A1=6/11/2005
A2=11/30/2006
A3=DATEDIF(A1,A2,"Y") - 1
A4=DATEDIF(A1,A2,"YM") - 5
A5=DATEDIF(A1,A2,"Y")&" years, and "&DATEDIF(A1,A2,"YM")&" months." - 1
years, and 5 months.

"Christyepd" wrote:

I am setting up the employees lenths of service from the date hired until
present date.

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
formula to caluclate the # of years and months between two dates Alok Excel Worksheet Functions 0 November 30th 06 05:19 PM
FORMULA FOR CALCULATING YEARS, DAYS, & MONTHS BETWEEN SEVERAL DATE Sam Excel Discussion (Misc queries) 3 June 28th 06 10:34 PM
Formula that will represent years & months worked Pam Excel Discussion (Misc queries) 5 August 29th 05 11:20 PM
how to calculate years, months by using one formula srinivasa rao Charts and Charting in Excel 2 April 15th 05 08:28 AM
How do I display months and years between two dates JSmith Excel Discussion (Misc queries) 1 November 30th 04 04:41 PM


All times are GMT +1. The time now is 06:23 PM.

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

About Us

"It's about Microsoft Excel"