Excel #REF OFFSET 公式错误

Excel #REF error with OFFSET formmula

我有一个引用另一个 sheet 的 OFFSET 公式。当我单击按钮 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

试试,

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