unknownymous
Board Regular
- Joined
- Sep 19, 2017
- Messages
- 249
- Office Version
- 2016
- Platform
- Windows
Hi Guys,
Can you possibly help me out on the macro I'm trying to sort out? Basically, I have this excel file named "MasterList" with two tabs sheets namely: Master & Reference.
The master contains a list of data while reference sheet has list of countries and its equivalent country group.
Example in "Reference" Sheet:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Country[/TD]
[TD]Group[/TD]
[/TR]
[TR]
[TD]United States[/TD]
[TD]North America[/TD]
[/TR]
[TR]
[TD]Canada[/TD]
[TD]North America[/TD]
[/TR]
[TR]
[TD]Germany[/TD]
[TD]Germany[/TD]
[/TR]
[TR]
[TD]Norway[/TD]
[TD]Rest of Europe[/TD]
[/TR]
[TR]
[TD]Libya[/TD]
[TD]Rest of World[/TD]
[/TR]
</tbody>[/TABLE]
In the "Master" sheet, there's a country column which starts in cell W4 until the last blank cell (W***).
What the macro does:
*In Master Sheet - Look up the "Country" against the "Reference" and get its country "Group"
*For the Above example, 4 sheets will be created (North America, Germany, Rest ow World & Rest of Europe). All data rows that falls under each category will be copied to its designated tabs.
Any help will be much appreciated (I'm still learning about VBA) Thanks in advance!
Can you possibly help me out on the macro I'm trying to sort out? Basically, I have this excel file named "MasterList" with two tabs sheets namely: Master & Reference.
The master contains a list of data while reference sheet has list of countries and its equivalent country group.
Example in "Reference" Sheet:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Country[/TD]
[TD]Group[/TD]
[/TR]
[TR]
[TD]United States[/TD]
[TD]North America[/TD]
[/TR]
[TR]
[TD]Canada[/TD]
[TD]North America[/TD]
[/TR]
[TR]
[TD]Germany[/TD]
[TD]Germany[/TD]
[/TR]
[TR]
[TD]Norway[/TD]
[TD]Rest of Europe[/TD]
[/TR]
[TR]
[TD]Libya[/TD]
[TD]Rest of World[/TD]
[/TR]
</tbody>[/TABLE]
In the "Master" sheet, there's a country column which starts in cell W4 until the last blank cell (W***).
What the macro does:
*In Master Sheet - Look up the "Country" against the "Reference" and get its country "Group"
*For the Above example, 4 sheets will be created (North America, Germany, Rest ow World & Rest of Europe). All data rows that falls under each category will be copied to its designated tabs.
Any help will be much appreciated (I'm still learning about VBA) Thanks in advance!