如果和今天

嗨,我有下面的公式是正确的工作:

=IF([项目名称]@row <> "", IF(ISBLANK([实际签收日期]@row), "TBC", IF(AND([实际签收日期]@row <=[签收日期]@row), "ON TRACK", IF(AND([实际签收日期]@row >[签收日期]@row), "DELAYED"))))

我有另一个公式,也工作正确:

=IF(今天(-[签到日期所需天数]@行)<=[签到日期]@行,"进展顺利","延迟")

我的问题是,我试图把第二个公式作为第一个公式的一部分,但我不能让它工作。基本上,我想要达到的是,如果[实际签收日期]是空白的,那么如果今天的日期减去[签收日期所需的天数]是在[签收日期]之前,它显示为延迟。下面是我目前拥有的公式,但它显示为#INCORRECT ARGUMENT SET。

=IF([项目名称]@row <> ""), IF(ISBLANK([实际签收日期]@row), "TBC", IF(今天(-[签收日期所需天数]@row) <=[签收日期]@row), "ON TRACK", "DELAYED", IF(和([实际签收日期]@row >[签收日期]@row), "ON TRACK", IF(和([实际签收日期]@row >[签收日期]@row), "DELAYED", IF(和([实际签收日期]@row <> ""), "ON TRACK")))))

标签:

