这个公式有什么问题?

我试图改变基于%完成列的状态:


=IF([百分比完成]@row = 1,“完成”,IF([百分比完成]@row = 0,“未开始”,IF(AND([百分比完成]@row < 1,[完成日期]@row <今天()),“延迟”,IF(AND([百分比完成]@row < 0.5,[完成日期]@row <=今天(5)),“有风险”,IF(AND([百分比完成]@row < 1,[完成日期]@row >今天(7)),“正在进行中”,IF(AND([百分比完成]@row > 0.5,[完成日期]@row <今天(7)),“正在进行中”,“”))))))


谢谢你! !

最佳答案

  • 基督教伯爵
    基督教伯爵 ✭✭✭✭✭
    ✓回答

    =IF([百分比完成]@row = 1,“完成”,IF([百分比完成]@row = 0,“未开始”,IF(AND([百分比完成]@row < 1,[完成日期]@row <今天()),“延迟”,IF(AND([百分比完成]@row < 0.5,[完成日期]@row <=今天(5)),“有风险”,IF(AND([百分比完成]@row < 1,[完成日期]@row >今天(7)),“正在进行中”,IF(AND([百分比完成]@row > 0.5,[完成日期]@row <今天(7)),“正在进行中”,“))))))”

    末尾的引号太多。

答案

  • 基督教伯爵
    基督教伯爵 ✭✭✭✭✭
    ✓回答

    =IF([百分比完成]@row = 1,“完成”,IF([百分比完成]@row = 0,“未开始”,IF(AND([百分比完成]@row < 1,[完成日期]@row <今天()),“延迟”,IF(AND([百分比完成]@row < 0.5,[完成日期]@row <=今天(5)),“有风险”,IF(AND([百分比完成]@row < 1,[完成日期]@row >今天(7)),“正在进行中”,IF(AND([百分比完成]@row > 0.5,[完成日期]@row <今天(7)),“正在进行中”,“))))))”

    末尾的引号太多。

  • 非常感谢!我还有一个……我如何添加在“延迟”时,有一个延迟的孩子。我目前正在使用下面的公式,当我尝试添加延迟时,我无法解析。我通常很难在任何配方中添加……谢谢! !


    =IF(COUNTIF(CHILDREN(), "Not Started") = COUNT(CHILDREN()), "Not Started", IF(COUNTIF(CHILDREN(), "In Progress") = COUNT(CHILDREN()), "In Progress", IF(COUNTIF(CHILDREN(), "Complete") = COUNT(CHILDREN()), "Complete", IF(COUNTIF(CHILDREN(), "At Risk") > 0, "At Risk", "——"))))

帮助文章参考资料欧宝体育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":16,"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":[]}">

公式和函数趋势