trying to do a simple child/partent comparison

trying to do a simple child/partent comparison.

=if(PARENT([System Number]@row) = ([System Number]@row),"true","false")

what i am complaring is the child (indented) is the same as partent.

can you help.


Answers

  • Mark Cronk
    Mark Cronk ✭✭✭✭✭✭

    Hi @Stephen Hindes ,

    Your formula worked for me. Place it in a column other than your System Number column. If the parent and child are the same it will return "True", otherwise "False". The column the formula is in needs to have a text/number property or a check box.

    Work for you?

    Mark


    I'm grateful for your "Vote Up" or "Insightful". Thank you for contributing to the Community.

  • it works not, but is there a formula that will check if it is the parent?

  • Andrée Starå
    Andrée Starå ✭✭✭✭✭✭

    Hi @Stephen Hindes

    I usually add a so-called helper column called Level with the formula below, and then you can use it to identify parents and use it for conditional formatting and more.

    =IF(COUNT(CHILDREN([Task Name]@row)) > 0, COUNT(ANCESTORS()) + 1)
    

    Would that work/help?

    I hope that helps!

    Be safe and have a fantastic week!

    Best,

    Andrée Starå | Workflow Consultant / CEO @ WORK BOLD

    Did my post(s) help or answer your question or solve your problem? Please help the Community by marking it as the accepted answer/helpful. It will make it easier for others to find a solution or help to answer!

    SMARTSHEET EXPERT CONSULTANT & PARTNER

    Andrée Starå | Workflow Consultant / CEO @ WORK BOLD

    W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35

    Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.