> Unfortunately I didn't create that formula since I inherited the 1-2-3
> spreadsheet and it had already been created. But, looking at it the
[quoted text clipped - 12 lines]
> CMA's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=32522
> View this thread: http://www.excelforum.com/showthread.php?threadid=523055
The ,3/365 means use 365 days as the basis for days in the year.
@DAYS(start-date;end-date;[basis]) calculates the number of days
between two dates using a specified day-count basis.
Arguments
start-date and end-date are date numbers. If start-date is earlier than
end-date, the result of @DAYS is positive. If start-date is later than
end-date, the result of @DAYS is negative. If start-date and end-date
are the same, the result of @DAYS is 0.
basis is an optional argument that specifies the type of day-count
basis to use. basis is a value from the following table:
basis Day-count basis
0 30/360; default if you omit the argument
1 Actual/actual
2 Actual/360
3 Actual/365
4 European 30/360
Examples
@DAYS(@DATE(93;4;16),@DATE(93;9;25)) = 159, the number of days between
April 16, 1993, and September 25, 1993, based on a 360-day year of
twelve months, each with 30 days.
@DAYS(@DATE(93;4;16),@DATE(93;9;25),1) = 162, the number of days
between April 16, 1993, and September 25, 1993, based on the actual
number of days in the months April through September.
Similar @functions
@DATEDIF calculates the number of years, months, or days between two
dates. @D360 and @DAYS360 calculate the number of days between two
dates, based on a 360-day year. @NETWORKDAYS calculates the number of
days between two dates, excluding weekends and holidays.
Pete_UK - 17 Mar 2006 01:07 GMT
If you have two dates in Excel you can just subtract one from the other
to get the difference in days - this can then be divided by 365 to
convert to years. Hence your formula can be written in one cell as:
=(H13-DATEVALUE("10/01/2005"))/365
This will give you fractions of a year elapsed since the reference date
of 10/01/05 - I've done it this way so that you can easily change the
reference date, but it assumes H13 contains a date in Excel format.
Hope this helps.
Pete
CMA - 20 Mar 2006 13:49 GMT
Pete
Thanks!!! I'm gonna try it in a few mins and see what happens.
Interesting, both of my "helpers" are from the U