Hello, I am trying to calculate the exact age of a person, but using the formula:
FLOOR(HOUR(TODAY()-[DOB])/365/24)&" yr "&
FLOOR(MOD((HOUR(TODAY()-[DOB])/24),365)*12/365) & " mo"
the result it is not exact.
I thought about doing an IF loop like this:
IF(
MONTH(TODAY())>MONTH(DOB]),
YEAR(TODAY())-YEAR([DOB]),
IF(MONTH(TODAY())<MONTH(DOB]),
(YEAR(TODAY())-YEAR([DOB]))-1,
IF(DAY(TODAY())>=DAY(DOB]),
YEAR(TODAY())-YEAR([DOB]),
(YEAR(TODAY())-YEAR([DOB]))-1,
)
)
)
but it doesn’t calculate it exactly either.
Any suggestion?
Thanks