【问题标题】:Excel #REF error with OFFSET formmula带有偏移公式的 Excel #REF 错误
【发布时间】:2018-11-04 07:25:47
【问题描述】:

我有一个引用另一张表的偏移公式。当我单击按钮 1 时,活动行被删除,其余行向上移动。一切正常,但当行向上移动时,我不断收到 #REF 错误。有没有更好的公式可以避免此类错误?

这是我所拥有的:

Active Cell is C7, clicking button 1 will clear that row on a a different sheet and shift the bottom rows up

Here's what happens after

【问题讨论】:

  • 那些上移基本上是删除操作,因此导致#REF!错误。 Offset 函数的第一个参数是引用,它被删除或删除,它显示#REF!。

标签: vba excel excel-formula ref


【解决方案1】:

试试,

=index(sheet2!c:c, 2+$a$34)

【讨论】:

  • 谢谢!这似乎可以解决问题,请详细说明这是如何工作的?
猜你喜欢
  • 1970-01-01
  • 2018-11-03
  • 1970-01-01
  • 2023-02-04
  • 1970-01-01
  • 1970-01-01
  • 2017-11-04
  • 1970-01-01
  • 2022-01-15
相关资源
最近更新 更多