Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Formula for calcing dates | Excel Worksheet Functions |