比较计划日期和实际日期,并返回下一步的新预测开始日期

R12
R12
编辑04/22/22 内容基本知识

我处在一个项目数据网格中,列中的多个步骤有多个日期条目(计划的和实际的)。我想能够重新预测项目日期作为项目的进展时,实际日期列已输入。使用这些日期列:

PlannedStart1

PlannedEnd1 =(定义为PS1 -后5天,在这一列的公式中)

ActualStart1

ActualEnd1

PlannedStart2 = (AE1后1天,除非AE1为空,然后PE1后1天)

PlannedEnd2

ActualStart2…(等)

我试图创建一个公式,将基于ActualEndDate1是否已输入重新预测PlannedStart2。如果没有输入,则PlannedStart2= PlannedEnd1 +1天。如果ActualEndDate1不为空,则PlannedStart2=ActualEnd1 + 1天。

基本上,一个柱状项目计划将重新预测计划的和实际的步骤,当项目通过列中的步骤分组进行时,然后(在最后一列中)持续预测项目(行)的计算“结束日期”与另一列中行的原始计划结束日期。先谢谢你了。

最佳答案

  • 迈克电视
    迈克电视 ✭✭✭✭✭
    ✓回答

    示例表:

    image.png

    PlannedEnd1公式:

    =[PlannedStart1]@row + 5

    PlannedStart2公式:

    =IF(ISBLANK([ActualEnd1]@row), [PlannedEnd1]@row + 1, [ActualEnd1]@row + 1)

    PlannedEnd2公式:

    =[PlannedStart2]@row + 5

    这是你想要的吗?

答案

  • @R12

    项目的不同阶段不按行而按列部署,这有什么具体原因吗?如果这不是一个障碍,您想要做的事情可以从项目功能中受益,例如依赖关系而且基线自动执行您想要的计算。在下面的例子中,我在4列中设置了不同的实际和计划开始和结束日期,任务的每个阶段都是主任务的子任务,然后将整个任务信息汇总为父母上卷.你可以添加延迟到一个前任添加额外的日期在这里你可以找到更多的细节如何添加层次结构去完成你的任务。注意前辈是如何自动将一个(工作)天添加到子任务1的结束结束,使其成为子任务2的开始,以及如何在项目基线和方差列中自动跟踪每个任务的开始和结束日期的任何修改:

    截图2014-04-27 09.25.50.png

    如果出于某种原因,将您当前的项目配置水平地放在列中,而不是像上面的例子那样垂直地放在行中,那么下面的“PlannedEnd1”和“PlannedStart2”列中的公式应该达到您想要的效果。但是请注意,与上面的前任功能相反,当计划结束增加1天时,这些公式不会考虑工作日:

    • 对于计划结束1:=[计划开始1]@行+ 1
    • PlannedStart2:=IF([ActualEnd1]@row = "", [PlannedEnd1]@row + 1, [ActualEnd1]@row + 1)

    我希望这可以提供一些清晰和洞察你打算建立什么。请确保包括您的项目截图,确保任何机密数据是隐藏的,如果您需要进一步的建议。

    干杯!

    胡里奥

  • R12
    R12
    编辑04/28/22

    @Julio年代。不幸的是,我必须使用列,因为我们没有主任务和子任务,而是一个单一的任务作为行和跨顶部的步骤。每一步之间都是自动化的,当一个步骤完成时(例如,填写“实际”一栏),负责下一步的人会收到一封自动化的电子邮件。

    我看到过其他的公式是“接近的”,并在同一行的第三个单元格中提供一行中两个单元格的两个较大的值,但不使用if not BLANK。你能不能对一些连续的事情提供指导,例如,

    Col 1 =计划日期

    Col 2 =实际日期forstep1

    Col 3 = PlannedDateForStep2(等)

    给我一个计算的方法

    Col 3 = PlannedDateForStep1 + 5天除非ActualDateForStep1不是空的,然后在Col 3中使用ActualDateForStep1 ?

    “如果不是空白的”/“如果不是空白的”是令人困惑的。谢谢你!#公式


    示例:这显示一个值,如果实际日期被填写,但显示什么也没有,如果实际日期是空白的(我想它也能够显示计划的日期,如果实际没有填写)。而且它可能不正确,因为使用了“<”....这是别人的公式-我不关心大于或小于,只要计划+ 5,除非实际填了

    =IF(AND(ISDATE([Step1(PLANNED FINISH)]@row), ISDATE([Step1(ACTUAL)]@row)), IF([Step1(PLANNED FINISH)]@row < [Step1(ACTUAL)]@row, [Step1(ACTUAL)]@row), "")


    这是来自另一个线程的原始公式,我试图修改(不成功):=IF(和(ISDATE([施工文件完成计划]@行),ISDATE([施工文件完成实际]@行),IF([施工文件完成计划]@行<[施工文件完成实际]@行,[施工文件完成计划]@行,[施工文件完成实际]@行),"")

  • 迈克电视
    迈克电视 ✭✭✭✭✭
    ✓回答

    示例表:

    image.png

    PlannedEnd1公式:

    =[PlannedStart1]@row + 5

    PlannedStart2公式:

    =IF(ISBLANK([ActualEnd1]@row), [PlannedEnd1]@row + 1, [ActualEnd1]@row + 1)

    PlannedEnd2公式:

    =[PlannedStart2]@row + 5

    这是你想要的吗?

  • 谢谢你!@Matt C。-谢谢你的帮助。: -)

