奇怪的公式行为
问候,
我正在开发一种解决方案,该解决方案会自动从生成的系统日期/时间自动捕获24小时时间(作为整数值)。目的是允许用户在平板电脑上使用表单,将一些信息字段输入三张纸。我的解决方案正确地转换了每张表中的时间:
上面是我的测试数据的一部分。黄色突出显示的第一列是自动系统日期/时间(灰色)的转换。第二和第三黄色的列是来自其他纸张的参考文献,这些参考使用相同的公式来计算24小时的转换。
我的问题来自试图用表格更新表。当提交新线路时,该公式的行为奇怪。
上面的数据与以前相同,但提交了新记录。现在,公式计算将适用于某些,但添加逗号或返回其他错误。
甚至陌生的人是,当我打开工作表并保存时,数据将返回到预期的值。
我将补充说,转换的公式很复杂(大约518个字符),具有多个链式功能。有什么想法,为什么我需要做这种“手动刷新”才能使公式工作?
谢谢
0
答案
在使用保存方法修复#invalid单元格之前,您创建另一张表格对#invalid单元的引用时会发生什么?它真的是一个破碎的公式还是只是显示问题?
我也有这样的人。一个非常复杂的预算表,在编辑和保存后显示错误,但是当我刷新时可以解决。每当我遇到它时,这都会让我感到紧张。
因此,您没有答案,但更多只是说不是您,它是智能表演。
也就是说,可能会有一些精炼可以清理它,或者我可以追逐超级复杂公式的哪一部分引起了问题,但我只是没有动力。
我的系统由我没有倒入一个单元格的一堆辅助柱组成,但我仍然无法弄清楚。
我的经常说#blocked
我认为它已连接到我看到的另一个问题 - 如果在其中有一个非常简单的T/F测试的语句,则确实很复杂,例如,如果在此单元格中存在某些内容,则会发出消息以清除单元格。而且没有其他条件会创建该消息。我清除了单元格,消息仍在那里。节省。消息仍然存在。刷新。消息消失了。
马特,
我的第一个屏幕截图中的主表确实会引起单元格的参考,并在其引用表中精确拉出值:
So, no answer for you, but more just saying that it's not you, it's Smartsheet.<\/p>
That said, there might be some refinement that can clean it up, or maybe I can chase down which part of the super complex formula is causing the issue, but I just haven't had the motivation.<\/p>
My system is made up of a bunch of helper columns that I have not collapsed into one cell, and I still can't figure it out.<\/p>
Mine often say #BLOCKED<\/p>
I think it's connected to another problem that I have seen - really complex IF statements which have one really simple T\/F test in them, like, if something is in this cell, then MESSAGE TO CLEAR THE CELL. And there is no other condition that creates that message. I clear the cell, message is still there. Save. Message still there. Refresh. Message goes away.<\/p>","bodyRaw":"[{\"insert\":\"I have one like this too. A pretty complicated budget sheet that shows errors while editing, and after saving, but which resolves when I refresh. It makes me nervous every time I encounter it.\\nSo, no answer for you, but more just saying that it's not you, it's Smartsheet.\\nThat said, there might be some refinement that can clean it up, or maybe I can chase down which part of the super complex formula is causing the issue, but I just haven't had the motivation.\\nMy system is made up of a bunch of helper columns that I have not collapsed into one cell, and I still can't figure it out.\\nMine often say #BLOCKED\\nI think it's connected to another problem that I have seen - really complex IF statements which have one really simple T\\\/F test in them, like, if something is in this cell, then MESSAGE TO CLEAR THE CELL. And there is no other condition that creates that message. I clear the cell, message is still there. Save. Message still there. Refresh. Message goes away.\\n\"}]","format":"rich","dateInserted":"2022-04-29T00:00:46+00:00","insertUser":{"userID":127181,"name":"James Keuning","title":"","url":"https:\/\/community.smartsheet.com\/profile\/James%20Keuning","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2022-05-02T20:31:59+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭"},"displayOptions":{"showUserLabel":false,"showCompactUserInfo":true,"showDiscussionLink":false,"showPostLink":false,"showCategoryLink":false,"renderFullContent":false,"expandByDefault":false},"url":"https:\/\/community.smartsheet.com\/discussion\/comment\/327818#Comment_327818","embedType":"quote"}"> https://community.smartsheet.com/discussion/comment/327818#comment_327818
詹姆士,
就您的观点而言,如果在辅助列上建立语句(系统/时间,日期已删除的日期/时间)也是复杂的。在下面,我将其分为更可读的格式:
其他,更简单的公式转移并通过新条目轻松调整 - 这是我在其他项目中所依赖的,以触发事件,当用户输入数据时。这是我对这种复杂性和长度的第一个公式。
不确定如何优化这种逻辑 - 我想省略“ AM/PM”字符以使公式较小,但是我需要它们的24小时逻辑(除非我使用条件辅助列?)。
我很抱歉,我只是注意到我的第一篇和上一篇文章中的屏幕截图呈现不正确的结果。
这是具有正确值的实际最终结果。没有更改时间公式或其引用的表,只能清爽和保存以重新计算所有床单上的价值。
不确定您在其他表中的公式是什么,而只是一个一般观察结果,并且可能会从屏幕截图中提示:
如果您注意到所有错误是针对那些日期/时间值中的时间为单位数小时的行。例如,04/28/22 2:28 pm而不是04/28/22 02:28 PM。检查您的转换公式是否错误是否是单位数字。