Formulas and Functions

Formulas and Functions

Ask for help with your formula and find examples of how others use formulas and functions to solve a similar problem.

Total the duration of all tasks

This discussion was created from comments split from: Does not contain this OR that.

Answers

  • I have a similar issue.

    I want to total the duration of all tasks based on Work Type if they are not complete.

    I have a duration column, Work Type column, state column.

    The issue I am hung up on is that the Work Type column could have multiple types sometimes.

    Doubt I am close but here is what I have:

    =SUMIFS(Duration:Duration, Work Type:Work Type, (CONTAINS("SQL")), State:State, NOT(CONTAINS("Complete")))

  • Community Champion

    You're actually not that far off. There were a few unnecessary closing parentheses. Does this work for you?

    =SUMIFS(Duration:Duration, Work Type:Work Type, CONTAINS("SQL", @cell), State:State, NOT(CONTAINS("Complete", @cell)))


Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!

Trending in Formulas and Functions