自动符号不会切换

LJK
LJK
编辑06/30/22 公式和函数

大家好!

我正在尝试自动化符号。逻辑应该是,如果特定单元格低于90%,则将其标记为红色符号,如果大于90%,则将其标记为黄色,如果大于或等于100%,则将其标记为绿色。

这是我得到的:

=IF([实际与目标生产平方英尺]@row < 0.9,“红色”,IF([实际与目标生产平方英尺]@row > 0.9,“黄色”,IF([实际与目标生产平方英尺]@row >= 1,“绿色”)))

当超过100%时,符号不会变绿。黄色和红色正在工作。

谢谢你的支持。

最佳答案

  • 杰西塔
    杰西塔 ✭✭
    ✓回答

    对于您为Yellow编写的条件,值1也将为真,因此IF语句在此停止。交换绿色和黄色,这样if语句首先遇到绿色条件,只有在被拒绝时才继续前进。

    您还可以完全删除黄色条件,如果其他两个if语句都为假,则将“yellow”作为值。

答案

帮助文章参考资料欧宝体育app官方888

想要直接在智能表中练习使用公式吗?

请查看公式手册模板!
Hey @NuGenAdmin<\/a> <\/p>

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":"

Hey @NuGenAdmin<\/a> <\/p>

I'm not sure I understand what you're trying to achieve. Try this to see if the guess was correct. <\/p>

I purposely left off the IFERROR until the formula is working correctly as it will mask any error the formula generates. <\/p>

=INDEX(COLLECT([Also Energy Production]:[Also Energy Production], Year:Year, [Previous Year]@row, Month:Month, Month@row, [Project Name]:[Project Name], [Project Name]@row),1)<\/p>

Is this what you need?<\/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":105991,"type":"question","name":"Help getting value to appear","excerpt":"Here is my equation. I am trying to get it to match the columns between two spreadsheets and display a value based on cells matching. It's not giving me an error message and it looks like all the references are correct, but it's not displaying a result. =IFERROR(INDEX({PVSYST Forecast}, MATCH(1, ([Project Name]@row =…","categoryID":322,"dateInserted":"2023-06-03T17:16:59+00:00","dateUpdated":null,"dateLastComment":"2023-06-04T10:00:47+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":42,"score":null,"hot":3371686666,"url":"https:\/\/community.smartsheet.com\/discussion\/105991\/help-getting-value-to-appear","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/105991\/help-getting-value-to-appear","format":"Rich","lastPost":{"discussionID":105991,"commentID":378727,"name":"Re: Help getting value to appear","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/378727#Comment_378727","dateInserted":"2023-06-04T10:00:47+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\/DSKY4V6YFFOK\/image.png","urlSrcSet":{"10":"","300":"","800":"","1200":"","1600":""},"alt":"image.png"},"attributes":{"question":{"status":"accepted","dateAccepted":"2023-06-05T07:02:54+00:00","dateAnswered":"2023-06-04T02:54:41+00:00","acceptedAnswers":[{"commentID":378725,"body":"

@NuGenAdmin<\/a> <\/p>

An INDEX\/MATCH has a specific format. The formula above is not written in the expected format. The IFERROR is masking the error as you have it written to produce a blank field when errors are encountered.<\/p>

Try this<\/p>

=INDEX(COLLECT({PVSYST Forecast}, {Project Name},[Project Name]@row,{Month},Month@row),1)<\/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":[]}],"title":"Trending in Formulas and Functions ","subtitle":null,"description":null,"noCheckboxes":true,"containerOptions":[],"discussionOptions":[]}">

公式和函数趋势