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.
-
@Gia, thank you so much! That worked!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 140 Industry Talk
- 472 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 497 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!