If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Macro: Find & Paste from one .xls to another

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-16-11, 09:40
DTexcel DTexcel is offline
Registered User
 
Join Date: Aug 2011
Posts: 2
Macro: Find & Paste from one .xls to another

XLS-1 XLS-2
1, Blue Banana, 3
2, Green Apple, 4
3, Yellow Berry, 1
4, Red

What I want to create is a macro that will take the information from XLS-2 and paste it into XLS-1, like this:

XLS-1
1, Blue, Berry
2, Green,
3, Yellow, Banana
4, Red, Apple

I can't do a simple sort, and copy/paste, because the common-column between the two spreadsheetes aren't exact (ex, above XLS-2 does not have a line with the number "2" in it)

So, I'd like to create a macro where it takes a value from XLS-2, finds it in XLS-1, and inserts the corresponding info from XLS-2 to XLS-1.
Reply With Quote
  #2 (permalink)  
Old 08-16-11, 13:39
DTexcel DTexcel is offline
Registered User
 
Join Date: Aug 2011
Posts: 2
Wink Revised

My formatting didn't retain when I posted the question. The orig spreadsheets should look like this:

XLS-1
1, Blue
2, Green
3, Yellow
4, Red

XLS-2
Banana, 3
Apple, 4
Berry, 1
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On