Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

Excel gurus: paste column over filtered column

Thread Tools
 
Search this Thread
 
Old 27 June 2007, 02:52 PM
  #1  
john banks
Scooby Regular
Thread Starter
 
john banks's Avatar
 
Join Date: Nov 2000
Location: 32 cylinders and many cats
Posts: 18,658
Likes: 0
Received 1 Like on 1 Post
Default Excel gurus: paste column over filtered column

I have made a text file from a column of an Excel worksheet that was autofiltered. I now want to paste an altered version back over the original filtered data but not over rows that were filtered out. I do need the data that has been filtered out. There are tens of thousands of lines, so I can't do it manually.

Suggestions? I've tried help and searching.

Example if my description was not clear:

A
B
C
D
E

... filters to:

A
D
E

... then this is changed to eg:

B
Q
F

... so when I paste I want:
B
B
C
Q
F
Old 27 June 2007, 02:57 PM
  #2  
bob269
Scooby Regular
 
bob269's Avatar
 
Join Date: Mar 2003
Posts: 2,654
Likes: 0
Received 1 Like on 1 Post
Default

Is it feasable to hide the rows then paste the new data back and then unhide them?
Old 27 June 2007, 03:10 PM
  #3  
john banks
Scooby Regular
Thread Starter
 
john banks's Avatar
 
Join Date: Nov 2000
Location: 32 cylinders and many cats
Posts: 18,658
Likes: 0
Received 1 Like on 1 Post
Default

There are over 200000 rows over 4 worksheets. If there is an automatic way to hide rows (based on a filter) then yes it would work. I'll look into it thanks.
Old 27 June 2007, 03:14 PM
  #4  
john banks
Scooby Regular
Thread Starter
 
john banks's Avatar
 
Join Date: Nov 2000
Location: 32 cylinders and many cats
Posts: 18,658
Likes: 0
Received 1 Like on 1 Post
Default

Unfortunately pastes of blocks go into the hidden or filtered cells.
Old 27 June 2007, 03:21 PM
  #5  
bob269
Scooby Regular
 
bob269's Avatar
 
Join Date: Mar 2003
Posts: 2,654
Likes: 0
Received 1 Like on 1 Post
Default

try on here mate, these guys usually respond within 5minutes and pretty much know everything excel related.


MrExcel Message Board :: Index
Old 27 June 2007, 03:32 PM
  #6  
DJ Dunk
Moderator
Support Scoobynet!
iTrader: (5)
 
DJ Dunk's Avatar
 
Join Date: Nov 2001
Location: Not all those who wander are lost
Posts: 17,863
Received 0 Likes on 0 Posts
Default

Excel won't paste into multiple ranges, its pretty annoying. I'd use an IF statement and a VLOOKUP to do it. Add a unique column to the data that you're copying so you have something to tie it back to, if there isn't already one.
Old 27 June 2007, 04:08 PM
  #7  
john banks
Scooby Regular
Thread Starter
 
john banks's Avatar
 
Join Date: Nov 2000
Location: 32 cylinders and many cats
Posts: 18,658
Likes: 0
Received 1 Like on 1 Post
Default

Thanks have posted on MrExcel.

IF statement doesn't seem to work with text, and I would be VLOOKUP depending on some rows being present and others not. I'm lost on this one.
Old 27 June 2007, 05:37 PM
  #8  
DJ Dunk
Moderator
Support Scoobynet!
iTrader: (5)
 
DJ Dunk's Avatar
 
Join Date: Nov 2001
Location: Not all those who wander are lost
Posts: 17,863
Received 0 Likes on 0 Posts
Default

Original Data on a sheet called 'MyData':
A, B (column headers)
1, A
2, B
3, C
4, D
5, E

Cut data:
A,B
1, A
4, D
5, E

Amended data on a sheet called 'Lookup':
A,B
1, B
4, Q
5, F

Unfilter the data, do a nested vlookup in a new column that says (sorry not got Excel on this machine to get the syntax):

If value in MyData column A exists in Lookup column A then perform the vlookup: Lookup value in MyData column A within Lookup A|B, return value in resulting column 2.

If not, return MyData column B.

Then copy it down and cut and paste the resulting values. Not sure if that makes sense.
Old 27 June 2007, 06:15 PM
  #9  
john banks
Scooby Regular
Thread Starter
 
john banks's Avatar
 
Join Date: Nov 2000
Location: 32 cylinders and many cats
Posts: 18,658
Likes: 0
Received 1 Like on 1 Post
Default

Thanks. Writing code in Excel is new to me. Instead I just wrote an app in Visual Basic to process my text file directly.
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
KAS35RSTI
Subaru
27
04 November 2021 07:12 PM
Mattybr5@MB Developments
Full Cars Breaking For Spares
28
28 December 2015 11:07 PM
Mattybr5@MB Developments
Full Cars Breaking For Spares
12
18 November 2015 07:03 AM
Ganz1983
Subaru
5
02 October 2015 09:22 AM
IAN WR1
ScoobyNet General
8
28 September 2015 08:14 PM



Quick Reply: Excel gurus: paste column over filtered column



All times are GMT +1. The time now is 08:07 AM.