Using a time format to represent presents enormous, if not insurmountable
problems. I would suggest that you divide the years and months in two
cells. Thus the chronological age may be in C2& D2 as 12 and 7 respectively
meaning an age of 12 years and 7 months. The reading age may be in F2 & G2
as 11 & 6. The formula to work out the difference in ages is:
=DATEDIF(MIN(DATE(C2,D2,1),DATE(F2,G2,1)),MAX(DATE(C2,D2,1),DATE(F2,G2,1)),"y")&"
Years
"&DATEDIF(MIN(DATE(C2,D2,1),DATE(F2,G2,1)),MAX(DATE(C2,D2,1),DATE(F2,G2,1)),"ym")&"
Months"&IF(DATE(F2,G2,1)>DATE(C2,D2,1)," In Advance"," Behind")
If you want to prevent it showing 1Years 1 Months instead of 1 Year 1 Month
then use:
=DATEDIF(MIN(DATE(C2,D2,1),DATE(F2,G2,1)),MAX(DATE(C2,D2,1),DATE(F2,G2,1)),"y")&"
Year"&IF(DATEDIF(MIN(DATE(C2,D2,1),DATE(F2,G2,1)),MAX(DATE(C2,D2,1),DATE(F2,G2,1)),"y")<>1,"s
","
")&DATEDIF(MIN(DATE(C2,D2,1),DATE(F2,G2,1)),MAX(DATE(C2,D2,1),DATE(F2,G2,1)),"ym")&"
Month"&IF(DATEDIF(MIN(DATE(C2,D2,1),DATE(F2,G2,1)),MAX(DATE(C2,D2,1),DATE(F2,G2,1)),"ym")<>1,"s
"," ")&IF(DATE(F2,G2,1)>DATE(C2,D2,1)," In Advance"," Behind")
--
HTH
Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings
(e-mail address removed)
Replace @mailinator.com with @tiscali.co.uk