工作流将日期更新为TODAY(),直到另一个单元格= 100%
我在一列中有2个单元格:
- 哪个显示1-100之间的%
- 哪个应该显示日期
是否有可能使用工作流或其他自动化每天(在12:01am或任何其他时间)将日期字段更新为TODAY(),但一旦%字段= 100%就停止更新?
提前感谢!
最佳答案
-
Krissia B。 主持人
谢谢你提供更多的细节。此时,当您不使用date列时,没有一个直接的方法来完成您试图完成的记录日期,但这是一个好主意!请提交改进请求在Smartsheet的未来发展中考虑到这一点。
同时,另一种解决方案是创建一个可以隐藏的辅助列(日期列),然后将其转换为“项目结束日期”下的文本值。看看下面我的示例,看看它看起来是什么样子!
用于项目结束日期的公式。我使用了IFERROR函数,这样如果% Complete不是100%,它就不会给出错误消息。我用了"未完成"或者你也可以留空,这取决于你。
= IFERROR(如果(月([Proj1 -结束日期]@row) = 1,“1”,如果月([Proj1 -结束日期]@row) = 2,“2”,如果月([Proj1 -结束日期]@row) = 3,“3”,如果月([Proj1 -结束日期]@row) = 4,“四月”,如果月([Proj1 -结束日期]@row) = 5,“可能”,如果月([Proj1 -结束日期]@row) = 6,“6月”,如果月([Proj1 -结束日期]@row) = 7,“7”,如果月([Proj1 -结束日期]@row) = 8,“8”,如果月([Proj1 -结束日期]@row) = 9,“九月”,如果月([Proj1 -结束日期]@row) = 10,“十月”,IF(MONTH([Proj1 -结束日期]@row) = 11, "十一月",IF(MONTH([Proj1 -结束日期]@row) = 12, "十二月"))))))))))))+ " " + DAY([Proj1 -结束日期]@row) + ", " + YEAR([Proj1 -结束日期]@row), "未完成"
然后我使用了隐藏助手列(日期列)的公式作为参考。
=IF([Proj1]5 = 1, TODAY())
希望这对你有帮助!
欢呼~
Krissia
答案
-
Devin李 ✭✭✭✭✭
在字段中设置公式=Today(),然后在达到100%时自动记录日期。仅供参考,日期记录不适合依赖项。更多信息可以在下面的链接中找到。
https://help.smartsheet.com/articles/2481986-set-the-current-date-with-record-a-date-action
-
谢谢-我的问题有点不同,但可能是因为我设置了我的表格有点奇怪。没有日期列-表格被用来显示不同的里程碑从其他项目拉进来,如下所示。因此,每个项目/外部表都是一个列,以便进行其他计算(Workstream1的公式是完成子任务/子任务总数的计数)。这适用于所有单元格,除了单元格“项目结束日期”,我想设置为今天(),直到“%完成”=100%。但因为列是Proj1,并不是一个日期列(它有日期,数字,文本),我不确定你建议的工作流程将工作。有可能实现我试图用这个设置做的事情吗?如果没有,我可以继续手动放入项目结束日期,因为工作表的其余部分工作。
-
Krissia B。 主持人
谢谢你提供更多的细节。此时,当您不使用date列时,没有一个直接的方法来完成您试图完成的记录日期,但这是一个好主意!请提交改进请求在Smartsheet的未来发展中考虑到这一点。
同时,另一种解决方案是创建一个可以隐藏的辅助列(日期列),然后将其转换为“项目结束日期”下的文本值。看看下面我的示例,看看它看起来是什么样子!
用于项目结束日期的公式。我使用了IFERROR函数,这样如果% Complete不是100%,它就不会给出错误消息。我用了"未完成"或者你也可以留空,这取决于你。
= IFERROR(如果(月([Proj1 -结束日期]@row) = 1,“1”,如果月([Proj1 -结束日期]@row) = 2,“2”,如果月([Proj1 -结束日期]@row) = 3,“3”,如果月([Proj1 -结束日期]@row) = 4,“四月”,如果月([Proj1 -结束日期]@row) = 5,“可能”,如果月([Proj1 -结束日期]@row) = 6,“6月”,如果月([Proj1 -结束日期]@row) = 7,“7”,如果月([Proj1 -结束日期]@row) = 8,“8”,如果月([Proj1 -结束日期]@row) = 9,“九月”,如果月([Proj1 -结束日期]@row) = 10,“十月”,IF(MONTH([Proj1 -结束日期]@row) = 11, "十一月",IF(MONTH([Proj1 -结束日期]@row) = 12, "十二月"))))))))))))+ " " + DAY([Proj1 -结束日期]@row) + ", " + YEAR([Proj1 -结束日期]@row), "未完成"
然后我使用了隐藏助手列(日期列)的公式作为参考。
=IF([Proj1]5 = 1, TODAY())
希望这对你有帮助!
欢呼~
Krissia
-
谢谢你!我会的!
帮助文章参考资料欧宝体育app官方888
类别
What about this:<\/p>
=IFERROR(ROUND((COUNTIFS(CHILDREN(), OR(@cell = \"Pass\", @cell = \"Fail-4Front Review\", @cell = \"Fail-Shorr Review\", @cell = \"Re-Test Ready\")) \/ COUNTIFS(CHILDREN(), @cell <> \"//www.santa-greenland.com/community/discussion/comment/\")) * 100) + \"%\", \"//www.santa-greenland.com/community/discussion/comment/\")<\/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":105740,"type":"question","name":"Formula to count number of items if it matches both headings.","excerpt":"Hello, I am currently stuck on this formula. I'm not sure what I'm doing wrong but the formula keeps on providing a return of \"1\" for everything, when I know I have \"2\" counts of items which are under category 1 and have a status of in progress. =COUNT(COLLECT({Status}, $Label@row, {Project Category}, [Category 1]$1)) Any…","categoryID":322,"dateInserted":"2023-05-26T17:10:14+00:00","dateUpdated":null,"dateLastComment":"2023-05-26T20:18:53+00:00","insertUserID":160666,"insertUser":{"userID":160666,"name":"Joyce W","title":"Business Analyst","url":"https:\/\/community.smartsheet.com\/profile\/Joyce%20W","photoUrl":"https:\/\/aws.smartsheet.com\/storageProxy\/image\/images\/u!1!ZYDq2b_lcvo!7rEq-_P-XHo!ATPah0gLcYz","dateLastActive":"2023-05-26T20:19:01+00:00","banned":0,"punished":0,"private":true,"label":"✭✭"},"updateUserID":null,"lastUserID":160666,"lastUser":{"userID":160666,"name":"Joyce W","title":"Business Analyst","url":"https:\/\/community.smartsheet.com\/profile\/Joyce%20W","photoUrl":"https:\/\/aws.smartsheet.com\/storageProxy\/image\/images\/u!1!ZYDq2b_lcvo!7rEq-_P-XHo!ATPah0gLcYz","dateLastActive":"2023-05-26T20:19:01+00:00","banned":0,"punished":0,"private":true,"label":"✭✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":3,"countViews":43,"score":null,"hot":3370255147,"url":"https:\/\/community.smartsheet.com\/discussion\/105740\/formula-to-count-number-of-items-if-it-matches-both-headings","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/105740\/formula-to-count-number-of-items-if-it-matches-both-headings","format":"Rich","lastPost":{"discussionID":105740,"commentID":377789,"name":"Re: Formula to count number of items if it matches both headings.","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/377789#Comment_377789","dateInserted":"2023-05-26T20:18:53+00:00","insertUserID":160666,"insertUser":{"userID":160666,"name":"Joyce W","title":"Business Analyst","url":"https:\/\/community.smartsheet.com\/profile\/Joyce%20W","photoUrl":"https:\/\/aws.smartsheet.com\/storageProxy\/image\/images\/u!1!ZYDq2b_lcvo!7rEq-_P-XHo!ATPah0gLcYz","dateLastActive":"2023-05-26T20:19:01+00:00","banned":0,"punished":0,"private":true,"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\/S9FSNBMUTXYC\/image.png","urlSrcSet":{"10":"","300":"","800":"","1200":"","1600":""},"alt":"image.png"},"attributes":{"question":{"status":"accepted","dateAccepted":"2023-05-26T20:18:59+00:00","dateAnswered":"2023-05-26T18:31:55+00:00","acceptedAnswers":[{"commentID":377757,"body":"
Not sure you need \"COLLECT\" here (or the fixed reference to the Label column). <\/p>
Try this instead: =COUNTIFS({Status}, Label@row, {Project Category}, [Category 1]$1)<\/p>
I created some sample data (including a cross-sheet), and this worked.<\/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":105743,"type":"question","name":"How do I create an if blank then this and if populated then that statement?","excerpt":"Hello! Below is my current formula for a column to calculate days behind. =[Planned Start Date]@row - TODAY() The problem is we want this sheet to be accurate without having to have cells have different formulas. What I would like it to calculate is IF [Actual Start Date]@row is populated, then [Planned Start Date]@row -…","categoryID":322,"dateInserted":"2023-05-26T18:24:49+00:00","dateUpdated":null,"dateLastComment":"2023-05-26T18:47:05+00:00","insertUserID":161837,"insertUser":{"userID":161837,"name":"AMcElfresh","url":"https:\/\/community.smartsheet.com\/profile\/AMcElfresh","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-05-26T19:50:53+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"updateUserID":null,"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-05-28T15:15:46+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭✭✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":3,"countViews":94,"score":null,"hot":3370254114,"url":"https:\/\/community.smartsheet.com\/discussion\/105743\/how-do-i-create-an-if-blank-then-this-and-if-populated-then-that-statement","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/105743\/how-do-i-create-an-if-blank-then-this-and-if-populated-then-that-statement","format":"Rich","lastPost":{"discussionID":105743,"commentID":377764,"name":"Re: How do I create an if blank then this and if populated then that statement?","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/377764#Comment_377764","dateInserted":"2023-05-26T18:47:05+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-05-28T15:15:46+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-05-26T18:42:42+00:00","dateAnswered":"2023-05-26T18:32:54+00:00","acceptedAnswers":[{"commentID":377758,"body":"
Hi @AMcElfresh<\/a> <\/p> I hope you're well and safe!<\/p> Try something like this.<\/p> =IF([Actual Start Date]@row <> \"//www.santa-greenland.com/community/discussion/comment/\", [Planned Start Date]@row - [Actual Start Date]@row, [Planned Start Date]@row - TODAY())<\/p> Did that work\/help? <\/p> I hope that helps!<\/p> Be safe, and have a fantastic weekend!<\/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":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":[]}">