Forum Discussion

Mps1979's avatar
Mps1979
Copper Contributor
Jul 11, 2021
Solved

Excel Formula with multiple IF conditions

Need help on the below to combine multiple conditions. 

 

i5<g5Completed on track
i5>g5Completed delayed
i5=blankWIP Ontrack

g5<today

i5=blank 

WIP delayed

 

managed to get till the 3rd criteria, but the last one has both 3rd & 4th combined, which is not picking up. 

 

=IF(ISBLANK(I5),"WIP-OnTrack",IF(I5<=G5,"Completed-OnTrack",IF(I5>G5,"Completed-Delayed",IF(OR(I5="",G5<TODAY()),"WIP-Delayed",""))))

 

Please help 

 

  • Mps1979 

    Use

     

    =IF(I5="", IF(G5<TODAY(), "WIP Delayed", "WIP On Track"), IF(I5<=G5, "Completed On Track", "Completed Delayed"))

5 Replies

  • Mps1979 

    Use

     

    =IF(I5="", IF(G5<TODAY(), "WIP Delayed", "WIP On Track"), IF(I5<=G5, "Completed On Track", "Completed Delayed"))

    • Mps1979's avatar
      Mps1979
      Copper Contributor

      HansVogelaar 

       

      Need one more favor, by adding an additional condition to the expression you shared. 

       

      that is, if G5 > i5, 'Completed Ahead Time'.  This is to check if the task was completed much ahead the Planned task date. We have added Completed OnTrack, which could be marked if g5=i5. 

       

       

       

      =IF(I5="", IF(G5<TODAY(), "WIP Delayed", "WIP On Track"), IF(I5<=G5, "Completed On Track", "Completed Delayed"))

       

      • Mps1979 

        That would be

         

        =IF(I5="", IF(G5<TODAY(), "WIP Delayed", "WIP On Track"), IF(I5<G5, "Completed Ahead Of Time", IF(I5=G5, "Completed On Track", "Completed Delayed")))

         

        If you have Excel 2019 or Excel in Microsoft 365, you can also use

         

        =IF(I5="", IF(G5<TODAY(), "WIP Delayed", "WIP On Track"), IFS(I5<G5, "Completed Ahead Of Time", I5=G5, "Completed On Track", I5>G5, "Completed Delayed"))

    • Mps1979's avatar
      Mps1979
      Copper Contributor
      Thank you so much. Didn't realize that it was such a easy code, and i went around the world 🙂
      Thank you once again.

Resources