How do I count the number of parents in a column?
I want to count the number of parents in a column, I am able to count the number of children and descendants using, =COUNT(CHILDREN([Primary Column]:[Primary Column])) and =COUNT(DESCENDANTS([Primary Column]:[Primary Column])). When I try to do the same to count the parents, =COUNT(PARENT([Primary Column]:[Primary Column])), I get an error. Any suggestions?
Answers
-
Are you able to provide a screenshot with some sample data and indicate exactly which rows you are referring to?
-
Hi,
I hope you're well and safe!
You could try adding a so-called helper column.Try something like this. (Update the column names to match your own)
=IF(COUNT(CHILDREN([Task Name]@row)) > 0, COUNT(ANCESTORS()) + 1)
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.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.8K Get Help
- 434 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!