If Then function needed

I have a column that is "Days to Complete" that is calculated by =ABS((NETWORKDAY([Due Date]1, [Todays Date]1)))

But I have another column that is called "Status" which is a drop down list . If I set this column to "Complete" I want the column "Days to complete" to be set to "0" or blank.

Best Answer

  • L_123
    L_123 ✭✭✭✭✭✭
    Answer ✓


    Return blank on complete:

    =if(Status@row = "Complete","",NETWORKDAY([Due Date]@row, today()))

    Return zero on complete:

    =if(Status@row = "Complete",0,NETWORKDAY([Due Date]@row, today()))


    Give that a try and let me know if it works for you.

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!