Is there a way to count the number of CHILDREN in a column?

Hello,

I am trying to count the number of CHILDREN I have on a single sheet in my Primary column in order to output the total number of projects we have. My hierarchy in my in my Primary column is "Project Manager" (PARENT) and then "Project Name" (CHILD). I want to count the total number of CHILDREN in that column, but exclude the PARENT rows in order to COUNT the number of CHILDREN, and hence, the total number of projects. Can this be done?


Thanks,

Jay

Tags:

Best Answer

  • Mike TV
    Mike TV ✭✭✭✭✭
    Answer ✓

    @Jay Riel

    =COUNT(CHILDREN([Primary Column]:[Primary Column]))

    This will count the # of child rows in the Primary Column (if you didn't rename it) with multiple groups of parent/child rows.

Answers

  • Here is a view of what I am asking above. You can see that I have Cells labeled "PM 1, PM 2", etc. Beneath each are CHILDREN rows (I have expanded the bottom one as an example). I am trying to count the total number of those children rows so I can display the total number of projects we have ongoing.

    Any help is appreciated!


  • Sameer Karkhanis
    Sameer Karkhanis ✭✭✭✭✭✭

    =COUNT(CHILDREN(Parent_Task_Name))

  • Mike TV
    Mike TV ✭✭✭✭✭
    Answer ✓

    @Jay Riel

    =COUNT(CHILDREN([Primary Column]:[Primary Column]))

    This will count the # of child rows in the Primary Column (if you didn't rename it) with multiple groups of parent/child rows.

  • Thanks guys - it worked and I am good to go!! Much much appreciated!!🙏