=COUNTIFS([Column4]:[Column4], HAS(@cell, \"orange\"))<\/p>"}]}},"status":{"statusID":3,"name":"Accepted","state":"closed","recordType":"discussion","recordSubType":"question","log":{"dateUpdated":"2022-12-06 09:37:44","updateUser":{"userID":154506,"name":"manasaMS","url":"https:\/\/community.smartsheet.com\/profile\/manasaMS","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2022-12-06T09:36:56+00:00","banned":0,"punished":0,"private":false,"label":"✭"}}},"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":98416,"type":"question","name":"Help creating reports from source data that share the Primary Column","excerpt":"Hello! I hope someone can help me with the query below. I have two Sheets that share the Primary Column but any other column is different . I want to create a report that displays the content from both sheets under the same line if they have a Primary column in common. In the example below, the row would display A under…","categoryID":321,"dateInserted":"2022-12-05T17:34:29+00:00","dateUpdated":null,"dateLastComment":"2022-12-06T04:03:55+00:00","insertUserID":155650,"insertUser":{"userID":155650,"name":"vponis","url":"https:\/\/community.smartsheet.com\/profile\/vponis","photoUrl":"https:\/\/lh3.googleusercontent.com\/a\/ALm5wu123eObw5fLQtcthrpqsoWY319L3hmQyAsPTpm6=s96-c","dateLastActive":"2022-12-06T04:02:48+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"updateUserID":null,"lastUserID":155650,"lastUser":{"userID":155650,"name":"vponis","url":"https:\/\/community.smartsheet.com\/profile\/vponis","photoUrl":"https:\/\/lh3.googleusercontent.com\/a\/ALm5wu123eObw5fLQtcthrpqsoWY319L3hmQyAsPTpm6=s96-c","dateLastActive":"2022-12-06T04:02:48+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":2,"countViews":21,"score":null,"hot":3340562304,"url":"https:\/\/community.smartsheet.com\/discussion\/98416\/help-creating-reports-from-source-data-that-share-the-primary-column","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/98416\/help-creating-reports-from-source-data-that-share-the-primary-column","format":"Rich","lastPost":{"discussionID":98416,"commentID":353243,"name":"Re: Help creating reports from source data that share the Primary Column","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/353243#Comment_353243","dateInserted":"2022-12-06T04:03:55+00:00","insertUserID":155650,"insertUser":{"userID":155650,"name":"vponis","url":"https:\/\/community.smartsheet.com\/profile\/vponis","photoUrl":"https:\/\/lh3.googleusercontent.com\/a\/ALm5wu123eObw5fLQtcthrpqsoWY319L3hmQyAsPTpm6=s96-c","dateLastActive":"2022-12-06T04:02:48+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,"image":{"url":"https:\/\/us.v-cdn.net\/6031209\/uploads\/DXWTGW439LHI\/image.png","urlSrcSet":{"10":"","300":"","800":"","1200":"","1600":""},"alt":"image.png"},"attributes":{"question":{"status":"accepted","dateAccepted":"2022-12-06T04:04:01+00:00","dateAnswered":"2022-12-06T04:03:55+00:00","acceptedAnswers":[{"commentID":353243,"body":"

Thank you for the quick reply kirstie858<\/strong><\/a>!<\/p>"}]}},"status":{"statusID":3,"name":"Accepted","state":"closed","recordType":"discussion","recordSubType":"question","log":{"dateUpdated":"2022-12-06 04:04:01","updateUser":{"userID":155650,"name":"vponis","url":"https:\/\/community.smartsheet.com\/profile\/vponis","photoUrl":"https:\/\/lh3.googleusercontent.com\/a\/ALm5wu123eObw5fLQtcthrpqsoWY319L3hmQyAsPTpm6=s96-c","dateLastActive":"2022-12-06T04:02:48+00:00","banned":0,"punished":0,"private":false,"label":"✭"}}},"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":98392,"type":"question","name":"Summary Formula Result in new Formula","excerpt":"I am generating multiple results in a Summary Sheet. I would like to use these results in a new formula within the same Summary, is this possible? SS_Result1 SS_Result2 new formula =sum([SS-Result1]-[SS-Result2]) otherwise I have to combine the formulas within each against themselves, kinda tedious","categoryID":321,"dateInserted":"2022-12-04T20:14:28+00:00","dateUpdated":null,"dateLastComment":"2022-12-05T14:48:26+00:00","insertUserID":154303,"insertUser":{"userID":154303,"name":"SkiPatrolScott","url":"https:\/\/community.smartsheet.com\/profile\/SkiPatrolScott","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2022-12-05T17:39:25+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"updateUserID":null,"lastUserID":154303,"lastUser":{"userID":154303,"name":"SkiPatrolScott","url":"https:\/\/community.smartsheet.com\/profile\/SkiPatrolScott","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2022-12-05T17:39:25+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":2,"countViews":20,"score":null,"hot":3340437774,"url":"https:\/\/community.smartsheet.com\/discussion\/98392\/summary-formula-result-in-new-formula","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/98392\/summary-formula-result-in-new-formula","format":"Rich","lastPost":{"discussionID":98392,"commentID":353136,"name":"Re: Summary Formula Result in new Formula","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/353136#Comment_353136","dateInserted":"2022-12-05T14:48:26+00:00","insertUserID":154303,"insertUser":{"userID":154303,"name":"SkiPatrolScott","url":"https:\/\/community.smartsheet.com\/profile\/SkiPatrolScott","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2022-12-05T17:39:25+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":"2022-12-05T14:48:17+00:00","dateAnswered":"2022-12-04T23:22:27+00:00","acceptedAnswers":[{"commentID":353095,"body":"

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

Yes, you can use an existing summary field in another summary field within the same sheet. You can either click into the formula field of the existing formula to add to new formula, or type out the field name. Summary fields use a # in place of a row indicator. Using your example from above:<\/p>

=new formula =[SS-Result1]#<\/strong>-[SS-Result2]#<\/strong><\/p>

If this doesn't make sense, help me understand where I lost you and I will try to explain it better.<\/p>

Kelly<\/p>"},{"commentID":353136,"body":"

Thanks @Kelly Moore<\/a> , I did have to add a ( around the equation ) but it did work.<\/p>

=sum([summary field1]#-[summary field2]) the correct answer was produced.<\/p>"}]}},"status":{"statusID":3,"name":"Accepted","state":"closed","recordType":"discussion","recordSubType":"question","log":{"dateUpdated":"2022-12-05 14:48:17","updateUser":{"userID":154303,"name":"SkiPatrolScott","url":"https:\/\/community.smartsheet.com\/profile\/SkiPatrolScott","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2022-12-05T17:39:25+00:00","banned":0,"punished":0,"private":false,"label":"✭"}}},"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":[]}],"title":"Trending in Using Smartsheet","subtitle":null,"description":null,"noCheckboxes":true,"containerOptions":[],"discussionOptions":[]}">