age at death

I have a spreadsheet for a high school class. If I have "birth date" and a "date of death" columns, it there an easy way to calculate and fill an "age at death" column?


I'm sure this has been asked before, but my searching skills did not find an answer. Thanks for any help you can give.

iMac 27″, macOS 10.12

Posted on Mar 11, 2021 7:06 AM

Reply
Question marked as Top-ranking reply

Posted on Mar 11, 2021 11:20 AM

This calculation is a 'piece of cake' compared with doing it in AppleWorks, where the DATEDIF function did not exist.


The three tables below are duplicates, with only the birth date changed to occur earlier or later in the year than the death date.

The formula shown below the middle table is the one calculating the number of Months. It differs from the ones in column C (years) and column E (days) only in the third argument. The absolute reference operator ( $ ) in the reference to B2 is there only because I was testing several death dates against the same birth date, and needed the formula to hold that row as it was filled


The formulas (fixed location version)::


C3: DATEDIF(B2,B3,"Y")

D3: DATEDIF(B2,B3,"YM")

E3: DATEDIF(B2,B3,"MD")


If calculating a list of birthdates and corresponding death dates, the layout below would be more convenient:


with the formulas revised as below:

D2: DATEDIF(B2,C2,"Y")

E2: DATEDIF(B2,C2,"YM")

F2: DATEDIF(B2,C2,"MD")


More information on the DATEDIF function can be found in the Function Browser, available on cliking any cell and pressing =


Regards,

Barry

2 replies
Question marked as Top-ranking reply

Mar 11, 2021 11:20 AM in response to Ross H

This calculation is a 'piece of cake' compared with doing it in AppleWorks, where the DATEDIF function did not exist.


The three tables below are duplicates, with only the birth date changed to occur earlier or later in the year than the death date.

The formula shown below the middle table is the one calculating the number of Months. It differs from the ones in column C (years) and column E (days) only in the third argument. The absolute reference operator ( $ ) in the reference to B2 is there only because I was testing several death dates against the same birth date, and needed the formula to hold that row as it was filled


The formulas (fixed location version)::


C3: DATEDIF(B2,B3,"Y")

D3: DATEDIF(B2,B3,"YM")

E3: DATEDIF(B2,B3,"MD")


If calculating a list of birthdates and corresponding death dates, the layout below would be more convenient:


with the formulas revised as below:

D2: DATEDIF(B2,C2,"Y")

E2: DATEDIF(B2,C2,"YM")

F2: DATEDIF(B2,C2,"MD")


More information on the DATEDIF function can be found in the Function Browser, available on cliking any cell and pressing =


Regards,

Barry

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

age at death

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.