Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Calculate years between two dates more precisely

How do I set up a formula so I would get this answer:

01.01.2003 - 02.01.2001 = 1 year (not 2 because of the second date)

Jørn Johansen


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 70
Default Calculate years between two dates more precisely

=DATEDIF("02/01/2001","01/01/2003","y")

Further details are he
http://www.cpearson.com/excel/datedif.htm

Regards

Geoff


"Jørn Johansen" wrote in message
...
How do I set up a formula so I would get this answer:

01.01.2003 - 02.01.2001 = 1 year (not 2 because of the second date)

Jørn Johansen




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,651
Default Calculate years between two dates more precisely

On Thu, 30 Oct 2003 21:56:04 +0100, "Jørn Johansen" wrote:

How do I set up a formula so I would get this answer:

01.01.2003 - 02.01.2001 = 1 year (not 2 because of the second date)

Jørn Johansen


Look at the undocumented DATEDIFF function:

=DATEDIF("2/1/2001","1/1/2003","y") -- 1

See http://www.cpearson.com/excel.htm


--ron
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Calculate years between two dates more precisely

Thanks. I have tried, but it does not give an answer at all! I use Excel
2002, norwegian language.



"GB" skrev i melding
...
=DATEDIF("02/01/2001","01/01/2003","y")

Further details are he
http://www.cpearson.com/excel/datedif.htm

Regards

Geoff


"Jørn Johansen" wrote in message
...
How do I set up a formula so I would get this answer:

01.01.2003 - 02.01.2001 = 1 year (not 2 because of the second date)

Jørn Johansen






  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 493
Default Calculate years between two dates more precisely

Here's a macro by Harald Staff which might help you translate:

http://google.com/groups?threadm=865...o-nntp.eunet.n
o

(Watch linewrap - the URL ends in .no)


In article ,
"Jørn Johansen" wrote:

Thanks. I have tried, but it does not give an answer at all! I use Excel
2002, norwegian language.

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 TO CALCULATE THE NUMBER OF YEARS BETWEEN TWO DATES RAMON Excel Worksheet Functions 2 February 21st 05 01:27 AM
Calculate Years/Months Between Dates and then Average Missy Excel Discussion (Misc queries) 3 February 12th 05 04:19 AM


All times are GMT +1. The time now is 10:58 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"