简体   繁体   English

Excel中的多重表格。 添加新行时出现问题

[英]Multible tables in Excel. Problems when adding new rows

I a spreadsheet I have 12 tables. 我有一个电子表格,其中有12个表格。 They are all build as copies of the first one. 它们都是作为第一个的副本构建的。

In the table I have a lot of formulas,eg 桌子上我有很多公式,例如

 =Round([@[Købspris pr stk]]/(100-[@[DG pr stk]])*100;2)

When I insert new rows, by Ctrl + or others, The new row should hold a copy of the actual row. 当我按Ctrl +或其他键插入新行时,新行应包含实际行的副本。

Instead the formula in the new row is: 相反,新行中的公式为:

=Round(KalkulationDKK1[@[Købspris pr stk]]/(100-KalkulationDKK1[@[DG pr stk]])*100;2)

"KalkulationDKK1" is the table name of the original table. “ KalkulationDKK1”是原始表的表名。

I can't see why, and I can't fix it. 我不明白为什么,也无法解决。

Any Ideas? 有任何想法吗?

When you are using tables, Excel will default to structured references instead of relative references. 使用表时,Excel将默认使用结构化引用,而不是相对引用。 Here are some suggestions to what you can do: 以下是一些有关您可以做什么的建议:

  • Edit the formulas after copying them, and manually remove the table name. 复制公式后,对其进行编辑,然后手动删除表名。
  • Edit the formulas to use relative references instead of structured references before copying them. 编辑公式以在复制它们之前使用相对引用而不是结构化引用。
  • Combine all 12 tables into 1 table, using an extra column to distinguish between them 将所有12个表合并为1个表,并使用额外的列来区分它们
  • Do not use tables. 不要使用表格。 All references will be relative and copy behaves as you would expect. 所有引用都是相对的,并且复制行为符合您的预期。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM