Hi
I have a data set consisting of date of birth and date of death. I have calculated lifespan in days and have got mean and interquartile ranges from that. However, I would like to calculate lifespan based on months and separately years with the result being displayed in days - so I recalculate the mean etc. The premise is that the trend in the quartiles and mean values increase with lower accuracy levels.
I have double checked and the date columns are formatted as date. The equation below is the one for month, I have been trying to modify but haven't got it to work - any advise would be appreciated
=SUM((MONTH(B2:B15)=12)*C2:C15)/SUM(IF(MONTH(B2:B15)=12,1))
where column B is DOB and C is age (lifespan)
I have a data set consisting of date of birth and date of death. I have calculated lifespan in days and have got mean and interquartile ranges from that. However, I would like to calculate lifespan based on months and separately years with the result being displayed in days - so I recalculate the mean etc. The premise is that the trend in the quartiles and mean values increase with lower accuracy levels.
I have double checked and the date columns are formatted as date. The equation below is the one for month, I have been trying to modify but haven't got it to work - any advise would be appreciated
=SUM((MONTH(B2:B15)=12)*C2:C15)/SUM(IF(MONTH(B2:B15)=12,1))
where column B is DOB and C is age (lifespan)