Please do not multipost.
=IF(P2="","",(ROUNDDOWN(YEARFRAC(P2,TODAY(),1),0)))
Your formula is OK for just years but if you wanted a bit more precision the
undocumented DATEDIF function might be used.
See Chip Pearson's site for more on that.
http://www.cpearson.com/excel/datedif.aspx
Gord Dibben MS Excel MVP
On Wed, 24 Nov 2010 15:19:22 -0000, "news.eternal-september.org"
<(E-Mail Removed)> wrote:
>I've used the following formula to calculate a person's current age in years
>based on a previously entered date of birth:
>
>=ROUNDDOWN(YEARFRAC(P2, TODAY(), 1), 0)
>
>However, if I haven't entered any data in the date of birth column, the
>result cell shows the age "110", which throws out other calculations. Is
>there any way to tell Excel not to enter any data if the date of birth is
>blank?
>Many thanks