Thread: Calcing DOB
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ian Sheppard Ian Sheppard is offline
external usenet poster
 
Posts: 2
Default Calcing DOB

Hiya,

I have inherited a worksheet that returns 107 when DOB is empty. OK I accept
that 107 is unlikely but as we are all living that bit longer and I'm a bit
anal I would be real grateful if someone could point me in the right
direction to have the age cell blank if DOB is blank

Here's the formula

=IF(MONTH(TODAY())MONTH(C1),YEAR(TODAY())-YEAR(C1),
IF(AND(MONTH(TODAY())=MONTH(C1),DAY(TODAY())=DAY( C1)),
YEAR(TODAY())-YEAR(C1),(YEAR(TODAY())-YEAR(C1))-1))

Ian
--
Ian Sheppard