View Single Post
  #8   Report Post  
Posted to microsoft.public.excel.misc
Pete_UK
 
Posts: n/a
Default Formula to compute someone's age if you enter their B-day

Dates are stored in Excel as the number of days elapsed since some
reference date - the date is 31st December 1899. So, if C5 is empty,
there are 106 years between the reference date and today. To guard
against this you could have something like:

=IF(C5=0,0,DATEDIF(C5,NOW(),"y"))

Hope this helps.

Pete