Suppose your date and Y/N are on Sheet1, in cells A1 & B1, respectively. On the second sheet, insert the formula:
=IF(Sheet1!B1="Y",TODAY()-Sheet1!A1,"")
into the cell where you want the 'Y' value to appear and , insert the formula:
=IF(Sheet1!B1="N",TODAY()-Sheet1!A1,"")
into the cell where you want the 'N' value to appear.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
|