excel - 行编号选择自动填充到最后

标签 excel libreoffice openoffice-calc

我有一个包含数千行的表。我想通过在第一行旁边添加 1 2 3 来对行进行编号,然后选择这些行并拖动到最后以使用递增的数字进行填充。

如何自动填充到最后一行而不用鼠标拖动几分钟?

最佳答案

您知道如何双击自动填充句柄吗?如果您将 1,2 放入前两个单元格中,然后选择这两个单元格并双击右下角的小黑框,它应该“自动”执行您所要求的操作。它将填充与其相邻的填充单元格一样多的行。相当方便的技巧。

例如,请参阅http://office.microsoft.com/en-us/excel-help/fill-data-automatically-in-worksheet-cells-HP001216366.aspx

Tips You can also fill the active cell with the formula of an adjacent cell by using the Fill command (on the Home tab in the Editing group) or by pressing CTRL+D to fill a cell below or CTRL+R to fill a cell to the right of the cell containing the formula. You can automatically fill a formula downward, for all adjacent cells that it applies to, by double-clicking the fill handle of the first cell that contains the formula. For example, cells A1:A15 and B1:B15 contain numbers, and you type the formula =A1+B1 in cell C1. To copy that formula into cells C2:C15, select cell C1 and double-click the fill handle.

关于excel - 行编号选择自动填充到最后,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19086069/

相关文章:

excel - Office 脚本,忽略删除范围名称,没有错误

list - 使用 VBA 对 Excel 列表进行排序不起作用

Java Open\LibreOffice 在 odt 中插入文件\对象

utf-8 - 将 HTML 表作为 UTF8 导入 OO Calc 而不转换为实体

javascript - 设置数据样式并使用 javascript 将其导出为 XLS/CSV/PDF

excel - 下标超出范围

r - 仅当从 RStudio 调用时,soffice 才会失败

pdf - 如何在 headless 模式下使用 Libre Office Draw 从命令行创建 PDF/A?

regex - 在 Open Office calc 中搜索并替换正则表达式

delphi - 再次使用 delphi 进行 openoffice calc