Updating Project Stage Advancement formula

Jenni N
Jenni N ✭✭
edited 09/25/23 in Formulas and Functions

We have a current formula for Project Stage Advancement, that updates the Project Stage field when all tasks under in the section have been marked 100% and a task in the next section has been marked In Progress.

=IFERROR(INDEX([Task Name]:[Task Name], MATCH(MAX(COLLECT([Start Date]:[Start Date], Status:Status, OR(@cell = "In Progress", @cell = "Complete"), Hierarchy:Hierarchy, =2)), [Stage Helper]:[Stage Helper], 0)), "")

We would like to update our process and formula from checking if every task is complete in the stage to check if the [Advancement Task] column =1 and if that task is 100% complete. The [Advancement Task]=1 and being 100% complete would start the next Project Stage.

Current Process:

image.png

I've tried to update the formula, but all of my attempts have lead to Invalid Argument or Unparsable results. Any help with a new formula would be apprecitated.

Tags:

Best Answer

  • Hamza1
    Hamza1 Employee
    edited 10/03/23 Answer βœ“

    Hi @Jenni N,

    To update your process and formulaΒ from checking if every task is completeΒ in the stage to checkingΒ if the [Advancement Task] column =1 and if that task is 100% complete you can try the following:Β 

    • You’d want to add a helper criteria into yourΒ Advancement TaskΒ formula that looks to see if the current row is a Level 2 hierarchy (Grey)
    • If it is, then check to see if the Advancement Task with a 1 is at 100%.
    • If it is, return the text β€œAdvancement Complete”
    • Then in your original formula you can addΒ [Advancement Task]:[Advancement Task], "Advancement Complete" as a criteria.

    Β The formula would be as follows:

    =IFERROR(INDEX([Task Name]:[Task Name], MATCH(MAX(COLLECT([Start date]:[Start date], Status:Status, OR(@cell = "In Progress", @cell = "Complete"), Hierarchy:Hierarchy, =2, [Advancement Task]:[Advancement Task], "Advancement Complete")), [Stage Helper]:[Stage Helper], 0)), "")

    Β See the following screenshots of the formula for reference:

    Β 

    Screenshot 2023-10-03 at 11.00.07.png Project stage formula.png


    Cheers,

    Hamza

Answers

  • Hamza1
    Hamza1 Employee
    edited 10/03/23 Answer βœ“

    Hi @Jenni N,

    To update your process and formulaΒ from checking if every task is completeΒ in the stage to checkingΒ if the [Advancement Task] column =1 and if that task is 100% complete you can try the following:Β 

    • You’d want to add a helper criteria into yourΒ Advancement TaskΒ formula that looks to see if the current row is a Level 2 hierarchy (Grey)
    • If it is, then check to see if the Advancement Task with a 1 is at 100%.
    • If it is, return the text β€œAdvancement Complete”
    • Then in your original formula you can addΒ [Advancement Task]:[Advancement Task], "Advancement Complete" as a criteria.

    Β The formula would be as follows:

    =IFERROR(INDEX([Task Name]:[Task Name], MATCH(MAX(COLLECT([Start date]:[Start date], Status:Status, OR(@cell = "In Progress", @cell = "Complete"), Hierarchy:Hierarchy, =2, [Advancement Task]:[Advancement Task], "Advancement Complete")), [Stage Helper]:[Stage Helper], 0)), "")

    Β See the following screenshots of the formula for reference:

    Β 

    Screenshot 2023-10-03 at 11.00.07.png Project stage formula.png


    Cheers,

    Hamza

  • Jenni N
    Jenni N ✭✭

    @Hamza1, thank you so much for taking the time to not only respond to my request but also with screenshots. I appreciate your help.

    This has me so close to the outcome I am looking for. I need to project stage to advance to the next Hierarchy 2 when the next checked task is greater than 0% (the status is "In Progress"). i I updated the Advancement task formula to take that into consideration, but Project Stage won't update.

    For example, the project stage is reporting as:

    Smartsheet project Stage 10.4.png

    However, I would expect it to be reporting 07- Design Development because the first task in that section is In Progress.

    project stage 2.png


  • Jenni N
    Jenni N ✭✭

    I figured it out, changing the checked task under 07-Design Development to just 1% wasn't a high enough percentage to get the hierarchy 2 row to change to "In Progress". Once I changed the checked task to 10% the Project Stage updated to 07-Design Development as expected.

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!