spill-the-beans
Board Regular
- Joined
- Feb 7, 2013
- Messages
- 52
Hello all,
At the moment I have a rather clumsy way of calculating someone's age based on today.
<tbody>
</tbody>
I have 2 questions:
1: Does anyone know how I would be able to have just three columns (B: the date of birth, C: today, and F: the answer) rather than have extra columns D and E in order to work out the answer in F?
2: Is it possible to work out someone's age based on their date of birth and a defined date? So instead of date of birth to today, I could put a different specific date in column C and have another formula to work out how old that person was on that specific date?
If anyone could help, I would much appreciate this.
At the moment I have a rather clumsy way of calculating someone's age based on today.
B | C | D | E | F | |
date of birth | today | year | months | answer | |
<tbody> </tbody> | =TODAY() | =IF(MONTH(TODAY())>MONTH(B2),YEAR(TODAY())-YEAR(B2), IF(AND(MONTH(TODAY())=MONTH(B2),DAY(TODAY())>=DAY(B2)), YEAR(TODAY())-YEAR(B2),(YEAR(TODAY())-YEAR(B2))-1)) | =DATEDIF(B2,C2,"m") | =INT(E2/12)&" years "&MOD(E2,12) & " months" |
<tbody>
</tbody>
I have 2 questions:
1: Does anyone know how I would be able to have just three columns (B: the date of birth, C: today, and F: the answer) rather than have extra columns D and E in order to work out the answer in F?
2: Is it possible to work out someone's age based on their date of birth and a defined date? So instead of date of birth to today, I could put a different specific date in column C and have another formula to work out how old that person was on that specific date?
If anyone could help, I would much appreciate this.