How to write formula to pull current active phase or stage of the project with specific levels?

I found a formula on another post that allows me to pull the most current or active stage of the project with the least percentage done, higher than 0% and lower than 99%, but am only wanting to pull the task below the Phase and sub-phase/stage. I've created a helper column for levels and need to only index the task that are level greater than 2.

https://community.smartsheet.com/discussion/75444/automatic-project-phase-formula

The formula above works well, however I am needing to only pull phases with a level greater than 2. I keep trying to insert that criteria in the above formula and it returns errors.

I am using formula below:

=INDEX([task name]:[task name], MATCH(MAX(COLLECT([% Complete]:[% Complete], [% Complete]:[% Complete], AND(@cell < 0.99, @cell > 0))), [% Complete]:[% Complete], 0))

Is anyone able to offer any suggestions? Thank you!



Best Answer

  • Paul Newcome
    Paul Newcome ✭✭✭✭✭✭
    Answer ✓

    You are probably going to need an INDEX/COLLECT instead of an INDEX/MATCH. It will most likely end up looking something like this...

    =INDEX(COLLECT([task name]:[task name], [% Complete]:[% Complete], AND(@cell < 0.99, @cell > 0), Level:Level, @cell > 2), 1)

    Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!

    CERTIFIED SMARTSHEET PLATINUM PARTNER

    10xViz.com

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!