• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 62
  • Last Modified:

copy and paste multiple rows on autofiltered data not working

I have a worksheet with 5 fields, address 1, 2, 3, 4 and ZIP

I have created a custom field (A) with the LEN function, i.e =LEN(B2)

the reason for this was to identify where LEN = 0 means the address 1 fields is blank, and shouldn't be. I then filtered the data for where len = 0 , and tried to copy and paste the filtered data across into the missing address 1 fields. But it only lets me do this one row at a time, when I try and do this in bulk, i.e. 50 rows at a time, I get this error:

"This selection is not valid - There are several possible reasons:..."

is there anyway around this as going through 10000 rows manually is clearly not practical.
  • 2
2 Solutions
helpfinderIT ConsultantCommented:
do not filter column where is value 0, but sort this column ascending. this makes all your 0 values will be in the same part and you can easily copy/move multiple rows
Rob HensonFinance AnalystCommented:
When data is filtered the copy and paste functions work a little bit differently.

Copying a single cell and then pasting into a filtered range will paste into only the visible cells of the range selected.

Copying a range of cells and pasting into a single cell in a filtered list will paste into the equivalent range eventhough part of the paste range is hidden.

Copying multiple cells from a filtered list, individually or as a block; when pasted into another range will paste as a continuous block, ie without the spacing from the hidden cells.

Can you be a bit more specific of what you are doing so we can try and help.
pma111Author Commented:
Helpfinders solution worked great.
Rob HensonFinance AnalystCommented:
If you go down the Sort route and want to return the data to the original order after correction, add another column to the data and manually fill this column with sequential numbers.

Fill the first 3 with 1 to 3 and then highlight those 3 and drag the bottom right corner down the extent of the data.

After completing the correction then resort on this column.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Train for your Pen Testing Engineer Certification

Enroll today in this bundle of courses to gain experience in the logistics of pen testing, Linux fundamentals, vulnerability assessments, detecting live systems, and more! This series, valued at $3,000, is free for Premium members, Team Accounts, and Qualified Experts.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now