If you don't like the conditional formatting approach you can try the following formula in cell I10:
=IF(($G10-DATEDIF($E10,EOMONTH(I$7,0),"d")<0)*(ISNUMBER(H10) ),"Delete Line",IF(($G10-DATEDIF($E10,EOMONTH(I$7,0),"d")<0)*(ISTEXT(H10)), "",($G10-DATEDIF($E10,EOMONTH(I$7,0),"d"))*$H10))
and copy as required.
|