% Complete Children tasks on several hierarchy levels minus tasks that are N/A
Drop down options are N/A, Not Started, In Progress - On Track, In Progress - At Risks, Complete.
I want if children tasks are marked complete I want a % to calculate for those tasks marked complete minus N/A tasks.
Parent = 100% (correct)
Child 1 - Complete
Child 2 - Complete
Child 3 - Complete
Child 4 - Complete
Child 5 - Complete
Parent = 100% (correct)
Child 1 - N/A
Child 2 - Complete
Child 3 - Complete
Child 4 - Complete
Child 5 - Complete
Parent = 80% (This is incorrect and should be returned as 100%)
Child 1 - N/A
Child 2 - Complete
Child 3 - Complete
Child 4 - Complete
Child 5 - Complete
Best Answer
-
Try something like this
IF(COUNT(CHILDREN([your primary column name]@row))>0, COUNTIFS(CHILDREN([your dropdown column name]@row), "Complete") / COUNTIFS(CHILDREN([your dropdown column]@row), <>"NA"))
The first IF checks to see if this is a parent row. If it is, it counts based on the criteria within the countifs.
cheers
Answers
-
Try something like this
IF(COUNT(CHILDREN([your primary column name]@row))>0, COUNTIFS(CHILDREN([your dropdown column name]@row), "Complete") / COUNTIFS(CHILDREN([your dropdown column]@row), <>"NA"))
The first IF checks to see if this is a parent row. If it is, it counts based on the criteria within the countifs.
cheers
-
This worked perfectly.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.4K Get Help
- 364 Global Discussions
- 200 Industry Talk
- 430 Announcements
- 4.4K Ideas & Feature Requests
- 137 Brandfolder
- 129 Just for fun
- 128 Community Job Board
- 446 Show & Tell
- 28 Member Spotlight
- 1 SmartStories
- 284 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!