How to use "Countif" with reference to CHILDREN in another sheet

Jef Forward
Jef Forward ✭✭✭✭✭
edited 12/09/19 in Formulas and Functions

Hello - I need some help with the children formula.  I am trying to reference another sheet and only pull info from the children of specific hierarchies.

The only way that I can do it, as of now and with my current skill set, is if I select all of the actual children.  I realize this will be out of formula as soon as more children come into this hierarchy.

"=COUNTIF({FDB Archive Sales - Qualified Lost Range 2}, [Primary Column]19)"

Any help on how to use the CHILDREN function with referencing another sheet would be greatly appreciated!

Thanks, Jef

Tags:

Comments

  • L_123
    L_123 ✭✭✭✭✭✭

    Children doesn't work across sheets regretfully.

     

    Your best bet is to use the COLLECT formula with an identifier in the row.

     

     

  • Paul Newcome
    Paul Newcome ✭✭✭✭✭✭

    I was thinking something similar to Luke's suggestion. You can use a checkbox column on the first sheet with something along the lines of 

     

    =IF(COUNT(CHILDREN()) = 0, 1)

     

    to automatically check the box if the row in question has no children rows underneath of it (lowest hierarchy). 

     

    You can then use a COUNTIFS statement and add in the range and criteria of 

     

    ........., [Helper Column]:[Helper Column], @cell = 1)

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!