0

我正在使用 OpenOffice 中的电子表格。这个电子表格已经有每一行的公式。我需要在此电子表格中添加其他行,但不知道如何这样做才能复制公式但将其应用于该行。

例如,每行有 8 列 (AH),并且在 D、F、G 和 H 中有公式。公式适用于每一行,例如工作表上的最后一行是第 6 行,所以公式读取例如:=+B6*C6、=+E6*B6 等。

假设我需要添加使用相同公式的第 7 行,但不想为每个新行手动输入它以便应用(例如:=+B7*C7 等)我将如何完成这个?

4

5 回答 5

2

正常的复制和粘贴就可以了。这就是电子表格的美妙之处。虽然公式看起来像是“B6”,但它实际上在内部存储为“左侧三个单元格”,因此当您将其复制到下面的行时,它仍然是“左侧三个单元格”,只是它显示为 B7 .

于 2011-10-28T16:03:18.050 回答
2

您还可以选择(单击)带有公式的单元格,然后拖动所选内容右下角的黑色小方块,向下重复您需要的次数。

于 2011-10-28T19:10:22.700 回答
2

我找到了一个方法。选择整行(单击行号),按住 Ctrl+Alt 并将行拖到下面的行。它将复制+插入该行。

您还可以复制整行并“选择性粘贴”(Ctrl+Shift+V)选择向下移动单元格的选项

我只是没有找到一种方法来一次插入多行数据。

(我现在这是一篇旧帖子,但它是为了帮助人们在 Google 上查找)

于 2015-01-29T16:45:02.790 回答
1

Excel 表格会在添加新行时自动填充公式。复制/填写公式听起来很容易,但用户通常无法理解或记住进行填写。OpenOffice/libre office 等,需要能够做到。

于 2015-10-03T02:37:25.730 回答
1

Although new rows with copied formulas can be inserted anywhere for any reason, these instructions assume that you have spreadsheet with many data rows. And above is/are header rows. And below is/are total rows. And it is your desire to add a row to the bottom of the data rows (immediately above the total rows) and that the data rows contain formulas you would like to copy. And the new data row is to applied to the total below.

The first time you do it... not so easy... After that... two clicks...

Select the row with the formulas by clicking the row number (the last data row). Copy the row (Ctrl+C). Press the down arrow (now on footer row possibly containing summation formulas). Begin a special paste operation (Ctrl+Shift+V). Change the "selection" check marks so that only "Formulas" is selected. Chose "Down" in "Shift Cells". Hit "OK" (or press Return) to inset the row.

Edit the summation formula (F2) and make sure the summation range is still correct. If it is not, then you can manually fix the range, but you really need to change the following LibreOffice setting:

Choose menu option "Tools" (Alt-T). Choose "Options" (O) in the "Tools" menu. Expand "LibreOffice Calc" (Hit the disclosure triangle there). Select "General" in the "LibreOffice Calc" expansion list. Put a checkmark in (click) the "Expand references when new columns/rows are inserted"

Now that you have the row in the copy buffer and proper setup is complete, you only need to be on the first footer row, press Ctrl+Shift+V and hit Return.

于 2016-06-01T12:11:53.207 回答