Vbalearner85
Board Regular
- Joined
- Jun 9, 2019
- Messages
- 139
- Office Version
- 2016
- Platform
- Windows
Need VBA help
For below data set in sheet "Data"
Rollup Country(Column A) Country(Column B) Brand(Column C)
Bangladesh Bangladesh Coke
Bangladesh Bangladesh Pepsi
Other India Salt
Other India Spices
Other Pakistan Salt
Other Pakistan Spices
Iran Iran Food
Iran Iran Travel
...and so on....
VBA should give segregated lists in sheet "Lists" as below
1.If country and Rollup country is same..it should give country in Cell A2 and the lists concatenate of Country& Brand below it
2. If Rollup country is "Other" then it should list all concatenates as in column "B" starting with others in cell "B2"
Column A Column B Column C
Bangladesh Others Iran (Alphabetically...>>>>>)
BangladeshCoke IndiaSalt Food
BangladeshPepsi IndiaSpices Travel
PakistanSalt
PakistanSpices and so on....
For below data set in sheet "Data"
Rollup Country(Column A) Country(Column B) Brand(Column C)
Bangladesh Bangladesh Coke
Bangladesh Bangladesh Pepsi
Other India Salt
Other India Spices
Other Pakistan Salt
Other Pakistan Spices
Iran Iran Food
Iran Iran Travel
...and so on....
VBA should give segregated lists in sheet "Lists" as below
1.If country and Rollup country is same..it should give country in Cell A2 and the lists concatenate of Country& Brand below it
2. If Rollup country is "Other" then it should list all concatenates as in column "B" starting with others in cell "B2"
Column A Column B Column C
Bangladesh Others Iran (Alphabetically...>>>>>)
BangladeshCoke IndiaSalt Food
BangladeshPepsi IndiaSpices Travel
PakistanSalt
PakistanSpices and so on....
Last edited: