Welcome to the Smartsheet Forum Archives


The posts in this forum are no longer monitored for accuracy and their content may no longer be current. If there's a discussion here that interests you and you'd like to find (or create) a more current version, pleaseVisit the Current Forums.

RYG Balls changing with Children Rows

Hello,

I have an *awesome* formula that changes RYG balls of parent rows as the children rows change. The formula is below:

=IF(AND(COUNTIF(CHILDREN(), "Green") > COUNTIF(CHILDREN(), "Yellow"), COUNTIF(CHILDREN(), "Green") > COUNTIF(CHILDREN(), "Red")), "Green", IF(AND(COUNTIF(CHILDREN(), "Red") > COUNTIF(CHILDREN(), "Green"), COUNTIF(CHILDREN(), "Red") > COUNTIF(CHILDREN(), "Yellow")), "Red", "Yellow"))

My issue is that when the children rows have not yet selected a RYG ball, the parent ball shows up as Yellow. Is there a way to make it just be blank if the rows below it are blank? Or at least, Green? The "Yellow" can have a negative connotation and I do not want a Project Manager thinking a new project is in the Yellow when they are given the SmartSheet template.

Thank you!

Tags:

Comments

  • John Sauber
    John Sauber ✭✭✭✭✭✭

    With that formula, the parent doesn'tdefaultto yellow, it's still calculating based on the criteria you set in your IF() and AND() statements. Go ahead and see for yourself by deleting some of the RYG data in the child rows and watch the parent change according to the rules you set.

    If you want the parent to default to blank until all children have been filled out, then do this (I only added another IF() qualifier at the begining to test if any child rows are blank):

    =IF(COUNTIF(CHILDREN(), "") > 0, "", IF(AND(COUNTIF(CHILDREN(), "Green") > COUNTIF(CHILDREN(), "Yellow"), COUNTIF(CHILDREN(), "Green") > COUNTIF(CHILDREN(), "Red")), "Green", IF(AND(COUNTIF(CHILDREN(), "Red") > COUNTIF(CHILDREN(), "Green"), COUNTIF(CHILDREN(), "Red") > COUNTIF(CHILDREN(), "Yellow")), "Red", "Yellow")))

    You can default to something other than "blank" of course, and you might even consider using RYG(B/G), and make it Blue or Gray (after changing the symbol type, of course) if it's not all filled out yet. Just a thought, but your situation is yours to consider. That would look like:

    =IF(COUNTIF(CHILDREN(), "") > 0, "Gray", IF(AND(COUNTIF(CHILDREN(), "Green") > COUNTIF(CHILDREN(), "Yellow"), COUNTIF(CHILDREN(), "Green") > COUNTIF(CHILDREN(), "Red")), "Green", IF(AND(COUNTIF(CHILDREN(), "Red") > COUNTIF(CHILDREN(), "Green"), COUNTIF(CHILDREN(), "Red") > COUNTIF(CHILDREN(), "Yellow")), "Red", "Yellow")))

  • Madeline Brannen
    edited 03/04/16

    John,

    谢谢你的回应!问题是,我没有't want the parent to default to blank until all the children to be filled. I do like the fact that it will show and change as the children below it change.

    我想要父母空白当没有children filled, but a gray ball will do nicely also! I've attached a picture of what I mean. The yellow scares people when the tasks below the parent haven't even begun yet.

    RYGball.JPG

  • John Sauber
    John Sauber ✭✭✭✭✭✭

    You just need to do a comparison first, which I have done below. I am assumng the name [Primary Column] is the name you have for the column where those tasks are listed.

    =IF(COUNTIF(CHILDREN(), "") = COUNT(CHILDREN([Primary Column]1)), "Gray", IF(AND(COUNTIF(CHILDREN(), "Green") > COUNTIF(CHILDREN(), "Yellow"), COUNTIF(CHILDREN(), "Green") > COUNTIF(CHILDREN(), "Red")), "Green", IF(AND(COUNTIF(CHILDREN(), "Red") > COUNTIF(CHILDREN(), "Green"), COUNTIF(CHILDREN(), "Red") > COUNTIF(CHILDREN(), "Yellow")), "Red", "Yellow")))

    This should accomplish what you're looking for.

  • Hey Guys,

    Trying to appropriate this for my uses..

    I've got a bunch of nested jobs. They'll always have a different number of children.

    Each child row has a status. Red, Green or Blue.

    I'd like the parent to be red to represent when the children are all, or a majority red. (percentage would be great!)

    I'd like the parent to go blue when there is less than 2 red balls left (or alternatiley if this isn't possible, when a majority is either green or blue)

    I'd like the parent to go green only when ALL the children are green.

    I'll keep playing for now, but any help would be greatly appreciated:)

  • zukand
    zukand
    edited 09/06/15

    So.. I've been playing.. and I've got it down to

    =IF(COUNTIF(CHILDREN(), "Red") > (COUNT(CHILDREN()) / 2), "Red", IF(AND(COUNTIF(CHILDREN(), "Green") > COUNTIF(CHILDREN(), "Red"), COUNTIF(CHILDREN(), "Green") > COUNTIF(CHILDREN(), "Red")), "Blue"))

    But I haven't worked out getting it to go green once they are all green.

    I've really struggled to find good documentation on the AND() function (no idea what it does!) and a few of the others.. only have a very basic understanding;)

  • zukand
    zukand
    edited 09/06/15

    not letting me edit -.-

    I've got it to here.

    =IF(COUNTIF(CHILDREN(), "Red") > (COUNT(CHILDREN()) / 2), "Red", IF(AND(COUNTIF(CHILDREN(), "Green") > COUNTIF(CHILDREN(), "Red"), COUNTIF(CHILDREN(), "Green") > COUNTIF(CHILDREN(), "Red")), "Blue", "Blue"))

    I feel like I just need to be able to add

    IF(COUNTIF(CHILDREN(), "Green") = (COUNT(CHILDREN()), "Green"

    but can't seem to get it working:(

  • John Hammond
    edited 09/08/15
    zukand, try this:

    =IF(COUNTIF(CHILDREN(), "Green") = COUNT(CHILDREN()), "Green", IF(COUNTIF(CHILDREN(), "Red") > (COUNT(CHILDREN()) / 2), "Red", IF(AND(COUNTIF(CHILDREN(), "Green") > COUNTIF(CHILDREN(), "Red"), COUNTIF(CHILDREN(), "Green") > COUNTIF(CHILDREN(), "Red")), "Blue", "Blue")))

  • zukand
    zukand
    edited 09/15/15

    繁荣!工作就像一个魅力:)Thanks for that

  • I'm trying to build on the concepts here since I think this is a great start but I'm having a bit of trouble. Basically what I want my formula to do is:

    • If there are any Red balls, make the parent ball Red
    • If there are no Red balls but there are Yellow balls, make the parent ball Yellow
    • If there are no Red balls and no Yellow balls, make the parent ball Green

    Essentially, I want the parent row to reflect the "worst" status of the child rows, regardless as to whether or not there are also good statuses in the child rows.

  • Hello,

    I need help to build the formula as follow:

    When I changeColumn Bto (InProgress, Complete, or Risk) MyColumn Awill change to (Red, Yellow, or Green).

    Also

    If there are any Red in the children, I want to show Red in the parent,

    If there are no Red but there are Yellow in the children, Show Yellow in the parent.

    If there are no Red or Yellow but there is Green in the children, Show Green in the parent.

    Following drop down list are underColumn B.

    In Progress = Yellow

    Complete = Green

    Risk = Red

    Thanks

  • Patricia Thurston
    edited 02/23/17

    I'm trying to figure out the same formula as llanna above. If any of the children are red, I want the status change to red. If the children are yellow, status should change to yellow, etc. I'm using it for milestones, so there should never (or rarely be) a milestone that is red, and another that is yellow. It will either be late (red or yellow), green (on track) or grey (completed).

    Thanks for your help

  • @ Patricia Thurston

    I had the same need, and came up with this formula:

    =IF((COUNTIF(CHILDREN(), "Red") > 0), "Red", IF((COUNTIF(CHILDREN(), "Yellow") > 0), "Yellow", IF((COUNTIF(CHILDREN(), "Green") > 0), "Green", IF((COUNTIF(CHILDREN(), "Blue") > 0), "Blue", ""))))

    The presence of any Red makes the parent red, Yellow for Yellow, Green for Green, Blue for Blue, and if none are present, it's blank.

  • This thread is great -- thank you for the headstart on this formula. For my purposes, my child rows are using a dropdown menu called "Confidence" with percentage (10%, 20%...100%).

    I'd like to set the the ball color for the parent row to be based on the highest percentage of any of the children.

    If any child row is set to 90 or 100% the parent should be blue.

    If any child row is set to 70 or 80% the parent should be green.

    If any child row is set to 50 or 60% the parent should be yellow.

    If any parent row is set from 10 to 40% the parent should be red.

    Thanks in advance for any assistance!

    -Chris

  • @ Josh Garcia

    Your reply from March 8, 2017, worked great. Thank you.

This discussion has been closed.
\n \n https:\/\/community.smartsheet.com\/discussion\/108880\/recover-a-row-that-was-accidentally-moved-then-deleted\n <\/a>\n<\/div>\n

Hey @GlennJo<\/a>,<\/p>

the sheet should be available in the owner of the sheet, deleted files. If it is specifically a row of data that was deleted, you can try checking the activity log to see if it shows the removed data there.<\/p>"}]}},"status":{"statusID":3,"name":"Accepted","state":"closed","recordType":"discussion","recordSubType":"question"},"bookmarked":false,"unread":false,"category":{"categoryID":321,"name":"Smartsheet Basics","url":"https:\/\/community.smartsheet.com\/categories\/smartsheet-basics%2B","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":108840,"type":"question","name":"WorkApps - Admin Permissions on Assets","excerpt":"Hi, We are using WorkApps more and more to create a \"one-stop shop\" where users can go to access forms, sheets, reports, dashboards & dynamic views. Some users have admin access to sheets, and we lock certain columns to ensure that editors can only amend specific information. However, when sheet admins use WorkApps then…","snippet":"Hi, We are using WorkApps more and more to create a \"one-stop shop\" where users can go to access forms, sheets, reports, dashboards & dynamic views. Some users have admin access…","categoryID":343,"dateInserted":"2023-08-11T03:12:23+00:00","dateUpdated":"2023-08-11T08:46:32+00:00","dateLastComment":"2023-08-12T15:07:07+00:00","insertUserID":125212,"insertUser":{"userID":125212,"name":"Neil Watson","title":"","url":"https:\/\/community.smartsheet.com\/profile\/Neil%20Watson","photoUrl":"https:\/\/aws.smartsheet.com\/storageProxy\/image\/images\/u!1!pglbKXXltro!HIFbX6W_ivo!Lnqe5-nvNY5","dateLastActive":"2023-08-12T14:37:50+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭✭✭"},"updateUserID":91566,"lastUserID":8888,"lastUser":{"userID":8888,"name":"Andrée Starå","title":"Smartsheet Expert Consultant & Partner | Workflow Consultant \/ CEO @ WORK BOLD","url":"https:\/\/community.smartsheet.com\/profile\/Andr%C3%A9e%20Star%C3%A5","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/userpics\/0PAU3GBYQLBT\/nXWM7QXGD6464.jpg","dateLastActive":"2023-08-12T16:32:29+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭✭✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":3,"countViews":25,"score":null,"hot":3383578170,"url":"https:\/\/community.smartsheet.com\/discussion\/108840\/workapps-admin-permissions-on-assets","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/108840\/workapps-admin-permissions-on-assets","format":"Rich","lastPost":{"discussionID":108840,"commentID":390361,"name":"Re: WorkApps - Admin Permissions on Assets","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/390361#Comment_390361","dateInserted":"2023-08-12T15:07:07+00:00","insertUserID":8888,"insertUser":{"userID":8888,"name":"Andrée Starå","title":"Smartsheet Expert Consultant & Partner | Workflow Consultant \/ CEO @ WORK BOLD","url":"https:\/\/community.smartsheet.com\/profile\/Andr%C3%A9e%20Star%C3%A5","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/userpics\/0PAU3GBYQLBT\/nXWM7QXGD6464.jpg","dateLastActive":"2023-08-12T16:32:29+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":"Add Ons and Integrations","url":"https:\/\/community.smartsheet.com\/categories\/apps-and-integrations"}],"groupID":null,"statusID":3,"attributes":{"question":{"status":"accepted","dateAccepted":"2023-08-11T23:36:29+00:00","dateAnswered":"2023-08-11T18:10:14+00:00","acceptedAnswers":[{"commentID":390276,"body":"

Sounds about right. Are you looking for some kind of guidance on a specific issue?<\/p>"}]}},"status":{"statusID":3,"name":"Accepted","state":"closed","recordType":"discussion","recordSubType":"question"},"bookmarked":false,"unread":false,"category":{"categoryID":343,"name":"Add Ons and Integrations","url":"https:\/\/community.smartsheet.com\/categories\/apps-and-integrations","allowedDiscussionTypes":["discussion","question"]},"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":108864,"type":"question","name":"Is there a formula to show as %","excerpt":"What I am trying to do is have my overview brought in automatically each month so it doesn't have to manually be typed in. The struggle I'm having is it wants to bring in as a decimal instead of a %. Below is the formula I am currently using. Is there a way to make it show as % =\"We are at \" + [% closed rate]@row + \"…","snippet":"What I am trying to do is have my overview brought in automatically each month so it doesn't have to manually be typed in. The struggle I'm having is it wants to bring in as a…","categoryID":322,"dateInserted":"2023-08-11T17:22:21+00:00","dateUpdated":null,"dateLastComment":"2023-08-11T19:29:15+00:00","insertUserID":144360,"insertUser":{"userID":144360,"name":"Hollie Green","url":"https:\/\/community.smartsheet.com\/profile\/Hollie%20Green","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-08-11T20:24:30+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭✭"},"updateUserID":null,"lastUserID":144360,"lastUser":{"userID":144360,"name":"Hollie Green","url":"https:\/\/community.smartsheet.com\/profile\/Hollie%20Green","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-08-11T20:24:30+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":3,"countViews":34,"score":null,"hot":3383558496,"url":"https:\/\/community.smartsheet.com\/discussion\/108864\/is-there-a-formula-to-show-as","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/108864\/is-there-a-formula-to-show-as","format":"Rich","lastPost":{"discussionID":108864,"commentID":390301,"name":"Re: Is there a formula to show as %","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/390301#Comment_390301","dateInserted":"2023-08-11T19:29:15+00:00","insertUserID":144360,"insertUser":{"userID":144360,"name":"Hollie Green","url":"https:\/\/community.smartsheet.com\/profile\/Hollie%20Green","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-08-11T20:24:30+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-08-11T19:29:56+00:00","dateAnswered":"2023-08-11T17:49:58+00:00","acceptedAnswers":[{"commentID":390269,"body":"

Try this - =\"We are at \" + [% closed rate]@row * 100 + \"% closed rate on ticket status for the month of \"+[Month]@row.<\/p>"},{"commentID":390301,"body":"

I figured it out! Updated formula to get the 2 decimal places as well.<\/p>

=\"We are at \" + IFERROR(ROUND([% closed rate]@row * 100, 2), \"//www.santa-greenland.com/community/discussion/859/\") + \"% closed rate on ticket status for the month of \" + Month@row<\/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":[]}],"initialPaging":{"nextURL":"https:\/\/community.smartsheet.com\/api\/v2\/discussions?page=2&includeChildCategories=1&type%5B0%5D=Question&excludeHiddenCategories=1&siteSectionID=0&sort=-hot&limit=3&expand%5B0%5D=all&expand%5B1%5D=-body&expand%5B2%5D=insertUser&expand%5B3%5D=lastUser&status=accepted","prevURL":null,"currentPage":1,"total":10000,"limit":3},"title":"Trending Posts","subtitle":null,"description":null,"noCheckboxes":true,"containerOptions":[],"discussionOptions":[]}">

Trending Posts