跳到主要內容

如何在Excel中的備用空白行中粘貼數據?

在某些情況下,對於復制的行,您可能需要將其交替粘貼到Excel中新範圍內的多個空白行中,如下圖所示。 您如何才能做到這一點? 本文將為您提供幫助。

使用公式和過濾器將數據粘貼到備用空白行中


使用公式和過濾器將數據粘貼到備用空白行中

沒有直接的方法可以解決此問題,但是您可以通過本文的小技巧來實現。 請執行以下操作。

1.在需要將復制的數據粘貼到的新範圍中,選擇一個空白單元格(此處選擇單元格D2),然後輸入公式 = MOD(ROW(A1),2).

2.繼續選擇單元格D2,將“填充手柄”向下拖動到列單元格。 看截圖:

3.然後選擇單元格D1,單擊 數據 > 篩選 啟用過濾器功能。

4.單擊單元格D1的下拉箭頭,然後按數字1過濾列,最後單擊“確定”按鈕。 看截圖:

5.現在,備用空白行被過濾掉了。 請複制數據,選擇過濾範圍,然後按 按Ctrl + V 同時粘貼數據。

6。 點擊 數據 > 篩選 關閉過濾器功能,然後根據需要刪除幫助器列。 看截圖:

最佳辦公生產力工具

熱門特色: 尋找、突出顯示或識別重複項   |  刪除空白行   |  合併列或儲存格而不遺失數據   |   沒有公式的回合 ...
超級查詢: 多條件VLookup    多值VLookup  |   跨多個工作表的 VLookup   |   模糊查詢 ....
高級下拉列表: 快速建立下拉列表   |  依賴下拉列表   |  多選下拉列表 ....
欄目經理: 新增特定數量的列  |  移動列  |  切換隱藏列的可見性狀態  |  比較範圍和列 ...
特色功能: 網格焦點   |  設計圖   |   大方程式酒吧    工作簿和工作表管理器   |  資源庫 (自動文字)   |  日期選擇器   |  合併工作表   |  加密/解密單元格    按清單發送電子郵件   |  超級濾鏡   |   特殊過濾器 (過濾粗體/斜體/刪除線...)...
前 15 個工具集12 文本 工具 (添加文本, 刪除字符,...)   |   50+ 圖表 類型 (甘特圖,...)   |   40+ 實用 公式 (根據生日計算年齡,...)   |   19 插入 工具 (插入二維碼, 從路徑插入圖片,...)   |   12 轉化 工具 (數字到單詞, 貨幣兌換,...)   |   7 合併與拆分 工具 (高級合併行, 分裂細胞,...)   |   ... 和更多

使用 Kutools for Excel 增強您的 Excel 技能,體驗前所未有的效率。 Kutools for Excel 提供了 300 多種進階功能來提高生產力並節省時間。  點擊此處獲取您最需要的功能...

kte選項卡201905


Office選項卡為Office帶來了選項卡式界面,使您的工作更加輕鬆

  • 在Word,Excel,PowerPoint中啟用選項卡式編輯和閱讀,發布者,Access,Visio和Project。
  • 在同一窗口的新選項卡中而不是在新窗口中打開並創建多個文檔。
  • 將您的工作效率提高 50%,每天為您減少數百次鼠標點擊!
Comments (12)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Instead of using 1s and 0s you can just use 1,2,3,4,... next to the cells you want to alternate.
Then paste the exact same sequence under underneath (like this)
1
2
3
4
1
2
3
4

Then just with the data filter (like in the original example) just sort by ascending or descending and you will have blank rows

(Credit to my friend Angus)
This comment was minimized by the moderator on the site
Thanks a lot Chris! This is a great idea!
This comment was minimized by the moderator on the site
Hi Chris,
Thank you very much for sharing your method.
This comment was minimized by the moderator on the site
I just get the first line of the data I'm copying filling all the rows. Tried using 'skip blanks' but it doesn't work.
This comment was minimized by the moderator on the site
It only works if you copy a single cell, which pretty is useless. For a range of data it doesn't work.
This comment was minimized by the moderator on the site
Thanks. Works with Google Sheets (April 2020). Use formula =MOD(ROW(),2) to create the alternating pattern.

The cell you create your filter in gets turned into a header, so you want to select the cell ABOVE your range and in the data menu choose create filter. It should auto-detect your number range and add a filter. Or you could just highlight your whole range (+ 1 cell above it) beforehand.

Click the little filter icon that appears in the header cell to adjust settings of what to display.

When done you can then copy paste your result into another program if needed.
This comment was minimized by the moderator on the site
didnt work for me either
This comment was minimized by the moderator on the site
Hi,
This method works well in my case.
Which Office version do you use?
This comment was minimized by the moderator on the site
shows alternate rows but when i paste, it pastes normal way, doesnt skip cells.
This comment was minimized by the moderator on the site
You have to keep space between copied cells, in order for this to work!
This comment was minimized by the moderator on the site
It doesn't work
This comment was minimized by the moderator on the site
This doesn't work for me. I have Microsoft Office 2010, so whichever version of excel comes with that I am not quite sure but either way it doesn't work. When I paste it pastes to ALL rows. So, when I paste I only see half of what I pasted, when I turn the filter off I see everything I pasted =/
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations