过滤器只显示这周的日期??

vforte40
编辑12/09/19 公式和函数

我正在为我们的建筑公司做一个工程进度表。

我想能够有一个过滤器,只显示“开始日期”,等于这个星期或这个月。

这有可能吗?

«1

评论

帮助文章资源欧宝体育app官方888

\n \n https:\/\/community.smartsheet.com\/discussion\/comment\/349185#Comment_349185\n <\/a>\n<\/div>\n

Thanks for the suggestion, Michael! I made a slight tweak to the formula to ensure that an empty Due Date doesn't throw an error (as we want it to be blank), so this seems to be what is working for me:<\/p>

=IF([Project Type]@row = \"Review\", IFERROR(IF(NETWORKDAYS([Due Date]@row, [Actual Delivery Date]@row) < 0, NETWORKDAYS([Due Date]@row, [Actual Delivery Date]@row) + 1, IF(NETWORKDAYS([Due Date]@row, [Actual Delivery Date]@row) > 0, NETWORKDAYS([Due Date]@row, [Actual Delivery Date]@row) - 1)), \"//www.santa-greenland.com/community/discussion/comment/\"))<\/p>

Much appreciated!!<\/p>"}]}},"status":{"statusID":3,"name":"Accepted","state":"closed","recordType":"discussion","recordSubType":"question","log":{"dateUpdated":"2022-10-28 18:28:49","updateUser":{"userID":154338,"name":"RyanFMurphy","url":"https:\/\/community.smartsheet.com\/profile\/RyanFMurphy","photoUrl":"https:\/\/aws.smartsheet.com\/storageProxy\/image\/images\/u!1!x1jQ8UirIZQ!W7ldX3b-ZDo!YO6bd86eyZo","dateLastActive":"2022-10-28T18:37:12+00:00","banned":0,"punished":0,"private":false,"label":"✭"}}},"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":97104,"type":"question","name":"Check Box with multiple criteria","excerpt":"Hello - I am trying to get a checked box: If Column A value = Column B value, check box. However, I am also getting checked boxes when A and B are both blank which should not happen. Current formula is: =IF(AND([TRACcess Serial Number as Per TRACcess Manager]@row = [TRACcess Serial Number As Reported by Tech]@row), 1, 0)…","categoryID":322,"dateInserted":"2022-10-28T01:16:10+00:00","dateUpdated":null,"dateLastComment":"2022-10-28T13:34:26+00:00","insertUserID":154302,"insertUser":{"userID":154302,"name":"Mark Muenzen","url":"https:\/\/community.smartsheet.com\/profile\/Mark%20Muenzen","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2022-10-28T14:04:44+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"updateUserID":null,"lastUserID":154302,"lastUser":{"userID":154302,"name":"Mark Muenzen","url":"https:\/\/community.smartsheet.com\/profile\/Mark%20Muenzen","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2022-10-28T14:04:44+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":2,"countViews":26,"score":null,"hot":3333885036,"url":"https:\/\/community.smartsheet.com\/discussion\/97104\/check-box-with-multiple-criteria","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/97104\/check-box-with-multiple-criteria","format":"Rich","tagIDs":[254,437],"lastPost":{"discussionID":97104,"commentID":349118,"name":"Re: Check Box with multiple criteria","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/349118#Comment_349118","dateInserted":"2022-10-28T13:34:26+00:00","insertUserID":154302,"insertUser":{"userID":154302,"name":"Mark Muenzen","url":"https:\/\/community.smartsheet.com\/profile\/Mark%20Muenzen","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2022-10-28T14:04:44+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":"2022-10-28T13:49:44+00:00","dateAnswered":"2022-10-28T02:09:57+00:00","acceptedAnswers":[{"commentID":349078,"body":"

Hey @Mark Muenzen<\/a> <\/p>

The IF\/AND<\/strong> is only used when simultaneous conditions <\/strong>exist. IF the formula was only A=B, we would not use AND.<\/p>

But since you found that an additional condition is needed in order to obtain the expected result, the formula becomes:<\/p>

=IF(AND([TRACcess Serial Number as Per TRACcess Manager]@row = [TRACcess Serial Number As Reported by Tech]@row, [TRACcess Serial Number as Per TRACcess Manager]@row<>\"//www.santa-greenland.com/community/discussion/comment/\"),1)<\/p>

The <> means 'is not'. The double quotes mean blank. The formula reads if [TRACcess Serial Number as Per TRACcess Manager]@row equals [TRACcess Serial Number As Reported by Tech]@row AND the [TRACcess Serial Number as Per TRACcess Manager]@row is not blank, then 1. If these are not true then the formula does nothing, which will leave the cell blank. <\/p>

Does this work for you?<\/p>

Kelly<\/p>"}]}},"status":{"statusID":3,"name":"Accepted","state":"closed","recordType":"discussion","recordSubType":"question","log":{"dateUpdated":"2022-10-28 13:49:44","updateUser":{"userID":91566,"name":"Genevieve P.","title":"","url":"https:\/\/community.smartsheet.com\/profile\/Genevieve%20P.","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/userpics\/T4YLN045Q7TF\/n81H11L2YPG9T.jpg","dateLastActive":"2022-10-28T17:07:07+00:00","banned":0,"punished":0,"private":false,"label":"Employee Admin"}}},"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"},{"tagID":437,"urlcode":"conditional-formatting","name":"Conditional Formatting"}]},{"discussionID":97097,"type":"question","name":"What formulas should I use to count two criteria (including from a multiple dropdown option)?","excerpt":"I want to count \"Enrolled\" from \"Case Status\" AND \"Medicaid\" from \"Insurance Type.\" I used the COUNTIF formula, but it seems like Smartsheet isn't counting the Medicaid cell if it's within a cell with multiple criterias selected. Screenshots below: You can see that even though 2 fit the criteria, the sheet summary only…","categoryID":322,"dateInserted":"2022-10-27T20:52:45+00:00","dateUpdated":null,"dateLastComment":"2022-10-28T15:39:08+00:00","insertUserID":154291,"insertUser":{"userID":154291,"name":"pothosplant","url":"https:\/\/community.smartsheet.com\/profile\/pothosplant","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2022-10-28T15:38:45+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"updateUserID":null,"lastUserID":154291,"lastUser":{"userID":154291,"name":"pothosplant","url":"https:\/\/community.smartsheet.com\/profile\/pothosplant","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2022-10-28T15:38:45+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":2,"countViews":23,"score":null,"hot":3333876713,"url":"https:\/\/community.smartsheet.com\/discussion\/97097\/what-formulas-should-i-use-to-count-two-criteria-including-from-a-multiple-dropdown-option","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/97097\/what-formulas-should-i-use-to-count-two-criteria-including-from-a-multiple-dropdown-option","format":"Rich","tagIDs":[234,254],"lastPost":{"discussionID":97097,"commentID":349142,"name":"Re: What formulas should I use to count two criteria (including from a multiple dropdown option)?","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/349142#Comment_349142","dateInserted":"2022-10-28T15:39:08+00:00","insertUserID":154291,"insertUser":{"userID":154291,"name":"pothosplant","url":"https:\/\/community.smartsheet.com\/profile\/pothosplant","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2022-10-28T15:38: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,"image":{"url":"https:\/\/us.v-cdn.net\/6031209\/uploads\/3P7ZWW04TGQI\/countif-error-png.png","urlSrcSet":{"10":"","300":"","800":"","1200":"","1600":""},"alt":"COUNTIF Error.PNG"},"attributes":{"question":{"status":"accepted","dateAccepted":"2022-10-28T15:45:44+00:00","dateAnswered":"2022-10-28T13:42:03+00:00","acceptedAnswers":[{"commentID":349120,"body":"

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

Instead of using the CONTAINS( ) function, try using HAS( )<\/a> instead. This does an exact-match lookup and was designed to specifically handle multi-select dropdown and contact columns. Your formula would be:<\/p>

=COUNTIFS([Case Status]:[Case Status], \"Enrolled\", [Insurance Type]:[Insurance Type], HAS(@cell, \"Medicaid\"))<\/code><\/p>


<\/p>

-MCS<\/p>"}]}},"status":{"statusID":3,"name":"Accepted","state":"closed","recordType":"discussion","recordSubType":"question","log":{"dateUpdated":"2022-10-28 15:45:44","updateUser":{"userID":91566,"name":"Genevieve P.","title":"","url":"https:\/\/community.smartsheet.com\/profile\/Genevieve%20P.","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/userpics\/T4YLN045Q7TF\/n81H11L2YPG9T.jpg","dateLastActive":"2022-10-28T17:07:07+00:00","banned":0,"punished":0,"private":false,"label":"Employee Admin"}}},"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":234,"urlcode":"Health-care","name":"Healthcare"},{"tagID":254,"urlcode":"Formulas","name":"Formulas"}]}],"title":"Trending in Formulas and Functions ","subtitle":null,"description":null,"noCheckboxes":true,"containerOptions":[],"discussionOptions":[]}">