Could anyone help me with a formula for totalling and averaging a column of data which is in the format years, months and days. I have used the formula =YEAR(AT2)-YEAR(AB2)-IF(OR(MONTH(AT2)<MONTH(AB2),AND(MONTH(AT2)=MONTH(AB2),DAY(AT2)<DAY(AB2))),1,0)&" years, "&MONTH(AT2)-MONTH(AB2)+IF(AND(MONTH(AT2)
<=MONTH(AB2),DAY(AT2)<DAY(AB2)),11,IF(AND(MONTH(AT2)<MONTH(AB2),DAY(AT2)
>=DAY(AB2)),12,IF(AND(MONTH(AT2)>MONTH(AB2),DAY(AT2)<DAY(AB2)),-1)))&" months,
"&AT2-DATE(YEAR(AT2),MONTH(AT2)-IF(DAY(AT2)<DAY(AB2),1,0),DAY(AB2))&" "
to give me a value in years months and days - which is the time from treatment to last follow up.
I now want to average these values to give an average length of time to last follow up.
Could anyone give me any pointers - I have tried the usual sum all but I don't think it likes the date values
Thank you for your help and guidence
Jenny
Bookmarks