Excel 2003 DSUM 不工作

发布于 2024-11-23 19:53:05 字数 471 浏览 1 评论 0原文

我的一个客户有一个在 excel 2003 中编写和运行的主要应用程序(我知道,他们也知道,这是一个错误,他们正在等待它正确地合并到他们的 SAP 应用程序中。他们已经等待了很多年)。大多数时候它工作正常,但是本周他们遇到了问题,数据返回#value 条目。

当我研究这个问题时,我发现 DSUM 函数正在返回#value,然后该值被传播到其他地方(我是否提到过 VBA 代码中没有数据验证?)当我查看该函数时,它是使用条件对单独工作表中的一列进行求和,它确定了数据中的许多问题,但即使我修复了这些问题,并且函数分析表明没有错误,它仍然返回#value。

我会发布一些代码,但涉及到 4700 行表,这是相当不切实际的。谁能建议我可以做些什么来取得进展?当源工作表中没有任何错误指示时,为什么 DSUM 返回 #value 问题?我已经搜索了该列,所有值都是有效数字。

抱歉有点含糊,但如果有人能给我关于如何进步的建议,我将不胜感激。 Excel 和 VBA 并不是我真正的专长。

A client of mine has a major application written and running in excel 2003 ( I know, and they know, that it is a mistake, and they are waiting for it to be properly incorporated into their SAP application. They have been waiting for many years. ). Most of the time it works fine, however this week they had a problem, and the data was returning #value entries.

As I looking into this, I identified that a DSUM function was returning #value, which was then being spread across other places ( did I mention that there is no data verification in the VBA code? ) When I looked at the function, which is summing a column in a separate sheet, with a conditional, it identified a number of problems in the data, but even when I fixed them, and the Function analysis indicated no errors, it still returned #value.

I would post some of the code, but there is a 4700 row sheet involved, which is rather inpractical. Can anyone suggest what I might be able to do to progress this? Why is the DSUM returning #value problems, when there is no indication of any errors in the source sheet? I have searched through the column, and all of the values are valid numbers.

Sorry to be a little vague, but if anyone can give me suggestions as to how to progress, it would be appreciated. Excel and VBA are not my real specialities.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

沫离伤花 2024-11-30 19:53:05

我获得 #value 的唯一方法是 3 倍:

  1. 如果条件(第三个参数)包含的单元格少于 2 个。
  2. 如果数据中包含传播通过的#VALUE。
  3. 或者,如果数据库/表的第一行包含值而不是文本(即使在我的示例中格式化为文本的数字也会失败)。

您是否还保留有问题的电子表格版本?可能值得确保第一行数据出现错误,特别是看起来像文本但其中包含值的单元格(即,单元格格式可用于显示文本,即使单元格中有值,或者如果第一行也是计算)。

希望这对您有所帮助,并让我们知道您的进展情况。

戴夫

The only way I could get a #value was 3 fold:

  1. If the criteria (the 3rd parameter) contained less that 2 cells.
  2. If the data had a #VALUE in it that was propagated through.
  3. Or if the first row of the database/table contained a value instead of text (even a number formatted as text fails in my example).

Do you still have the offending version of the spreadsheet? Might be worth ensuring the first row of data for errors particularly cells that look like text but have values in them (i.e., cell formatting can be used to display text even if there is a value in the cell, or if the first row is also calculated).

Hope this helps, and do let us know how you get on.

Dave

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文