How to paste data into filtered list only skipping hidden rows in Excel?
When working with filtered data in Excel, pasting values directly can often result in overwriting hidden rows, leading to incorrect results. For example, if you have a filtered dataset on Sheet 1 and another set of data on Sheet 2 to paste into the visible rows of Sheet 1, Excel does not automatically skip hidden rows. This tutorial demonstrates effective methods to paste data into filtered rows only, ensuring hidden rows remain untouched.
Paste data into filtered list in Excel with helper columns Paste data into filtered list in Excel with Kutools for Excel |
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, 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:
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:
3. And then cancel the filter again, and sort the data by Column D with ascending order, all KTE items have been grouped together. See the screenshot:
4. Next, you can copy the data A1: B6 in Sheet 2 and paste them to range A2:B7 of Sheet 1.
5. Then you need to restore the original data order, please click at Column C and sort the data ascendingly, see screenshot:
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.
Paste data into filtered list in Excel with Kutools for Excel
The first method is complex, so I will introduce you to 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.
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:
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:
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:
(2.) If you choose All option, the values as well as the formatting will be pasted into the filtered data, see screesnhot:
Click to know more about this Paste to Visible Range utility.
Kutools for Excel - Supercharge Excel with over 300 essential tools. Enjoy permanently free AI features! Get It Now
Copy and Paste cell values into visible or filtered cells only with Kutools for Excel:
Best Office Productivity Tools
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...
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!