Hi Nathan!
As Ron has explained you're dealing with two inexactly defined
variables of years and months. You should also have noted that you're
going to get some unusual results.
If you want precision, then your best bet will be to go back to the
base data and do your calculation from the earliest date to the latest
date using years and days OR years weeks and days OR years and
fractions of a year.
All three options will require formulas which one way or another all
come from Chip Pearson's site:
http://www.cpearson.com/excel/topic.htm
With A1 containing earliest date and B1 the latest date:
Years and Days:
=DATEDIF(A1,B1,"y") & " y " &
B1-DATE(YEAR(A1)+DATEDIF(A1,B1,"y"),MONTH(A1),DAY(A1)) & " d"
Returns (e.g.): 55 y 344 d
(Note: DATEDIF approach using "yd" produces errors)
Years weeks and days:
=DATEDIF(A1,B1,"y") & " y " &
INT((B1-DATE(YEAR(A1)+DATEDIF(A1,B1,"y"),MONTH(A1),DAY(A1)))/7) & " w
" & MOD((B1-DATE(YEAR(A1)+DATEDIF(A1,B1,"y"),MONTH(A1),DAY(A1))),7) &
" d"
Returns (e.g.): 55 y 49 w 1 d
(Note: DATEDIF approach using "yd" produces errors)
Years and fractions of a year:
=DATEDIF(A1,B1,"y")+(B1-DATE(YEAR(A1)+DATEDIF(A1,B1,"y"),MONTH(A1),DAY
(A1)))
/(DATE(YEAR(A1)+DATEDIF(A1,B1,"y")+1,MONTH(A1),DAY(A1))-DATE(YEAR(A1)+
DATEDIF(A1,B1,"y"),MONTH(A1),DAY(A1)))
Returns (e.g.): 55.94246575
(Note: YEARFRAC produces errors where dates are 1 or more years apart)
(Note: DATEDIF approach using "yd" produces errors)
All of the above are based upon an algorithm that states that a year
is completed on the anniversary of the earliest date and the residual
calculations relate to the number of days since that anniversary date.
As a result we avoid having to use an average number of days in a
year. With the fraction of a year formula the fraction is calculated
by dividing the number of days since the last anniversary by the
number of days from the last anniversary until the next anniversary.
You can substitute TODAY() B1 in the examples. If you use NOW() you'll
get the same result because the DATEDIF function truncates the time
element in the two dates.
For details of the "drunken cousin" of the Excel function family,
DATEDIF, see:
Chip Pearson:
http://www.cpearson.com/excel/datedif.htm
--
Regards
Norman Harker MVP (Excel)
Sydney, Australia
Holidays and Observances Wednesday 16th July: Argentina (Independence
Day); Brazil (Sao Paulo State Civil Holiday); Isle of Man (Senior Race
Day); Morocco (King Hassan II's Birthday); Palau (Constitution Day).
Celebration: Baha'i (Martyrdom of the Bab).
(e-mail address removed)
Excel and Word Function Lists (Classifications, Syntax and Arguments)
available free to good homes.