Parent Flagged if Children Flagged
Hi all.
I have a task list that consist of multiple parent rows with Children
I have modifided so that if a task is delayed or dates are not added in the task will get a flag.
What i would like is to have if one or more of the Cildren Rows are Flagged the parent row will be flagged. but cant figure it out.
我试过with =IF(SUM(CHILDREN())>=1; 1 ; 0)
If any of you could help me out
Comments
-
Preston ✭✭✭✭✭
Hey Simon,
I worked up something similar for my own use. I think you could modify it to fit your needs. Have a peek:
=IF(COUNTIF(CHILDREN(), "Red") > 0, "Red", IF(COUNTIF(CHILDREN(), "Yellow") > 0, "Yellow", IF(COUNTIF(CHILDREN(), "Green") > 0, "Green", IF(COUNTIF(CHILDREN(), "Update") >= 1, "Update", IF(COUNTIF(CHILDREN(), "") >= 1, "Pending CO", IF(COUNTIF(CHILDREN(), "Gray") = COUNT(CHILDREN()), "Gray", "TBD"))))))
-
Hi,
This one worked for me.
on the "Parent" row cells of the flag column i have placed this formula:
=IF(COUNTIF(CHILDREN(), =1) > 0, 1, 0)
-
Hi, tested this and id worked perfect, Thank you!
-
h1pst3r ✭
Ofir's formula worked perfectly!
Thanks!
-Chris
-
Glad it worked and helped all of you!
-
jcouncil ✭✭✭✭
@Ofir Marcodo you have a suggestion for this formula when when multiple children rows? If flag on any child rows, change parent to flag also. The =IF(COUNTIF(CHILDREN(), =1), 1, 0) works for any parent rows with 1 child row, but it produces #INVALID if multiple child rows with flags selected.
Help Article Resources
Categories
Try this:<\/p>
=IF([# of SO's]@row > 0, AVG([%age]$1:[%age]8), \" \")<\/p>"}]}},"status":{"statusID":3,"name":"Accepted","state":"closed","recordType":"discussion","recordSubType":"question"},"bookmarked":false,"unread":false,"category":{"categoryID":322,"name":"Formulas and Functions","url":"https:\/\/community.smartsheet.com\/categories\/formulas-and-functions","allowedDiscussionTypes":[]},"reactions":[{"tagID":3,"urlcode":"Promote","name":"Promote","class":"Positive","hasReacted":false,"reactionValue":5,"count":0},{"tagID":5,"urlcode":"Insightful","name":"Insightful","class":"Positive","hasReacted":false,"reactionValue":1,"count":0},{"tagID":11,"urlcode":"Up","name":"Vote Up","class":"Positive","hasReacted":false,"reactionValue":1,"count":0},{"tagID":13,"urlcode":"Awesome","name":"Awesome","class":"Positive","hasReacted":false,"reactionValue":1,"count":0}],"tags":[]},{"discussionID":111956,"type":"question","name":"Anyone able to help figure out this formula?","excerpt":"I would very much appreciate anyone's help on this. I have moved the brackets around and changed anything I can think of, but it's coming up \"unparseable\". The column headers and sheet references are right. =IF(TODAY() >= [Quarter Start]@row, COUNTIFS({HR mock-up sheet START DATE}, @cell <= [Quarter End]@row, {HR mock-up…","snippet":"I would very much appreciate anyone's help on this. I have moved the brackets around and changed anything I can think of, but it's coming up \"unparseable\". The column headers and…","categoryID":322,"dateInserted":"2023-10-20T14:01:29+00:00","dateUpdated":null,"dateLastComment":"2023-10-20T15:20:24+00:00","insertUserID":162047,"insertUser":{"userID":162047,"name":"Nat","title":"Project Manager","url":"https:\/\/community.smartsheet.com\/profile\/Nat","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/userpics\/TGR5VC4AXHS3\/nABTHIGSKZB11.jpg","dateLastActive":"2023-10-20T15:19:40+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭"},"updateUserID":null,"lastUserID":151203,"lastUser":{"userID":151203,"name":"Nick Korna","url":"https:\/\/community.smartsheet.com\/profile\/Nick%20Korna","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-10-20T15:56:56+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭✭✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":5,"countViews":32,"score":null,"hot":3395628713,"url":"https:\/\/community.smartsheet.com\/discussion\/111956\/anyone-able-to-help-figure-out-this-formula","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/111956\/anyone-able-to-help-figure-out-this-formula","format":"Rich","tagIDs":[254],"lastPost":{"discussionID":111956,"commentID":400974,"name":"Re: Anyone able to help figure out this formula?","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/400974#Comment_400974","dateInserted":"2023-10-20T15:20:24+00:00","insertUserID":151203,"insertUser":{"userID":151203,"name":"Nick Korna","url":"https:\/\/community.smartsheet.com\/profile\/Nick%20Korna","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-10-20T15:56:56+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭✭✭"}},"breadcrumbs":[{"name":"Home","url":"https:\/\/community.smartsheet.com\/"},{"name":"Get Help","url":"https:\/\/community.smartsheet.com\/categories\/get-help"},{"name":"Formulas and Functions","url":"https:\/\/community.smartsheet.com\/categories\/formulas-and-functions"}],"groupID":null,"statusID":3,"attributes":{"question":{"status":"accepted","dateAccepted":"2023-10-20T15:19:38+00:00","dateAnswered":"2023-10-20T15:09:09+00:00","acceptedAnswers":[{"commentID":400970,"body":"
That's some progress I guess! Next up: <\/p>
The OR statement isn't closed off and I'm not sure you need the AND portion either as you've only a single expression in there. Something along the lines of:<\/p>
=IF(TODAY() >= [Quarter Start]@row, COUNTIFS({HR mock-up sheet START DATE}, @cell <= [Quarter End]@row, {HR mock-up sheet DATE OF DEPARTURE}, OR(@cell = \"//www.santa-greenland.com/community/discussion/21526/\", @cell >= [Quarter Start]@row), {HR mock-up sheet JOB TYPE}, “Permanent FT”)))<\/p>"}]}},"status":{"statusID":3,"name":"Accepted","state":"closed","recordType":"discussion","recordSubType":"question"},"bookmarked":false,"unread":false,"category":{"categoryID":322,"name":"Formulas and Functions","url":"https:\/\/community.smartsheet.com\/categories\/formulas-and-functions","allowedDiscussionTypes":[]},"reactions":[{"tagID":3,"urlcode":"Promote","name":"Promote","class":"Positive","hasReacted":false,"reactionValue":5,"count":0},{"tagID":5,"urlcode":"Insightful","name":"Insightful","class":"Positive","hasReacted":false,"reactionValue":1,"count":0},{"tagID":11,"urlcode":"Up","name":"Vote Up","class":"Positive","hasReacted":false,"reactionValue":1,"count":0},{"tagID":13,"urlcode":"Awesome","name":"Awesome","class":"Positive","hasReacted":false,"reactionValue":1,"count":0}],"tags":[{"tagID":254,"urlcode":"formulas","name":"Formulas"}]},{"discussionID":111953,"type":"question","name":"Countifs counting this not in criteria","excerpt":"I am using [Method helper] to tell me when we have more than one online training on a date where Notes= PD =COUNTIFS(Notes:Notes, \"PD\", [Date 1]:[Date 1], [Date 1]@row, Platform:Platform, Platform@row, Platform:Platform, \"online\") > 1 I have tried to specifically say, do not count anything with CDA in it, in a variety of…","snippet":"I am using [Method helper] to tell me when we have more than one online training on a date where Notes= PD =COUNTIFS(Notes:Notes, \"PD\", [Date 1]:[Date 1], [Date 1]@row,…","categoryID":322,"dateInserted":"2023-10-20T13:35:21+00:00","dateUpdated":null,"dateLastComment":"2023-10-20T14:12:35+00:00","insertUserID":164920,"insertUser":{"userID":164920,"name":"ECRCalexandra","title":"Data Manager","url":"https:\/\/community.smartsheet.com\/profile\/ECRCalexandra","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-10-20T18:27:53+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭"},"updateUserID":null,"lastUserID":164920,"lastUser":{"userID":164920,"name":"ECRCalexandra","title":"Data Manager","url":"https:\/\/community.smartsheet.com\/profile\/ECRCalexandra","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-10-20T18:27:53+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":3,"countViews":30,"score":null,"hot":3395621876,"url":"https:\/\/community.smartsheet.com\/discussion\/111953\/countifs-counting-this-not-in-criteria","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/111953\/countifs-counting-this-not-in-criteria","format":"Rich","tagIDs":[254],"lastPost":{"discussionID":111953,"commentID":400943,"name":"Re: Countifs counting this not in criteria","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/400943#Comment_400943","dateInserted":"2023-10-20T14:12:35+00:00","insertUserID":164920,"insertUser":{"userID":164920,"name":"ECRCalexandra","title":"Data Manager","url":"https:\/\/community.smartsheet.com\/profile\/ECRCalexandra","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-10-20T18:27:53+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭"}},"breadcrumbs":[{"name":"Home","url":"https:\/\/community.smartsheet.com\/"},{"name":"Get Help","url":"https:\/\/community.smartsheet.com\/categories\/get-help"},{"name":"Formulas and Functions","url":"https:\/\/community.smartsheet.com\/categories\/formulas-and-functions"}],"groupID":null,"statusID":3,"image":{"url":"https:\/\/us.v-cdn.net\/6031209\/uploads\/A4TLEFFGIFXV\/image.png","urlSrcSet":{"10":"https:\/\/us.v-cdn.net\/cdn-cgi\/image\/fit=scale-down,width=10\/https:\/\/us.v-cdn.net\/6031209\/uploads\/A4TLEFFGIFXV\/image.png","300":"https:\/\/us.v-cdn.net\/cdn-cgi\/image\/fit=scale-down,width=300\/https:\/\/us.v-cdn.net\/6031209\/uploads\/A4TLEFFGIFXV\/image.png","800":"https:\/\/us.v-cdn.net\/cdn-cgi\/image\/fit=scale-down,width=800\/https:\/\/us.v-cdn.net\/6031209\/uploads\/A4TLEFFGIFXV\/image.png","1200":"https:\/\/us.v-cdn.net\/cdn-cgi\/image\/fit=scale-down,width=1200\/https:\/\/us.v-cdn.net\/6031209\/uploads\/A4TLEFFGIFXV\/image.png","1600":"https:\/\/us.v-cdn.net\/cdn-cgi\/image\/fit=scale-down,width=1600\/https:\/\/us.v-cdn.net\/6031209\/uploads\/A4TLEFFGIFXV\/image.png"},"alt":"image.png"},"attributes":{"question":{"status":"accepted","dateAccepted":"2023-10-20T14:13:01+00:00","dateAnswered":"2023-10-20T13:45:27+00:00","acceptedAnswers":[{"commentID":400923,"body":"
If you're not wanting to flag the non-PD lines, then use something along the lines of this:<\/p>
This does the checks, but makes sure the line is PD before ticking\/not.<\/p>