简体   繁体   中英

Multible tables in Excel. Problems when adding new rows

I a spreadsheet I have 12 tables. 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.

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.

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. 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
  • Do not use tables. All references will be relative and copy behaves as you would expect.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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