What is this? From this page you can use the Social Web links to save How to copy and paste values in filtered data? to a social bookmarking site, or the E-mail form to send a link via e-mail.

Social Web

E-mail

E-mail It
November 11, 2008

How to copy and paste values in filtered data?

Posted in: Clever Excel formulas

If you copy and paste values from one column to another, when the filter is on and the range is discontinuous,  then it won’t work and will paste the data into non-visible cells as well.


As an example, I have taken some values in column A and B as shown below:

Excel Filters
Now if I apply filter on the data and deselect say 2 and 4.

filter_2.JPG

Now I want to replace 8 and 10 with 3 and 5 and want the values in row 4 to remain as they are.

filter_31.JPG

Now if I simply copy 3 and 5 from column A and paste it in column B, then as you can see it will replace 8 and 9 with 3 and 5 and not 8 and 10.

filter_4.JPG
Even if you copy 3 and 5 and then select 8 and 10 and using F5 do visible cells only and then try and paste, it will not work and the following window will pop up.

filter_6.JPG

To get around this, just type =A3 in cell B3 and drag it down. If you want to do it all in one go, simply select 8 and 10 and type = A3 in cell B3 and hit CTRL+Enter.

filter_7.JPG

Now as you can see below, this will paste data only into the visible cells.

filter_9.JPG


Return to: How to copy and paste values in filtered data?