Excel gurus: paste column over filtered column
#1
Scooby Regular
Thread Starter
Join Date: Nov 2000
Location: 32 cylinders and many cats
Posts: 18,658
Likes: 0
Received 1 Like
on
1 Post
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
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
#5
try on here mate, these guys usually respond within 5minutes and pretty much know everything excel related.
MrExcel Message Board :: Index
MrExcel Message Board :: Index
#6
Moderator
iTrader: (5)
Join Date: Nov 2001
Location: Not all those who wander are lost
Posts: 17,863
Received 0 Likes
on
0 Posts
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.
#7
Scooby Regular
Thread Starter
Join Date: Nov 2000
Location: 32 cylinders and many cats
Posts: 18,658
Likes: 0
Received 1 Like
on
1 Post
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.
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.
Trending Topics
#8
Moderator
iTrader: (5)
Join Date: Nov 2001
Location: Not all those who wander are lost
Posts: 17,863
Received 0 Likes
on
0 Posts
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.
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.
Thread
Thread Starter
Forum
Replies
Last Post
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