跳到主要内容

根据Excel中特定列或行中的单元格值快速复制行或列

Kutools for Excel

提升 Excel 300+
强大的功能

通常,除了 Excel 中的 VBA 代码之外,可能没有好的方法可以让您将特定范围的每一行或每一列复制 n 次。 但是随着 根据单元格值复制行/列 实用程序 Kutools for Excel,只需单击几下即可快速完成。

根据列中的单元格值复制行

根据行中的单元格值复制列

通过键入重复次数复制行或列


单击Kutools>插入>基于单元格值的重复行/列以启用该实用程序。


根据列中的单元格值复制行

假设您具有一系列数据,如下面的屏幕快照所示,现在,根据F列中的数值将每一行重复多次,请执行以下操作。

1。 点击 库工具 > 插页 > 根据单元格值复制行/列。 看截图:

2.在 复制并插入行和列 对话框,您需要:

  • 点击 复制并插入行中的s选项 Type 部分;
  • 选择范围,您将复制行中的 插入范围 框;
  • 在中选择要基于其复制行的列范围 重复次数 框;
  • 点击 OK or 使用 按钮。 看截图:

备注:您可以点击 例如: 部分以展开对话框,以获取步骤的更多示例详细信息。

然后复制行,如下面的屏幕快照所示。

演示:


根据行中的单元格值复制列

此实用程序还可以帮助根据特定行中的数值将每一列重复多次。

1。 点击 库工具 > 插页 > 根据单元格值复制行/列 启用该实用程序。

2.在 复制并插入行和列 对话框,您需要:

  • 点击 复制并插入列 在选项 Type 部分;
  • 选择范围,您将复制列中的 插入范围 框;
  • 在中选择要基于其复制列的行范围 重复次数 框;
  • 点击 OK or 使用 按钮。 看截图:

备注:您可以点击 例如: 部分以展开对话框,以获取步骤的更多示例详细信息。

然后,所选列将重复,如下面的屏幕截图所示。

演示:


通过键入重复次数复制行或列

如果要复制的列或行很少,并且不想添加具有重复时间的辅助列或行,则只需在 重复次数 文本框。 请按以下步骤操作:

1。 点击 库工具 > 插页 > 根据单元格值复制行/列 启用该实用程序。

2.在 复制并插入行和列 对话框,您需要:

  • 点击 复制并插入行 or 复制并插入列 在选项 Type 部分。 这里我选择了 复制并插入行 举个例子;
  • 选择范围,您将复制行中的 插入范围 框;
  • 输入表示重复次数的非负整数 重复次数 箱:
    • 输入一个正整数,例如 3。这意味着您将复制并插入 插入范围 3次;
    • 用分号作为分隔符为每一行键入非负整数。 例如,您已选择范围 $B$3:$E$6 插入范围 框,要分别复制和插入范围的第 1、2、3 和 4 行 a、b、c 和 d 次,您只需键入 A B C D ,在 重复次数 盒子。 请注意,数字 0 表示没有重复。
  • 点击 OK or 使用 按钮。 看截图:

备注: 中非负整数的个数 插入范围 框必须与行数或列数相同 插入范围.

然后所选的行或列将被复制,如下图所示。

Kutools for Excel 包括300多个便捷的Excel工具。 30天免费试用,不受限制。 立即下载免费试用版!


生产力工具推荐
以下工具可以极大地节省您的时间和金钱,哪一种适合您?
Office Tab: 在办公室中使用方便的选项卡,作为Chrome,Firefox和New Internet Explorer的方式。
Kutools for Excel: 超过300种Excel高级功能 2021、2019、2016、2013、2010、2007 和 Office 365。

Kutools for Excel

上述功能只是 Kutools for Excel 300 个强大功能之一。

专为 Excel(Office) 2021、2019、2016、2013、2010、2007 和 Office 365 设计。免费下载和使用 30 天。

Kutools for Excel 的屏幕截图

btn了解更多      btn下载     btn购买

Comments (7)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
I use this tool a lot, but my help window is looking like this and now i cannot use it anymore, i tried re-installing KUtools and Excel but nothing works. Anyone that can help me with this issue?

I can only see the "TYPE" choices
This comment was minimized by the moderator on the site
Hi Desiree,

We're sorry for the inconvenience, we're looking for the cause of this problem and will get back to you as soon as we find a solution. If you are not using the latest version of KTE, please download and install the latest version to see if the problem still exists.
Or get into the Setting Center to check this option:
https://www.extendoffice.com/images/stories/comments/comment-picture-zxm/duplicate-rows-columns.png
This comment was minimized by the moderator on the site
This worked! Thank you so much for your help.
This comment was minimized by the moderator on the site
Hi,

Does this function only work with small datasets? I have tried using it but all it does is churn, and crash all other applications open on my computer, and eventually 2 hours later I have to end the task as no results still
This comment was minimized by the moderator on the site
Hi Anna,

This feature has some limitations when dealing with big data. We are working on improving it's performance with large files and will release in a future version. Stay tuned for a future release from us. We apologize for the inconvenience.
This comment was minimized by the moderator on the site
My copy of Kutools doesn't have this option for some reason. Can you help me enable this? Thanks!
This comment was minimized by the moderator on the site
Hi,
Please upgrade to the new version of Kutools for Excel.
https://www.extendoffice.com/download/kutools-for-excel.html
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations