Can someone help with the following function?

=IF(OR(COUNTIF(CHILDREN(), 0) > 0, 0, 1)), IF(OR(Status@row = "Completed", 1, IF(Status@row = "Executed", 1, IF(Status@row = "Secured", 1))))


They work separately, I tried to add in the "OR" to have a column function.


Answers

  • Kevin Smith
    Kevin Smith ✭✭✭✭✭✭

    Hi,

    I would like to help if I can get some additional information.

    In looking at your example, it looks like maybe you want to check the box in CMPLT if the status is Completed, Executed, OR Secured, OR if the task has any children. Is that correct?

    The IF statement doesn't have a true false at the end but it appears to be the CMPLT checkbox column you are wanting to use the formula in.

    I hope I can help, thank you.

    Thank you,

    Kevin

    Happy to help if I can.

    ☑️ Are you satisfied with my answer to your question? Please help the Community by marking it as an ( Accepted Answer)

  • @Kevin Smith


    If Executed, Completed or Secured drop down is chosen, then CMPLT check box it is checked.

    If all child check boxes are checked, then parent is checked.

    I was hoping to combine the 2 functions, if possible, in order to create a column function.

  • Kevin Smith
    Kevin Smith ✭✭✭✭✭✭

    Thank you, I get it.

    I am not sure how to do this without a helper columns. Some people on here are really great at formulas, it takes me too much time sometimes to be that elegant so I tend to use helper columns. Quick and Easy. :)


    I hope that helps, I would not be surprised if someone can do it all in one formula without helper columns.

    Thank you,

    Kevin

    Happy to help if I can.

    ☑️ Are you satisfied with my answer to your question? Please help the Community by marking it as an ( Accepted Answer)

  • Kevin Smith
    Kevin Smith ✭✭✭✭✭✭

    Sorry, the formula for Col17 is

    =COUNTIF(CHILDREN(CHKBX@row), 1)

    and the one in HAS CHILDREN is

    =COUNT(CHILDREN([Task Name]@row))

    Thank you,

    Kevin

    Happy to help if I can.

    ☑️ Are you satisfied with my answer to your question? Please help the Community by marking it as an ( Accepted Answer)

  • Paul Newcome
    Paul Newcome ✭✭✭✭✭✭

    Try this:

    =IF(OR(COUNTIFS(CHILDREN(), @cell <> 1) = 0, Status@row = "Completed", Status@row = "Executed", Status@row = "Secured"), 1)

  • @Paul Newcome

    Tried it, but made all check boxes checked

  • Paul Newcome
    Paul Newcome ✭✭✭✭✭✭

    Ok. How about this one...


    =IF(OR(AND(COUNT(CHILDREN([Project Name / Address]@row)) > 0, COUNTIFS(CHILDREN(), @cell <> 1) = 0), Status@row = "Completed", Status@row = "Executed", Status@row = "Secured"), 1)

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!