There are 3 sheets in a workbook: Sheet1, Sheet2, Sheet3. Sheet1 has the following data:
aaa 3
aaa 2
aaa 45
aaa 211
aaa 12
bbbb 3
bbbb 2
bbbb 4
ccc 2
ccc 5
dddd 2
dddd 10
dddd 25
There will be a hash table like this:
key values
GroupA aaa, bbbb
GroupB ccc, dddd
How can I load data to the other sheets Sheet2 and Sheet3 such that Sheet2 contains all rows with 'GroupA' and Sheet3 has all rows with 'GroupB' present in Sheet1, using a macro subroutine?
EDIT:
I would like to use a hashtable kind of a structure for storing GroupA, GroupB, etc. with their values and iteratively process sheet1 accordingly, w.r.t each Group.