Sheet Summary won't count only rows with no ancestors
Chris Armstrong
✭✭✭
Can't seem to figure this one out. I would like to count rows that have a Status of 'Complete', and are not a child of another row. My formula is this:
=COUNTIFS(Status:Status, "Completed", Status:Status, ANCESTORS() = 0)
What am I missing? It keeps returning just zero. I've tried pointing the second range at the 'Task' column where the parent/child hierarchy is located, but nothing changes. I've also tried just
=COUNTIF(Task:Task, ANCESTORS() = 0)
but that didn't work either.
Appreciate any help. Thanks.
Answers
-
You will need to include a helper column that generates the number of ancestors.
=COUNT(ANCESTORS())
Then you can use
=COUNTIFS(Status:Status, "Completed", [Helper Column]:[Helper Column], 0)
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- 10.7K Get Help
- 63 Global Discussions
- 69 Industry Talk
- 385 Announcements
- 3.5K Ideas & Feature Requests
- 55 Brandfolder
- 125 Just for fun
- 50 Community Job Board
- 464 Show & Tell
- 40 Member Spotlight
- 44 Power Your Process
- 28 Sponsor X
- 234 Events
- 7.3K Forum Archives
Want to practice working with formulas directly in Smartsheet?
Check out the Formula Handbook template!
Check out the Formula Handbook template!