Okay, I have been trying to find a solution for this and I just don't seem to be able. I can't even break down the problem properly. This is the idea.
I have two sheets with many rows (one with 800 and the other with 300,000). Each row contains a Name column and then several columns that contain information about this Name. Each sheet has different kinds of information.
I want to consolidate these two sheets into a master sheet based on this Name column they both have, so the consolidate function is perfect for this. Now the problem is that the names don't match perfectly.
For example Sheet1 contains
"Company B.V.", "Info #1"
"Company Total", "Info #2"
"Company Ltd", "Info #3"
and sheet 2 contains
"Company and Co.", "Info #4"
"Company and Co", "Info #5"
Sheet 1 contains all the names that are going to be used (around a 100 but in different forms as stated above) and sheet 2 contains all these 100 in multiple rows plus names that aren't in the 100 list and therefore I don't care about.
How would I make a VBA code project where the end result would be something like this, Master sheet:
"Company", "Info #1", "Info #2", "Info #3", "Info #4", "Info #5"
for every single "Company" (the 100 list) in there??
I do hope there is a solution for this. I'm pretty new to VBA projects, but I have done some minimal coding before.
See Question&Answers more detail:os