Count child rows that are "Complete" in a ONLY when its parent row is "In Progress"

Answers
-
Would someone be able to help me out with a similar issue?
We need to count every child row that has a value of "Complete" in a 'Status' Column ONLY when its parent row has a value of "In Progress" in the same 'Status' Column.
The formula that I used :=IF(COUNTIFS([Hierarchy]:[Hierarchy], 0, [Status]:[Status], "In progress") > 0, COUNTIFS([Hierarchy]:[Hierarchy], 1, [Status]:[Status], "Complete"), 0)
results in an incorrect count as it looks for ANY parent row that has 'In Progress" when we need the formula to refer to just the dedicated parent of each child row. -
Hi Kam114,
You may want to add a helper column, called Parent's Status, as shown in the screenshot below, with this column formula:
=PARENT(Status@row
)then count the number of complete task with the following formula. The expected result should be 7.
=COUNTIFS(Status:Status, "Complete", [Parent's Status]:[Parent's Status], "In Progress")
Hope it works for you.
Gia Thinh Technology - Smartsheet Solution Partner.
Email : thinh.huynh@giathinh.tech -
@Gia, thank you so much! That worked!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67.7K Get Help
- 474 Global Discussions
- 201 Use Cases
- 515 Announcements
- 5.5K Ideas & Feature Requests
- 87 Brandfolder
- 157 Just for fun
- 82 Community Job Board
- 521 Show & Tell
- 36 Member Spotlight
- 3 SmartStories
- 309 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!