答案

  • 凯利摩尔
    凯利摩尔 ✭✭✭✭✭✭

    @Emmet麦肯纳

    试试这个

    =IF([项目名称]@row <> "", IF(ISBLANK([实际签收日期]@row), "TBC", IF(今天()-[签收日期所需天数]@row <=[签收日期]@row, "在轨道上",IF([实际签收日期]@row <=[签收日期]@row, "在轨道上",IF(或([实际签收日期]@row >=[签收日期]@row) -[签收日期所需天数]@row), "延迟",IF([实际签收日期]@row <=[签收日期]@row), "延迟",IF([实际签收日期]@row <> ", "在轨道上"))))))

    我注意到你的公式中有许多IF/AND语句,没有与它们相关的多个标准。IF/AND用于同时满足条件以使条件为真时(例如,如果我外出并且下雨,那么我就会淋湿)。

    上面的公式对你有用吗?

    凯利

  • 嗨,凯莉,

    感谢以上,不幸的是,它不是以两种方式工作:

    1. 第二个IF语句,IF(TODAY() -[从签字开始所需的天数]@row <=[签字结束所需的日期]@row,“ON TRACK”,不起作用,如果[实际签字结束日期]为空白,则显示TBC,但如果从今天的日期中取出的[从签字结束所需的天数]小于或等于[签字结束所需的日期],则不会改变
    2. 一旦在[实际签收日期]列中输入日期,无论日期是在[签收日期]之前,等于或之后,它都会更改为“ON TRACK”,是最后一个if语句导致此问题吗?

  • ker9
    ker9 ✭✭✭✭✭✭
    编辑04/19/23

    @Emmet麦肯纳

    If语句将在第一个True语句时停止,所以可能需要修改顺序?将最后一个预期结果作为第一个IF,然后排在最后一个,等等,有时会对结果产生影响。

    你可以张贴完整的公式,你现在有在你的细胞更容易参考?

  • 嗨,我已经尝试了Kelly建议的以下公式,但它不起作用:

    =IF([项目名称]@row <> "", IF(ISBLANK([实际签收日期]@row), "TBC", IF(今天()-[签收日期所需天数]@row <=[签收日期]@row, "在轨道上",IF([实际签收日期]@row <=[签收日期]@row, "在轨道上",IF(或([实际签收日期]@row >=[签收日期]@row) -[签收日期所需天数]@row), "延迟",IF([实际签收日期]@row <=[签收日期]@row), "延迟",IF([实际签收日期]@row <> ", "在轨道上"))))))

    我已经尝试了下面两个单独的公式,分别工作,但当我试图合并它们时,我得到#不正确的参数集

    =IF([项目名称]@row <> "", IF(ISBLANK([实际签收日期]@row), "TBC", IF(([实际签收日期]@row <=[签收日期]@row), "ON TRACK", IF(AND([实际签收日期]@row >[签收日期]@row), "DELAYED"))))

    =IF(今天(-[签到日期所需天数]@行)<=[签到日期]@行,"进展顺利","延迟")

    基本上,我想要达到的是,如果[实际签收日期]是空白的,那么如果今天的日期减去[签收日期所需的天数]是在[签收日期]之前,它显示为延迟。

  • 你能解释一下什么是“截止日”吗?由于我不清楚这一列的含义,所以我不明白它是如何影响这个等式的。但是,由于您说您之前使用的两个公式应该正常工作,并且第一个公式无法解释的情况是当实际签字日期为空白时,我只是在“TBC”位置中添加了第二个公式。看看这是否有效:

    =IF([项目名称]@row <> ""), IF(ISBLANK([实际签收日期]@row), IF(今天(-[签收日期所需天数]@row) <=[签收日期]@row), IF(([实际签收日期]@row <=[签收日期]@row), "ON TRACK", IF(AND([实际签收日期]@row >[签收日期]@row), "DELAYED"))))

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

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

请查看公式手册模板!
@dhawkins<\/a> Try the formula below and let me know if that works. The AND function is a comma separated list of conditions, and always returns only True or False. <\/p>

=IF(AND([Build Approved]@row = 1, [Install Complete]@row = 1, [In Production]@row = 1), \"In Production\", IF(AND([Build Approved]@row = 1, [Install Complete]@row = 1, [In Production]@row = 0), \"Installed\", IF(AND([Build Approved]@row = 1, [Install Complete]@row = 0, [In Production]@row = 0), \"Build Approved\", \"Design\")))<\/p>"},{"commentID":379709,"body":"

=IF([Build Approved]@row = 0, \"Design\", IF([Install Complete]@row = 0, \"Build Approved\", IF([In Production]@row = 0, \"Installed\", \"In Production\")))<\/p>

This may work.<\/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":106232,"type":"question","name":"Check if project start\/end dates fall within specific time frame.","excerpt":"My team works on projects that typically take 6-12 months. I'd like to create a roll-up sheet that identifies which quarters in which a project was worked on. I'm creating a new row for each project and linking in the start and end dates from each of the projects' sheets. Then I've created a new column for each quarter…","categoryID":322,"dateInserted":"2023-06-08T19:44:47+00:00","dateUpdated":"2023-06-08T22:03:24+00:00","dateLastComment":"2023-06-08T20:08:51+00:00","insertUserID":161563,"insertUser":{"userID":161563,"name":"gunnell","title":"Director, eLearning Initiatives","url":"https:\/\/community.smartsheet.com\/profile\/gunnell","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-06-08T22:02:45+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"updateUserID":161563,"lastUserID":161563,"lastUser":{"userID":161563,"name":"gunnell","title":"Director, eLearning Initiatives","url":"https:\/\/community.smartsheet.com\/profile\/gunnell","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-06-08T22:02:45+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":1,"countViews":25,"score":null,"hot":3372509018,"url":"https:\/\/community.smartsheet.com\/discussion\/106232\/check-if-project-start-end-dates-fall-within-specific-time-frame","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/106232\/check-if-project-start-end-dates-fall-within-specific-time-frame","format":"Rich","lastPost":{"discussionID":106232,"commentID":379713,"name":"Re: Check if project start\/end dates fall within specific time frame.","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/379713#Comment_379713","dateInserted":"2023-06-08T20:08:51+00:00","insertUserID":161563,"insertUser":{"userID":161563,"name":"gunnell","title":"Director, eLearning Initiatives","url":"https:\/\/community.smartsheet.com\/profile\/gunnell","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-06-08T22:02:45+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,"attributes":{"question":{"status":"accepted","dateAccepted":"2023-06-08T20:09:01+00:00","dateAnswered":"2023-06-08T20:08:51+00:00","acceptedAnswers":[{"commentID":379713,"body":"


<\/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":106219,"type":"question","name":"Metrics NOT updating periodically as expected","excerpt":"Not sure if anyone is experiencing this. I've created a METRICS sheet for every project that sums up counts for Task Health in order to present on Dashboard through Graphs. I'm noticing that theses metrics are NOT automatically updated unless I refresh the page a dozen times OR re-write the exact same formula again. But…","categoryID":322,"dateInserted":"2023-06-08T17:33:54+00:00","dateUpdated":null,"dateLastComment":"2023-06-08T21:33:47+00:00","insertUserID":161931,"insertUser":{"userID":161931,"name":"Christine Cao","title":"Engagement Manager","url":"https:\/\/community.smartsheet.com\/profile\/Christine%20Cao","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-06-08T21:32:12+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"updateUserID":null,"lastUserID":161931,"lastUser":{"userID":161931,"name":"Christine Cao","title":"Engagement Manager","url":"https:\/\/community.smartsheet.com\/profile\/Christine%20Cao","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-06-08T21:32:12+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":4,"countViews":37,"score":null,"hot":3372508061,"url":"https:\/\/community.smartsheet.com\/discussion\/106219\/metrics-not-updating-periodically-as-expected","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/106219\/metrics-not-updating-periodically-as-expected","format":"Rich","tagIDs":[254],"lastPost":{"discussionID":106219,"commentID":379733,"name":"Re: Metrics NOT updating periodically as expected","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/379733#Comment_379733","dateInserted":"2023-06-08T21:33:47+00:00","insertUserID":161931,"insertUser":{"userID":161931,"name":"Christine Cao","title":"Engagement Manager","url":"https:\/\/community.smartsheet.com\/profile\/Christine%20Cao","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-06-08T21:32:12+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\/FUCVWKMTVZVX\/image.png","urlSrcSet":{"10":"","300":"","800":"","1200":"","1600":""},"alt":"image.png"},"attributes":{"question":{"status":"accepted","dateAccepted":"2023-06-08T21:32:09+00:00","dateAnswered":"2023-06-08T21:03:22+00:00","acceptedAnswers":[{"commentID":379727,"body":"

Hi @Christine Cao<\/a> <\/p>

No problem. Add a date column (and probably hide it). Then go the Automations button on the upper left of the sheet. From there, create new from scratch. I called my automation the same as the column I added; \"TODAY (sheet refresh)\". Below is how my settings are for the automation. I hope that does the trick. -Matt<\/p>

\n
\n \n \"image.png\"<\/img><\/a>\n <\/div>\n<\/div>\n


<\/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"}]}],"title":"Trending in Formulas and Functions ","subtitle":null,"description":null,"noCheckboxes":true,"containerOptions":[],"discussionOptions":[]}">

公式和函数趋势