Forum Discussion

  • Hussein_Mohamed 

    Option 1: in all versions of Excel, enter the formula

     

    =IF(OR(AC$1<$K2,AC$1>$L2),"",$P2*(1+$O2)^DATEDIF($K2,AC$1,"y"))

     

    in AC2, then fill to the right.

     

    Option 2: for Excel in Microsoft 365 or Office 2021 only, enter the formula

     

    =IF((AC$1:FG$1<$K2)+(AC$1:FG$1>$L2),"",$P2*(1+$O2)^DATEDIF($K2,AC$1:FG$1,"y"))

     

    in AC2. It will automatically spill to the right.

Resources