FedieSlvetr
New Member
- Joined
- Dec 7, 2017
- Messages
- 1
Hi Guys,
I need a program that can read multiple columns from multiple spreadsheets and carries out an action if it matches.
I believe though the problem is a bit too complex for vlookup!
I need a vba macro that can read the a common column from two spreadsheets to see if they match. Then for every match, it checks the second shared column in both spreadsheets. It shouldn't check the entire column, only on rows where the first matches where identified
If it can find matches in the second lot of columns, in the row where these matches occurred, it should pull some data from the third column (on the first spreadsheet only!). This data should then be copied to the matched row (where there was a match from the first and second checks) on the second spread sheet!
I have tried to make this myself but didn't really get anywhere.
I think I need a for loop to check the first columns, then a second for loop to check the second set of columns (inside the first for loop), then a third for loop with if else statements inside to copy/not copy data on every match found in the second for loop.
I had made demo sheets which I wanted to use to help me explain, but I can't see how to upload them.
Is there base starting code about I could use, I'm not really familiar with vba...
I think I'd learn better by manipulating something that already exists than going from scratch.
Any help would be greatly appreciated!
I need a program that can read multiple columns from multiple spreadsheets and carries out an action if it matches.
I believe though the problem is a bit too complex for vlookup!
I need a vba macro that can read the a common column from two spreadsheets to see if they match. Then for every match, it checks the second shared column in both spreadsheets. It shouldn't check the entire column, only on rows where the first matches where identified
If it can find matches in the second lot of columns, in the row where these matches occurred, it should pull some data from the third column (on the first spreadsheet only!). This data should then be copied to the matched row (where there was a match from the first and second checks) on the second spread sheet!
I have tried to make this myself but didn't really get anywhere.
I think I need a for loop to check the first columns, then a second for loop to check the second set of columns (inside the first for loop), then a third for loop with if else statements inside to copy/not copy data on every match found in the second for loop.
I had made demo sheets which I wanted to use to help me explain, but I can't see how to upload them.
Is there base starting code about I could use, I'm not really familiar with vba...
I think I'd learn better by manipulating something that already exists than going from scratch.
Any help would be greatly appreciated!