Formula Error
Hey all,
I'm having trouble with a formula and either my brain is fried or I'm missing something (or both), because I've been staring at it for 45 minutes and can't figure out what's wrong with it.
I'm trying to get a RYGG status column to show: "" orBlank, if no date is entered in Next Deliverable Column, Grey if Disposition Column is "Complete", Red if Next Deliverable Column is greater than Today, Yellow if Next Deliverable Column is within 14 days of Today, and Green, if none of the other criteria are met.
Any help would be appreciated!
Best Answer
-
Genevieve P. Employee Admin
No problem at all. To do this, just add in the extra column range ([GRE/GSC Responsible] column), then the criteria for that column, 1. (1 means that the flag is raised or true.)
Try this:
=COUNTIFS(Tasks:Tasks, CONTAINS("Map", @cell), [Status Update]:[Status Update], "In Progress",[GRE/GSC Responsible]:[GRE/GSC Responsible], 1)
Let me know if this works for you!
Cheers,
Genevieve
Answers
-
Nick Burrus ✭✭✭✭✭✭
It is typically best practice to use double quotes like " not '. In addition (TODAY() +14) isn't exactly valid it should be TODAY(14).
If you can share your sheet with me at[email protected]with editor or admin access I'll be happy to look into your formula asap.
Dr. St Nicholas Burrus DHA, PMP
I build Smartsheets for the US Government, State Government, and about a dozen of the US Fortune 100s.
-
Danielle Roach ✭✭✭✭
Try thisThis is a formula I use and it works great - try it this way
=IF([% Complete]1 = "1", "Gray", IF(Finish1 = "", "Yellow", IF(Finish1 < TODAY(), "Red", "Green")))
-
Luke Serrato ✭✭✭
NBurrus, Invite sent to you.
I'm not sure if my text is not coming through correctly, but I am using double quotes " and ". I am also finding that TODAY(14) and TODAY()+14 are both working for me.
Danielle, I can't see how that formula would accomplish what I'm trying to... I'm trying to include a blank, so my status light column remains blank if no date has been entered.
-
Nick Burrus ✭✭✭✭✭✭
Great use of column formulas. Check out row eighteen under Status Formula for a new formula:
=IF(Disposition@row = "Complete", "Gray", IF([Next Deliverable]@row = "", "", IF([Next Deliverable]@row < TODAY(), "Red", IF([Next Deliverable]@row < (TODAY() + 14), "Yellow", "Green"))))
I added a blank that supercedes the others. :) Use this formula in your columns and it'd do the trick
Dr. St Nicholas Burrus DHA, PMP
I build Smartsheets for the US Government, State Government, and about a dozen of the US Fortune 100s.
-
I am a novice to formulas and not sure how to approach this. The Rows may be deleted or added so If I can use the column names to calculate I would prefer to put it on a sheet summary.
I am looking for several counts.
I need a count of how many observations I have in total that are low and or high. Along with the status updates on them (my drop down options are "In Progress", "Delayed" or "Closed"
I also need to know in my task column how many MAP I have that are flagged to be true that are "In Progress", "Delayed", or "Closed"
-
Genevieve P. Employee Admin
Happy to help with this!
You can use COUNTIFS to count rows that meet very specific criteria in certain columns (看到这个信息), and yes, you can use full column references and put these formulas in your Sheet Summary fields.
A COUNTIFS works like this:
=COUNTIFS([Column1]:[Column1], "Criteria", [Column2]:[Column2], "Criteria 2") etc.
For your formula, I'd usethe CONTAINS functionto check and see if that Task columncontainsthe word "observation". Here's an example of how to look for a "Low" priority. To change this to look for "high", just update the text at the very end of the formula:
=COUNTIFS(Tasks:Tasks, CONTAINS("Observation", @cell), Priority:Priority, "Low")
Now, to find specific Status Updates within this criteria, all you have to do is add in the other column as a new range and specify a new criteria.
=COUNTIFS(Tasks:Tasks, CONTAINS("Observation", @cell), Priority:Priority, "Low",[Status Update]:[Status Update], "In Progress")
Change what you're looking for after that Status Update "in quotes" to create your other calculations.
Does this make sense how to create a COUNTIFS statement? If you need more help with your final one, let me know and I'm happy to clarify what's needed.
Cheers,
Genevieve
-
HI Genevieve,
Thanks for the assistance. I do need some help with the last one. I want to to know how many Flags that are TRUE for the GRE/GSC Responsible that contain a "Map" in the column of tasks are "In Progress'" (Delayed and Closed)
-
Genevieve P. Employee Admin
No problem at all. To do this, just add in the extra column range ([GRE/GSC Responsible] column), then the criteria for that column, 1. (1 means that the flag is raised or true.)
Try this:
=COUNTIFS(Tasks:Tasks, CONTAINS("Map", @cell), [Status Update]:[Status Update], "In Progress",[GRE/GSC Responsible]:[GRE/GSC Responsible], 1)
Let me know if this works for you!
Cheers,
Genevieve
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":"