Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 66
Default Can you calculate the number of years between two dates in Excel 0

Can you calculate the number of years between two dates in Excel 2003?

Ie. What is the total number of years between 9/21/1992 and 1/10/09?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7,247
Default Can you calculate the number of years between two dates in Excel 0

=DATEDIF(StartDate,EndDate,"y")

See http://www.cpearson.com/Excel/datedif.aspx for details about
DATEDIF.

Cordially,
Chip Pearson
Microsoft MVP
Excel Product Group
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)


On Wed, 3 Dec 2008 14:48:12 -0800, Christina
wrote:

Can you calculate the number of years between two dates in Excel 2003?

Ie. What is the total number of years between 9/21/1992 and 1/10/09?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Can you calculate the number of years between two dates in Excel 0

I assume you want full calendar years:

A1 = start date
B1 = end date

=DATEDIF(A1,B1,"y")

--
Biff
Microsoft Excel MVP


"Christina" wrote in message
...
Can you calculate the number of years between two dates in Excel 2003?

Ie. What is the total number of years between 9/21/1992 and 1/10/09?



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default Can you calculate the number of years between two dates in Excel 0

Hi,

As a best practise, please ensure that the year is always 4 digits.

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Christina" wrote in message
...
Can you calculate the number of years between two dates in Excel 2003?

Ie. What is the total number of years between 9/21/1992 and 1/10/09?


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,346
Default Can you calculate the number of years between two dates in Excel 0

Hi,

You can also use

=YEARFRAC(A1,A2)

Where A1 is a start date and A2 is the end date. Note this will return
something like 10.234 so if you don't want/need the fractional part you can
modify this to read

=TRUNC(YEARFRAC(D9,D10))

--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"Christina" wrote:

Can you calculate the number of years between two dates in Excel 2003?

Ie. What is the total number of years between 9/21/1992 and 1/10/09?

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
how do I calculate a difference in dates in years and months? Dan Cotts Excel Discussion (Misc queries) 20 October 30th 08 01:29 PM
how do I calculate years between two dates FC Excel Discussion (Misc queries) 2 February 8th 07 04:43 AM
How do I calculate the number of years between 2 dates Leisl Excel Discussion (Misc queries) 3 December 27th 06 01:16 PM
How do I subtract dates to get a number in years or years & month jude Excel Discussion (Misc queries) 2 August 25th 06 08:02 PM
HOW TO CALCULATE THE NUMBER OF YEARS BETWEEN TWO DATES RAMON Excel Worksheet Functions 2 February 21st 05 01:27 AM


All times are GMT +1. The time now is 02:34 AM.

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"