Formula to Produce Symbol based on other Symbols
I have avery complexformula I need help with... using dates and symbols in other columns to dictate the symbol produced.
The 'LIVE' column below will populate with green, yellow, red, or grey based on a combination of the following specifications:
1) If Target Go-Live date ispassedAND Kick-Off isgreen, AND MSA isgreen, AND Users isgreen, AND Go-Live Training isgreen, THEN Live =green
2) If Target Go-Live date isnot passedAND any/all of Kick-Off, MSA, Users are green/yellow/red, THEN Live =yellow
3) If Target Go-Live date ispassedAND Kick-Off isyellow, AND MSA isgreen, AND Users isgreen, AND Go-Live Training isgreen, THEN Live =red
3a) If Target Go-Live date ispassedAND any of Kick-Off, MSA, Users areyellow/red, THEN Live =red
4) If Target Go-Live date isNAAND Kick-Off isgrey, AND MSA isgrey, AND Users isgreyAND Go-Live Training isgrey, THEN Live =grey
Example of view below, note that each column can be green/yellow/red/grey.
Essentially,
1) If any of the tasks (Kick-Off, MSA, Users, Go-Live training) are NOT Green, and the target date is passed, LIVE is RED.
2) If any of the tasks (Kick-Off, MSA, Users, Go-Live training) are NOT Green, and the target date is NOT passed, LIVE is YELLOW.
3) If all of the tasks (Kick-Off, MSA, Users, Go-Live training) ARE Green, and the target date IS passed, LIVE is GREEN.
If someone can help... I will bake you cookies!!
Best Answer
-
James Keuning ✭✭✭✭✭
for number three, one column, it's a symbol:
=IF(AND([2 test]@row = true, [2.a test]@row = false), "Red")
Your 3a example includes your 3 example in the results
If you have gotten this far and things are working, you can now go in and replace the references to the helper columns with the values of the helper columns.
In other words, that formula up there would become:
=IF(AND((3 > COUNTIFS([Kick-off]@row:[Go-Live Training]@row, "Green")), ([Target Go-Live]@row > TODAY()) = false), "Red")
Answers
-
James Keuning ✭✭✭✭✭
Major edit: I think to test the first condition, you just test to see if everything is green. If everything is green, Live is green. We do not need to check the date*, so:
=IF(3 < COUNTIFS([Kick-off]@row:[Go-Live Training]@row, "green"), "Green")
That test the first condition. If you add criteria, you will need to edit this. This formula looks to see if there are less than 3 greens, if not, then Live is green.
*if you do want to check the date, because you want to do that gray stuff, then you can't use this alternative.
~~~~~~~~~~~~~~~~~~~pre-major edit~~~~~~~~~~~~~~~~
Here is how I would test for number one. Build a helper column for each test. Then a helper column to evaluate that all of the test answers combine to provide the color for the Live field. The Live field will be an OR statement that looks at all of the test results for your 1-4.
So, for number one:
Create 3 columns, all column-type checkbox:
1 test 1.b test 1.c test
1 test - checks to see if Target Go-Live date ispassed
=[Target Go-Live]@row < TODAY()
1.b test - checks to see if all of the columns are green
=(AND([Kick-off]@row = "green", MSA@row = "green", Users@row = "green", [Go-Live Training]@row = "green"))
OR (if you use this alternative, and you add criteria, you will need to edit this. This formula looks to see if there are less than 3 greens.)
=3 < COUNTIFS([Kick-off]@row:[Go-Live Training]@row, "green")
1.c test - checks to see if both 1 test and 1.b test are both TRUE
=AND([1 test]@row = true, [1.b test]@row = true)
or better yet, change 1.c column type to Symbol, and use:
=IF(AND([1 test]@row = true, [1.b test]@row = true), "Green")
Again, don't use this result for the Live yet.
-
James Keuning ✭✭✭✭✭
For your second test, create three columns:
2 test 2.a test 2.b test
2 test (checkbox): test to see if date is passed
=[Target Go-Live]@row > TODAY()
2.a test (checkbox): check to see if there is any non-green
=3 >= COUNTIFS([Kick-off]@row:[Go-Live Training]@row, "Green")
2.b test (Symbol): test to see if those first two things are true, if so, Yellow.
=IF(AND([2 test]@row = true, [2.a test]@row = true) = true, "Yellow")
So now you have your second test
-
James Keuning ✭✭✭✭✭
for number three, one column, it's a symbol:
=IF(AND([2 test]@row = true, [2.a test]@row = false), "Red")
Your 3a example includes your 3 example in the results
If you have gotten this far and things are working, you can now go in and replace the references to the helper columns with the values of the helper columns.
In other words, that formula up there would become:
=IF(AND((3 > COUNTIFS([Kick-off]@row:[Go-Live Training]@row, "Green")), ([Target Go-Live]@row > TODAY()) = false), "Red")
-
Taylar LaBonte ✭✭✭
@James KeuningYou are my hero!! It works!!
Thank you so much for taking the time to walk through all of that. Definitely a lot of manual formula creation... but massively pays off in the end!
Thank you so much- I really appreciate it!
Help Article Resources
Categories
Check out theFormula Handbook template!
Instead of applying the formula to \"Multiselect Text String\" row, did you tried with \"Multiselect Values\" row?<\/p>
=IF(HAS([Multiselect Values]@row, [Component ID]@row), \"MATCH\", \"NO MATCH\")<\/p>
Thank you,<\/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":109493,"type":"question","name":"I am having trouble using \"And\", \"OR\" & \"Countif(s)\" to build a formula.","excerpt":"Hello, I am attempting to come up with a sheet summary formula that counts cells if they meet at least one of 3 different statuses in the same column, AND also meet one of 5 different statuses in a separate column. So using the screenshot I've provided as an example (although it doesn't have 5 different statuses in the…","snippet":"Hello, I am attempting to come up with a sheet summary formula that counts cells if they meet at least one of 3 different statuses in the same column, AND also meet one of 5…","categoryID":322,"dateInserted":"2023-08-25T20:03:21+00:00","dateUpdated":null,"dateLastComment":"2023-08-26T00:34:49+00:00","insertUserID":165710,"insertUser":{"userID":165710,"name":"SmarsheetNewb","url":"https:\/\/community.smartsheet.com\/profile\/SmarsheetNewb","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-08-26T00:33:27+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"updateUserID":null,"lastUserID":161714,"lastUser":{"userID":161714,"name":"Carson Penticuff","url":"https:\/\/community.smartsheet.com\/profile\/Carson%20Penticuff","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/userpics\/B0Q390EZX8XK\/nBGT0U1689CN6.jpg","dateLastActive":"2023-08-27T02:16:35+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭✭✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":3,"countViews":26,"score":null,"hot":3386005690,"url":"https:\/\/community.smartsheet.com\/discussion\/109493\/i-am-having-trouble-using-and-or-countif-s-to-build-a-formula","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/109493\/i-am-having-trouble-using-and-or-countif-s-to-build-a-formula","format":"Rich","tagIDs":[254],"lastPost":{"discussionID":109493,"commentID":392692,"name":"Re: I am having trouble using \"And\", \"OR\" & \"Countif(s)\" to build a formula.","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/392692#Comment_392692","dateInserted":"2023-08-26T00:34:49+00:00","insertUserID":161714,"insertUser":{"userID":161714,"name":"Carson Penticuff","url":"https:\/\/community.smartsheet.com\/profile\/Carson%20Penticuff","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/userpics\/B0Q390EZX8XK\/nBGT0U1689CN6.jpg","dateLastActive":"2023-08-27T02:16:35+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-26T00:33:25+00:00","dateAnswered":"2023-08-25T20:44:12+00:00","acceptedAnswers":[{"commentID":392662,"body":"
Try this:<\/p>
=COUNTIFS([Item Number]:[Item Number], OR(@cell = \"C001\", @cell = \"COO2\", @cell = \"COO3\", @cell = \"COO4\"), [Status]:[Status], OR(@cell = \"Green\", @cell = \"Yellow\", @cell = \"Red\"))<\/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":109474,"type":"question","name":"Help with date calculation formula","excerpt":"Hello, I'm trying to find a formula that will help me calculate how long an intake took to resolve. The rows I need to be calculated are Date Reported & Resolution Date. If the resolution date is blank I want it to use the current date in the calculation to see how long this issue has gone unresolved. Any help is much…","snippet":"Hello, I'm trying to find a formula that will help me calculate how long an intake took to resolve. The rows I need to be calculated are Date Reported & Resolution Date. If the…","categoryID":322,"dateInserted":"2023-08-25T16:29:39+00:00","dateUpdated":"2023-08-25T16:29:59+00:00","dateLastComment":"2023-08-25T23:01:30+00:00","insertUserID":165688,"insertUser":{"userID":165688,"name":"Nwest","title":"Systems Analyst","url":"https:\/\/community.smartsheet.com\/profile\/Nwest","photoUrl":"https:\/\/aws.smartsheet.com\/storageProxy\/image\/images\/u!1!ukHVZ18ImX4!BcjWAe8S9SY!l7iQo_PZHOx","dateLastActive":"2023-08-25T17:22:30+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"updateUserID":165688,"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-26T17:06:33+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭✭✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":3,"countViews":25,"score":null,"hot":3385987269,"url":"https:\/\/community.smartsheet.com\/discussion\/109474\/help-with-date-calculation-formula","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/109474\/help-with-date-calculation-formula","format":"Rich","tagIDs":[254],"lastPost":{"discussionID":109474,"commentID":392687,"name":"Re: Help with date calculation formula","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/392687#Comment_392687","dateInserted":"2023-08-25T23:01:30+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-26T17:06:33+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-25T17:04:22+00:00","dateAnswered":"2023-08-25T16:36:59+00:00","acceptedAnswers":[{"commentID":392622,"body":"