计算工作日,不包括周末(经过的天数)
我找到了解决办法。”如何计算机票的开放/关闭天数,但是,我需要的公式只计算工作日,不包括周末。我尝试了几种不同的方法,但不能让它正常工作。
任何帮助将非常感激!
这是一个有效的公式,但我只需要计算工作日
=IF([项目完成日期]@row <> "",[项目完成日期]@row -[项目开始日期]@row, IF([项目开始日期]@row <> "",今天()-[项目开始日期]@row))
最佳答案
-
卡森Penticuff ✭✭
这两种方法都可以。他们只是从不同的方向接近逻辑。
=IF([项目完成日期]@row <> "", NETWORKDAYS([项目开始日期]@row,[项目完成日期]@row), NETWORKDAYS([项目开始日期]@row, TODAY()))
=IF([项目完成日期]@row = "", NETWORKDAYS([项目开始日期]@row, TODAY()), NETWORKDAYS([项目开始日期]@row,[项目完成日期]@row))
答案
-
保罗新来的 ✭✭✭✭✭✭
-
塞内加 ✭
你好Paul,谢谢你的反馈,但是,我不想“返回工作天数”两次约会之间"
这是经过的天数(还没有结束日期)。正如你在上面的截图中所看到的,没有项目完成日期,但它仍然会计算天数。
我上面展示的公式工作得很好,我确实注意到我的SmartSheet中的天数从昨天到今天自动增加了一天,但我不想算周末。
再次感谢你,希望你能帮上忙!
如果你有解决方案,你能告诉我怎么写吗?我不擅长创建公式,但我擅长发现它们:)并根据它们的复杂程度进行相应的调整。
-
保罗新来的 ✭✭✭✭✭✭
正确的。您可以使用NETWORKDAYS函数代替Date减去Date。其中的另一个“日期”可以是今天。
因此,不是说[完成日期]-[开始日期]或今天-[开始日期]取决于IF的真/假,你会说[完成日期]和[开始日期]之间的NETWORKDAYS或今天()和[开始日期]之间的NETWORKDAYS。
thinkspi.com
-
塞内加 ✭
谢谢,保罗,但我完全迷路了。就像我说的,我不擅长写公式,我擅长找公式和调整,但我还是不明白这个公式应该是什么样子。我从上面尝试了你的信息,但它不起作用,因为我知道我没有在正确的上下文中插入正确的信息。
不管怎样,谢谢你
-
卡森Penticuff ✭✭
这两种方法都可以。他们只是从不同的方向接近逻辑。
=IF([项目完成日期]@row <> "", NETWORKDAYS([项目开始日期]@row,[项目完成日期]@row), NETWORKDAYS([项目开始日期]@row, TODAY()))
=IF([项目完成日期]@row = "", NETWORKDAYS([项目开始日期]@row, TODAY()), NETWORKDAYS([项目开始日期]@row,[项目完成日期]@row))
-
塞内加 ✭
谢谢你,卡森,他们都做得很好!
哦吼!
这么多年来,我一直在研究不同情况下的公式,并进行相应的调整,但这个公式把我难住了。
再次感谢!
类别
<\/p>
You can send notifications to any valid email address. If you're planning to send alerts or reminders with a link to the sheet, the user will not be able to click the link and access it if they do not have a Smartsheet account and not shared to the sheet.<\/p>"}]}},"status":{"statusID":3,"name":"Accepted","state":"closed","recordType":"discussion","recordSubType":"question"},"bookmarked":false,"unread":false,"category":{"categoryID":321,"name":"Smartsheet Basics","url":"https:\/\/community.smartsheet.com\/categories\/smartsheet-basics%2B","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":106377,"type":"question","name":"Data Shuttle connection to Sharepoint disconnects randomally","excerpt":"I have a recurring Data Shuttle process and randomly it'll stop running. Upon inspection, I'll see the connection between Sharepoint and Data Shuttle has been disconnected and I'm forced to authenticate again. Has anyone experienced this or know if there's any documentation about this?","categoryID":343,"dateInserted":"2023-06-13T15:20:03+00:00","dateUpdated":null,"dateLastComment":"2023-06-18T12:58:54+00:00","insertUserID":162327,"insertUser":{"userID":162327,"name":"SmartSheetUser201","url":"https:\/\/community.smartsheet.com\/profile\/SmartSheetUser201","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-06-13T15:20:05+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"updateUserID":null,"lastUserID":161820,"lastUser":{"userID":161820,"name":"Hamza1","title":"Mr","url":"https:\/\/community.smartsheet.com\/profile\/Hamza1","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-06-18T13:07:06+00:00","banned":0,"punished":0,"private":false,"label":"Moderator"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":1,"countViews":35,"score":null,"hot":3373763337,"url":"https:\/\/community.smartsheet.com\/discussion\/106377\/data-shuttle-connection-to-sharepoint-disconnects-randomally","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/106377\/data-shuttle-connection-to-sharepoint-disconnects-randomally","format":"Rich","tagIDs":[334],"lastPost":{"discussionID":106377,"commentID":381099,"name":"Re: Data Shuttle connection to Sharepoint disconnects randomally","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/381099#Comment_381099","dateInserted":"2023-06-18T12:58:54+00:00","insertUserID":161820,"insertUser":{"userID":161820,"name":"Hamza1","title":"Mr","url":"https:\/\/community.smartsheet.com\/profile\/Hamza1","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-06-18T13:07:06+00:00","banned":0,"punished":0,"private":false,"label":"Moderator"}},"breadcrumbs":[{"name":"Home","url":"https:\/\/community.smartsheet.com\/"},{"name":"Using Smartsheet","url":"https:\/\/community.smartsheet.com\/categories\/using-smartsheet"},{"name":"Add Ons and Integrations","url":"https:\/\/community.smartsheet.com\/categories\/apps-and-integrations"}],"groupID":null,"statusID":3,"attributes":{"question":{"status":"accepted","dateAccepted":"2023-06-18T13:03:23+00:00","dateAnswered":"2023-06-18T12:58:54+00:00","acceptedAnswers":[{"commentID":381099,"body":"
@SmartSheetUser201<\/a> <\/p> If the behaviour occurs randomly or its intermittent, please submit a ticket to the Support team through the customer support portal<\/a> providing the following information:<\/p> You may also want to run through the initial troubleshooting steps in this article<\/a> to see if it helps:<\/p> Thanks,<\/p> Hamza<\/p>"}]}},"status":{"statusID":3,"name":"Accepted","state":"closed","recordType":"discussion","recordSubType":"question"},"bookmarked":false,"unread":false,"category":{"categoryID":343,"name":"Add Ons and Integrations","url":"https:\/\/community.smartsheet.com\/categories\/apps-and-integrations","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":334,"urlcode":"automations","name":"Automations"}]},{"discussionID":106482,"type":"question","name":"Smartsheet Bridge","excerpt":"Hi, I'm on Enterprise Plan and I'm trying to use Bridge but cannot log in to it. I actually had to dig the login link from the forums because I could not find it anywhere else, and when I try to sign in using my Smartsheet account it says \"Unable to log in with Smartsheet credentials at this time, try using Bridge…","categoryID":321,"dateInserted":"2023-06-15T08:35:55+00:00","dateUpdated":"2023-06-15T08:38:14+00:00","dateLastComment":"2023-06-16T08:51:39+00:00","insertUserID":149908,"insertUser":{"userID":149908,"name":"orad","url":"https:\/\/community.smartsheet.com\/profile\/orad","photoUrl":"https:\/\/aws.smartsheet.com\/storageProxy\/image\/images\/u!1!pDFQaXDtqPs!u9_Rl3ztpP0!b22gvzMblTD","dateLastActive":"2023-06-18T01:37:53+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"updateUserID":149908,"lastUserID":8888,"lastUser":{"userID":8888,"name":"Andrée Starå","title":"Smartsheet Expert Consultant & Partner | Workflow Consultant \/ CEO @ WORK BOLD","url":"https:\/\/community.smartsheet.com\/profile\/Andr%C3%A9e%20Star%C3%A5","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/userpics\/0PAU3GBYQLBT\/nXWM7QXGD6464.jpg","dateLastActive":"2023-06-18T23:01:03+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭✭✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":3,"countViews":44,"score":null,"hot":3373725454,"url":"https:\/\/community.smartsheet.com\/discussion\/106482\/smartsheet-bridge","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/106482\/smartsheet-bridge","format":"Rich","tagIDs":[369,448],"lastPost":{"discussionID":106482,"commentID":380976,"name":"Re: Smartsheet Bridge","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/380976#Comment_380976","dateInserted":"2023-06-16T08:51:39+00:00","insertUserID":8888,"insertUser":{"userID":8888,"name":"Andrée Starå","title":"Smartsheet Expert Consultant & Partner | Workflow Consultant \/ CEO @ WORK BOLD","url":"https:\/\/community.smartsheet.com\/profile\/Andr%C3%A9e%20Star%C3%A5","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/userpics\/0PAU3GBYQLBT\/nXWM7QXGD6464.jpg","dateLastActive":"2023-06-18T23:01:03+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭✭✭"}},"breadcrumbs":[{"name":"Home","url":"https:\/\/community.smartsheet.com\/"},{"name":"Using Smartsheet","url":"https:\/\/community.smartsheet.com\/categories\/using-smartsheet"},{"name":"Smartsheet Basics","url":"https:\/\/community.smartsheet.com\/categories\/smartsheet-basics%2B"}],"groupID":null,"statusID":3,"attributes":{"question":{"status":"accepted","dateAccepted":"2023-06-16T04:53:08+00:00","dateAnswered":"2023-06-15T09:36:11+00:00","acceptedAnswers":[{"commentID":380710,"body":" Hi @orad<\/a> <\/p> I hope you're well and safe!<\/p> Bridge is a Premium Add-on\/app that needs to be acquired separately. It's not included with the Enterprise license.<\/p> Here's a possible workaround or workarounds <\/strong><\/p> I recently developed an SMS solution for a client using 3rd-party services, Zapier and Twilio.<\/p> Is that an option?<\/p> I hope that helps!<\/p> Be safe, and have a fantastic week!<\/p> Best,<\/p> Andrée Starå<\/strong><\/a> | Workflow Consultant \/ CEO @ WORK BOLD<\/strong><\/a><\/p> ✅Did my post(s) help or answer your question or solve your problem? Please support the Community by <\/em>marking it Insightful\/Vote Up, Awesome, or\/and as the accepted answer<\/em><\/strong>. It will make it easier for others to find a solution or help to answer!<\/em><\/p>"}]}},"status":{"statusID":3,"name":"Accepted","state":"closed","recordType":"discussion","recordSubType":"question"},"bookmarked":false,"unread":false,"category":{"categoryID":321,"name":"Smartsheet Basics","url":"https:\/\/community.smartsheet.com\/categories\/smartsheet-basics%2B","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":369,"urlcode":"bridge-by-smartsheet","name":"Bridge"},{"tagID":448,"urlcode":"workflows-in-smartsheet","name":"Workflows in Smartsheet"}]}],"initialPaging":{"nextURL":"https:\/\/community.smartsheet.com\/api\/v2\/discussions?page=2&categoryID=341&includeChildCategories=1&type%5B0%5D=Question&excludeHiddenCategories=1&sort=-hot&limit=3&expand%5B0%5D=all&expand%5B1%5D=-body&expand%5B2%5D=insertUser&expand%5B3%5D=lastUser&status=accepted","prevURL":null,"currentPage":1,"total":5381,"limit":3},"title":"Trending in Using Smartsheet","subtitle":null,"description":null,"noCheckboxes":true,"containerOptions":[],"discussionOptions":[]}">
<\/p>