跳到主要內容

根據Excel中特定列或行中的單元格值快速復制行或列

Excel的Kutools

提升 Excel 300+
強大的功能

通常,除了 Excel 中的 VBA 代碼之外,可能沒有好的方法可以讓您將特定範圍的每一行或每一列複製 n 次。 但是隨著 根據單元格值複製行/列 的效用 Excel的Kutools,只需單擊幾下即可快速完成。

根據列中的單元格值複製行

根據行中的單元格值複製列

通過鍵入重複次數複製行或列


單擊Kutools>插入>基於單元格值的重複行/列以啟用該實用程序。


根據列中的單元格值複製行

假設您具有一系列數據,如下面的屏幕快照所示,現在,根據F列中的數值將每一行重複多次,請執行以下操作。

1。 點擊 庫工具 > 插入 > 根據單元格值複製行/列。 看截圖:

2。 在裡面 複製並插入行和列 對話框,您需要:

  • 點擊 複製並插入行中的s選項 類別 部分;
  • 選擇範圍,您將復制行中的 插入範圍 框;
  • 在中選擇要基於其複制行的列範圍 重複次數 框;
  • 點擊 OK or 登記 按鈕。 看截圖:

備註:你可以點擊 部分以展開對話框,以獲取步驟的更多示例詳細信息。

然後復制行,如下面的屏幕快照所示。

演示:


根據行中的單元格值複製列

此實用程序還可以幫助根據特定行中的數值將每一列重複多次。

1。 點擊 庫工具 > 插入 > 根據單元格值複製行/列 啟用該實用程序。

2。 在裡面 複製並插入行和列 對話框,您需要:

  • 點擊 複製並插入列 在選項 類別 部分;
  • 選擇範圍,您將復制列中的 插入範圍 框;
  • 在中選擇要基於其複制列的行範圍 重複次數 框;
  • 點擊 OK or 登記 按鈕。 看截圖:

備註:你可以點擊 部分以展開對話框,以獲取步驟的更多示例詳細信息。

然後,所選列將重複,如下面的屏幕截圖所示。

演示:


通過鍵入重複次數複製行或列

如果要復制的列或行很少,並且不想添加具有重複時間的輔助列或行,則只需在 重複次數 文本框。 請按以下步驟操作:

1。 點擊 庫工具 > 插入 > 根據單元格值複製行/列 啟用該實用程序。

2。 在裡面 複製並插入行和列 對話框,您需要:

  • 點擊 複製並插入行 or 複製並插入列 在選項 類別 部分。 這裡我選擇了 複製並插入行 舉個例子;
  • 選擇範圍,您將復制行中的 插入範圍 框;
  • 輸入表示重複次數的非負整數 重複次數 箱:
    • 輸入一個正整數,例如 3。這意味著您將復制並插入 插入範圍 3次;
    • 用分號作為分隔符為每一行鍵入非負整數。 例如,您已選擇範圍 $B$3:$E$6 插入範圍 框,要分別複製和插入範圍的第 1、2、3 和 4 行 a、b、c 和 d 次,您只需鍵入 A B C D ,在 重複次數 盒子。 請注意,數字 0 表示沒有重複。
  • 點擊 OK or 登記 按鈕。 看截圖:

備註: 中非負整數的個數 插入範圍 框必須與行數或列數相同 插入範圍.

然後所選的行或列將被複製,如下圖所示。

Excel的Kutools 包括300多個便捷的Excel工具。 30天免費試用,不受限制。 立即下載免費試用版!


生產力工具推薦
以下工具可以極大地節省您的時間和金錢,哪一種適合您?
Office Tab: 在辦公室中使用方便的選項卡,作為Chrome,Firefox和New Internet Explorer的方式。
Excel的Kutools: 超過300種Excel高級功能 2021、2019、2016、2013、2010、2007 和 Office 365。

Excel的Kutools

上述功能只是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