Adding children with 2 conditions

NicoleB
NicoleB ✭✭
edited 09/30/22 in Formulas and Functions

Trying to count if issue type = defect and status is new or in progress


Keep getting an error


=COUNTIFS(CHILDREN([Issue Type]@row), "defect", CHILDREN(Status@row), "New", "In Progress")


Incorrect argument

Answers

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

    Hi @NicoleB

    I hope you're well and safe!

    Try something like this.

    =COUNTIFS(CHILDREN(Status@row), OR(@cell = "New", @cell = "In Progress"), CHILDREN([Issue Type]@row), "defect")

    Did 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 support the Community by marking it Insightful/Vote Up, Awesome, or/and as the accepted answer. 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.

  • NicoleB
    NicoleB ✭✭


    Hi - I am not getting an error any more but it also isn't giving me the correct answer - I updated the formula as well to this as the @cell function did not seem to activate any functionality


    =COUNTIFS(CHILDREN(Status@row), OR(Status@row = "New", Status@row = "In Progress", Status@row = "to do"), CHILDREN([Issue Type]@row), "Requirements")

    should return a value of 1 based on this formula if it is working properly

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!