Skip to main content

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:

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!

Best Office Productivity Tools

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |   Round without Formula ...
Super Lookup: Multiple Criteria VLookup    Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ...
Featured Features: Grid Focus   |  Design View   |   Big Formula Bar    Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells    Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more

Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time.  Click Here to Get The Feature You Need The Most...

Description


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!
Comments (11)
Rated 5 out of 5 · 2 ratings
This comment was minimized by the moderator on the site
It works, thank you. The first method is quiet simple for me even for the table with thousands of rows.
Rated 5 out of 5
This comment was minimized by the moderator on the site
Qué gran solución. Lo máximo!
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.
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
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
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
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
YOU. ARE. BAE. AND. THE. GOAT. But seriously thanks so much! I have been looking everywhere for help on this!
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations