Reference Predecessor Cell / INDIRECT Function

09/29/21
Answered - Pending Review

I'm using a formula to automate a status column that updates based on dates and/or a "Complete" checkbox.


The formula has to reference the task before and I've gotten that to work just fine if it's the literal task before.


My problem is that I'd like to adjust the formula so that it references a predecessor task (as indicated in the Predecessor column) rather than just the first task before.


For example, part of the formula contains if "Complete6" is checked. Rather than indicating explicitly in the formula "6", I'd like it to join together "Complete" with the number in the predecessor column. So if the formula is in row 10 and the predecessor is row 5, it changes to "Complete5" accordingly.


I'm thinking a helper of some sort is needed however I can't quite figure that part out. In other sheets, I could simple have a helper column and use the INDIRECT function such as:


INDIRECT("Complete" + [email protected])


TL;DR - I'd like to create the formula similar to INDIRECT.

---


Formula that works for cell/task directly before:


=IF([email protected] = true, "Complete", IF(ISBLANK([email protected]), "", IF([email protected] < TODAY(), "Late", IF(AND(Complete6 = true, [email protected] >= TODAY()), "In Progress", "Not Started"))))


How can I adjust this to essentially become "Complete" + Predecessor Row?

Answers

  • Paul NewcomePaul Newcome ✭✭✭✭✭

    Do all of your rows only contain a single predecessor? Do you have any lag/lead time built in? Do any of them display "SS", "SF", "FF", or "FS"?

    thinkspi.com

  • @Paul Newcome at the moment no, no lag or lead time. and mostly all single predecessors.

    let's assume the simplest first where there is no lag/lead time and no multiple predecessors.

  • Paul NewcomePaul Newcome ✭✭✭✭✭

    Ok. Smartsheet just rolled out a new function SUCCESSORS. I have not had any time to play with it yet, but her is the help article on it:


    This may be part of the solution for you.

    thinkspi.com

  • Good to know. Thanks @Paul Newcome!

  • Paul NewcomePaul Newcome ✭✭✭✭✭

    Happy to help. 👍️


    Let me know if you are able to get something working. I still haven't had a chance to play with it yet.

    thinkspi.com

  • @Paul Newcome so, I feel like I'd still need some helper columns even with this.

    I can't seem to find a use for this function outside of the example it gives, using JOIN. And in that example, its only purpose is to show which rows depend on that row being complete.

    In theory, this is kind of what I'm looking for, but I can't find a practical way to implement it.

    Also, can't find a practical use for SUCCESSORS in general aside from something like JOIN. I can't seem to use it by itself or reference anything within just that.

  • Paul NewcomePaul Newcome ✭✭✭✭✭

    Ok. I should have some time this week to have a play with the function. Things have been crazy, so I haven't had a chance to really experiment with anything. I will get back to you as soon as I figure something out whether it be a solution or that it is just not possible.

    thinkspi.com

  • Paul NewcomePaul Newcome ✭✭✭✭✭

    I think I have a solution for you assuming you are not using lag/lead time, "SS"/"SF"/etc., or elapsed time. It does allow for multiple predecessors. It is a little bit long winded, so here is a link to it:



    thinkspi.com

Sign In or Register to comment.