Show Active Child Status in Parent Row
Parent has 26 Children (26 week program). Only one Child row will be active per Parent row. Each Child will have a different task in the 'Status' column(single dropdown list). You will select Complete to close the current Child and activate the next Child selecting a different task in dropdown list. I want to show the current status of the child that is active in the parent row.
Sheet example: Current active Child row status is LOA which should show in Parent cell
Best Answer
-
Try this:
=INDEX(COLLECT(CHILDREN(Status@row), CHILDREN(Status@row), <> "Complete"), 1)
In English, get the Status value from the first Status cell in this row's child rows that does not equal Complete.
Once you are sure that it works, wrap it in IFERROR, because once all child rows are Complete, the formula will error with #INVALID VALUE. You can set your IFERROR to leave the cell blank, or to display a message like "All Weeks Complete".
Blank when all child rows complete:
=IFERROR(INDEX(COLLECT(CHILDREN(Status@row), CHILDREN(Status@row), <> "Complete"), 1), "")
With message when all rows complete:
=IFERROR(INDEX(COLLECT(CHILDREN(Status@row), CHILDREN(Status@row), <> "Complete"), 1), "All Weeks Complete")
Regards,
Jeff Reisman
Link: Smartsheet Functions Help Pages Link: Smartsheet Formula Error Messages
If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!
Answers
-
Try this:
=INDEX(COLLECT(CHILDREN(Status@row), CHILDREN(Status@row), <> "Complete"), 1)
In English, get the Status value from the first Status cell in this row's child rows that does not equal Complete.
Once you are sure that it works, wrap it in IFERROR, because once all child rows are Complete, the formula will error with #INVALID VALUE. You can set your IFERROR to leave the cell blank, or to display a message like "All Weeks Complete".
Blank when all child rows complete:
=IFERROR(INDEX(COLLECT(CHILDREN(Status@row), CHILDREN(Status@row), <> "Complete"), 1), "")
With message when all rows complete:
=IFERROR(INDEX(COLLECT(CHILDREN(Status@row), CHILDREN(Status@row), <> "Complete"), 1), "All Weeks Complete")
Regards,
Jeff Reisman
Link: Smartsheet Functions Help Pages Link: Smartsheet Formula Error Messages
If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!
-
That Worked. Thank you
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.5K Get Help
- 402 Global Discussions
- 213 Industry Talk
- 450 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 135 Just for fun
- 56 Community Job Board
- 454 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 296 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!