Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
jhon doe
 
Posts: n/a
Default How do get the years and days Between two dates

if you had 5/1/2006 and 2/28/2002 how would you get 4.17?
  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default

If 5/1/2006 is in A1 and 2/28/2002 is in A2, then maybe:

=(a1-a2)/365
or
=(a1-a2)/365.25

But if you're trying to find differences between dates, you may want to take a
look at =datedif().

You can find lots of info at Chip Pearson's site:
http://www.cpearson.com/excel/datedif.htm

(=datedif() was only documented in xl2k's help.)

jhon doe wrote:

if you had 5/1/2006 and 2/28/2002 how would you get 4.17?


--

Dave Peterson
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
Function to calculate the number of years, months and days between Vicky Excel Worksheet Functions 2 July 15th 05 04:27 AM
Number of years, months, days between two dates. Bluenose Excel Worksheet Functions 34 June 30th 05 02:18 PM
difference between two dates in years, months and days. ruby Excel Worksheet Functions 2 April 4th 05 04:51 PM
Brainteaser about Days Between Dates Johnny Excel Discussion (Misc queries) 5 April 4th 05 05:09 AM
Where is DateDiff function in Excel 2002 ? Nigel Welch Excel Worksheet Functions 4 March 4th 05 03:18 PM


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