Formula Error at 100% Completion: How to Display 'Closed' Instead?

Options
This discussion was created from comments split from: Automatic Project Phase Formula.

Answers

  • lyss15
    lyss15 ✭✭

    Hello,

    I have the following formula is working until the whole project is at 100% then we get #INVALID VALUE

    what can I change for one project is total 100% to show Closed

    =INDEX(COLLECT(Task:Task, [% Complete]:[% Complete], AND(@cell <= 0.99, @cell >= 0 ), Hierarchy:Hierarchy, 1), 1)

    image.png image.png
  • SSFeatures
    SSFeatures ✭✭✭✭✭✭

    Hi,

    Try wrapping your formula in an IFERROR. If your formula gives you an #INVALID VALUE error then you know that the project is 100% completed, so then display "Closed".

    =IFERROR(
      INDEX(COLLECT(Task:Task, [% Complete]:[% Complete], AND(@cell <= 0.99, @cell >= 0 ), Hierarchy:Hierarchy, 1), 1),
      "Closed"
    )
    

    Hope this helps!

    Nathan Braun (Founder of SSFeatures) (nathan@ssfeatures.com) (LinkedIn)

    SSFeatures makes Smartsheet way easier to use and it saves you hours of work every week. It adds essential features into Smartsheet to save you time. For example: — Auto Sorting — Sorting with Filters — Report PDF Generation — Copy and Paste Conditional Formats — Copy and Paste Automation Workflows — Column Manager — and so many more.

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!