Using completion percentage and a if statement.

Hello, I am trying to do a if statement to subtract a value if my completion percentage is 100%. Here is my formula.

=SUM(Duration5, Duration7, Duration10, Duration12, Duration15, Duration17, Duration20, Duration22, Duration25, Duration27, Duration30, Duration32, Duration35, Duration37, Duration40, Duration42) - IF([% Complete]5 = 1, 1) - IF([% Complete]10 = 1, 1) - IF([% Complete]15 = 1, 1) - IF([% Complete]20 = 1, 1) - IF([% Complete]25 = 1, 1) - IF([% Complete]30 = 1, 1) - IF([% Complete]35 = 1, 1) - IF([% Complete]40 = 1, 1) - IF([% Complete]7 = 1, 3) - IF([% Complete]12 = 1, 3) - IF([% Complete]17 = 1, 3) - IF([% Complete]22 = 1, 3) - IF([% Complete]27 = 1, 3) - IF([% Complete]32 = 1, 3) - IF([% Complete]37 = 1, 3) - IF([% Complete]42 = 1, 3)

Is there a easier way to input this such as if any of the selected cells =1 then subtract 1 or is this the only way to do this calculation. I have other line items that there are a lot more of and it would eat a lot of time to manually type it in this way.


Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!