Date Calculation
Do you have a start date and an end date?
A1 = start date = 1/1/1986
B1 = end date = 1/1/2007
=B1-A1-SUMPRODUCT(--(MONTH(DATE(ROW(INDIRECT(YEAR(A1)&":"&YEAR(B1))),2 ,29))=2))
I'm sure there's a nice short algorithm for determining leap years based on
year.....but I don't know what it is! I've read it somewhere.
Biff
"LeapYear" wrote in message
...
I would like to calculate the number of days within a span of years without
February 29th. In other words, I don't want to recognize the 29th day of
February within leap years.
|