Note: The other languages of the website are Google-translated. Back to English

How to paste data into filtered list only skipping hidden rows in Excel?

As we all known, when we attempt to paste values into a filtered table list, the hidden rows are not skipped, so we will get a wrong result. For example, I have two worksheets, Sheet 1 contains the data which has been filtered out, and Sheet 2 has the data which I want to paste it to filtered Sheet 1 as following screenshots shown. Is there any function that we can get the data pasted into the filtered rows only in Excel?

doc-paste-to-filtered-data-1 doc-paste-to-filtered-data-2

Paste data into filtered list in Excel with helper columns

Paste data into filtered list in Excel with Kutools for Excel


arrow blue right bubble Paste data into filtered list in Excel with helper columns

To paste data into filtered list, you need apply some helper columns, please do with the following step by step:

1. First, click Data > Filter to remove the filter, and enter 1, 2 into the cell C2 and C3 separately which next to your filter column, and select cell C2 and C3, then drag the fill handle to the cells corresponding your data in Sheet 1. See screenshot:

doc-paste-to-filtered-data-3

2. Then filter your data again by clicking Data > Filter, in this example, I will filter “KTE” from Sheet 1, and type this formula =ROW() into cell D2, then fill this formula to the visible cells you need of column D, see screenshots:

doc-paste-to-filtered-data-4  2 doc-paste-to-filtered-data-5

3. And then cancel the filter again, and sort the data by Column D with ascending order, all KTE items have been sorted together, see screenshot:

doc-paste-to-filtered-data-4

4. Next, you can copy the data A1: B6 in Sheet 2 and paste them to range A2:B7 of Sheet 1.

doc-paste-to-filtered-data-4

5. Then you need to restore the original data order, please click at Column C and sort the data ascendingly, see screenshot:

doc-paste-to-filtered-data-4

6. And the data order has been recovered, then you can delete the contents of column C and column D as you need, at last, you can filter your needed data, and you can see the filtered data has been replaced with the new data successfully.

doc-paste-to-filtered-data-4


arrow blue right bubble Paste data into filtered list in Excel with Kutools for Excel

The first method is too complicated to apply, so, here, I will introduce you a handy tool – Kutools for Excel, with its Paste to Visible Range feature, you can quickly to paste the data into the filtered list without much effort.

Kutools for Excel : with more than 300 handy Excel add-ins, free to try with no limitation in 30 days.

After installing Kutools for Excel, please do as follows:

1. First, select the data arrange that you want to copy and paste to the filtered list. And then click Kutools > Range > Paste to Visible Range, see screenshot:

doc-paste-to-filtered-data-4

2. And then a Paste to Visible Range prompt box is popped out, click a cell or a range cells where you want to paste the new data, see screenshot:

doc-paste-to-filtered-data-4

3. Then click OK button, the new data has been pasted into the filtered list only, and the hidden rows data is kept as well.

(1.) If you choose Only Paste Values option, only values will be pasted into the filtered data, see screesnhot:

doc-paste-to-filtered-data-4

(2.) If you choose All option, the values as well as the formatting will be pasted into the filtered data, see screesnhot:

doc-paste-to-filtered-data-4

Click to know more about this Paste to Visible Range utility.


arrow blue right bubble Copy and Paste cell values into visible or filtered cells only with Kutools for Excel:

Your Website Title

Kutools for Excel: with more than 300 handy Excel add-ins, free to try with no limitation in 30 days. Download and free trial Now!

The Best Office Productivity Tools

Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%

  • Reuse: Quickly insert complex formulas, charts and anything that you have used before; Encrypt Cells with password; Create Mailing List and send emails...
  • Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
  • Merge Cells/Rows/Columns without losing Data; Split Cells Content; Combine Duplicate Rows/Columns... Prevent Duplicate Cells; Compare Ranges...
  • Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
  • Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
  • Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
  • Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
  • Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
  • More than 300 powerful features. Supports Office / Excel 2007-2021 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features 30-day free trial. 60-day money back guarantee.
kte tab 201905

Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
officetab bottom
Comments (9)
Rated 5 out of 5 · 1 ratings
This comment was minimized by the moderator on the site
YOU. ARE. BAE. AND. THE. GOAT. But seriously thanks so much! I have been looking everywhere for help on this!
This comment was minimized by the moderator on the site
Very helpful and straightforward. I was looking everywhere on the internet and did not find anything. Or tutorials to achieve something else :) Thanks a lot
This comment was minimized by the moderator on the site
I spent hours trying to solve this until I eventually found this awesome website. Thanks!
This comment was minimized by the moderator on the site
Not working. I tried in Office 2007. I copied range of cell and try to paste into visible cells, the clipboard data deleted but its not pasting. Try to provide solution
This comment was minimized by the moderator on the site
A mon niveau c'est pareil, ça ne fonctionne pas. Existe-t-il autre solution ?
This comment was minimized by the moderator on the site
Hello, friends
If the above method can not work well, here, you can also use the below VBA code: (Note: Before using the code, you should backup your data, the code doesn't support undo.)
Sub CopyFilteredCells()
	'Updateby Extendoffice
	Dim rng1 As Range
	Dim rng2 As Range
	Dim InputRng As Range
	Dim OutRng As Range
	xTitleId     = "KutoolsforExcel"
	Set InputRng = Application.Selection
	Set InputRng = Application.InputBox("Copy Range :", xTitleId, InputRng.Address, Type: = 8)
	Set OutRng   = Application.InputBox("Paste Range:", xTitleId, Type: = 8)
	For Each rng1 In InputRng
		rng1.Copy
		For Each rng2 In OutRng
			If rng2.EntireRow.RowHeight > 0 Then
				rng2.PasteSpecial
				Set OutRng = rng2.Offset(1).Resize(OutRng.Rows.Count)
				Exit For
			End If
		Next
	Next
	Application.CutCopyMode = False
End Sub


Please have a try, hope it can help you!
This comment was minimized by the moderator on the site
Muchas gracias, me sirvió mucho. Toda una tarde estaba viendo manera, pero con Kutools for Excel la vida es mas facil
Rated 5 out of 5
This comment was minimized by the moderator on the site
Hello, Saul,
Glad the Kutools can help you, 😀
This comment was minimized by the moderator on the site
Hallo zusammen, ich habe die Version mit den Hilfsspalten soeben ausprobiert und mit ein paar kleinen Änderungen, funktioniert es auch in M365: = REIHE () gibt es nicht mehr, das heißt jetzt: =ZEILE()
Nachdem ich diese Formel eingefügt habe, habe ich (in meiner gefilterten Liste) die Werte, die bei =ZEILE() angezeigt werden farbig markiert. Erst anschließend habe ich wieder den Filter entfernt und die Liste nach der ausgewählten Farbe sortiert. Fertig! So kann man die obersten (farbigen) Zellen nun bearbeiten und Daten einfügen.
There are no comments posted here yet

Follow Us

Copyright © 2009 - www.extendoffice.com. | All rights reserved. Powered by ExtendOffice. | Sitemap
Microsoft and the Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.
Protected by Sectigo SSL