自动符号不会切换
大家好!
我正在尝试自动化符号。逻辑应该是,如果特定单元格低于90%,则将其标记为红色符号,如果大于90%,则将其标记为黄色,如果大于或等于100%,则将其标记为绿色。
这是我得到的:
=IF([实际与目标生产平方英尺]@row < 0.9,“红色”,IF([实际与目标生产平方英尺]@row > 0.9,“黄色”,IF([实际与目标生产平方英尺]@row >= 1,“绿色”)))
当超过100%时,符号不会变绿。黄色和红色正在工作。
谢谢你的支持。
最佳答案
-
杰西塔 ✭✭
对于您为Yellow编写的条件,值1也将为真,因此IF语句在此停止。交换绿色和黄色,这样if语句首先遇到绿色条件,只有在被拒绝时才继续前进。
您还可以完全删除黄色条件,如果其他两个if语句都为假,则将“yellow”作为值。
答案
-
杰西塔 ✭✭
对于您为Yellow编写的条件,值1也将为真,因此IF语句在此停止。交换绿色和黄色,这样if语句首先遇到绿色条件,只有在被拒绝时才继续前进。
您还可以完全删除黄色条件,如果其他两个if语句都为假,则将“yellow”作为值。
-
LJK ✭
太好了,谢谢!这说得通
帮助文章参考资料欧宝体育app官方888
类别
Happy to help. Some syntax errors to watch out for in the future - I believe in your formulas you are trying to use the ampersand as a join. It's not needed and<\/em> smartsheet doesn't use the ampersand for join. When needing to concatenate, you use a plus sign. But you don't need to join an equal sign to the other part of any expression. Also, enclosing numbers or arithmetic signs in quotes converts them to a textstring where they will be behave as if you placed any other letter of the alphabet in a sentence.<\/p> Thanks for the screenshots AND the typed formula. Both are super helpful.<\/p> =SUMIFS({Total Production Per Day}, {Generation Tracker Range 1},[Project Name]@row, {Generation Tracker Range 2}, >=[Start Date]@row, {Generation Tracker Range 2}, <=[End Date]@row)<\/p> Will this work for you<\/p> Kelly<\/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":105992,"type":"question","name":"Display Issue with Formula","excerpt":"I have another equation that is not displaying the value I need to pull down. I think I have the formula right, it's not coming back with an error, yet there is no numbers displaying. Ultimately I want it to pull down the generation from a previous year so wer can compare. Ideas\/ Thoughts?","categoryID":322,"dateInserted":"2023-06-03T19:58:18+00:00","dateUpdated":null,"dateLastComment":"2023-06-04T09:57:20+00:00","insertUserID":162046,"insertUser":{"userID":162046,"name":"NuGenAdmin","title":"Director of Operations","url":"https:\/\/community.smartsheet.com\/profile\/NuGenAdmin","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-06-04T13:13:34+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"updateUserID":null,"lastUserID":162046,"lastUser":{"userID":162046,"name":"NuGenAdmin","title":"Director of Operations","url":"https:\/\/community.smartsheet.com\/profile\/NuGenAdmin","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-06-04T13:13:34+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":2,"countViews":20,"score":null,"hot":3371696138,"url":"https:\/\/community.smartsheet.com\/discussion\/105992\/display-issue-with-formula","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/105992\/display-issue-with-formula","format":"Rich","lastPost":{"discussionID":105992,"commentID":378726,"name":"Re: Display Issue with Formula","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/378726#Comment_378726","dateInserted":"2023-06-04T09:57:20+00:00","insertUserID":162046,"insertUser":{"userID":162046,"name":"NuGenAdmin","title":"Director of Operations","url":"https:\/\/community.smartsheet.com\/profile\/NuGenAdmin","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-06-04T13:13:34+00:00","banned":0,"punished":0,"private":false,"label":"✭"}},"breadcrumbs":[{"name":"Home","url":"https:\/\/community.smartsheet.com\/"},{"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\/4I81IP1BR92K\/image.png","urlSrcSet":{"10":"","300":"","800":"","1200":"","1600":""},"alt":"image.png"},"attributes":{"question":{"status":"accepted","dateAccepted":"2023-06-05T07:01:01+00:00","dateAnswered":"2023-06-04T02:47:36+00:00","acceptedAnswers":[{"commentID":378724,"body":"