I need help in developing a macro that takes each row from a column in one spreadsheet, searchs for the same string in other spreadsheet and returns the row in a third new spreadsheet. Besides the entire row, the macro must look for the imediate first string formatted in bold above the index it found and put it in a row along with the one it copied. For example:
Spreadsheet one:
A
B
C
D
E
Spreadsheet two:
Canada
C 40,0 3,0 89
B 34,0 2,0 94
Australia
A 50,0 1,0 89
B 33,0 1,0 90
USA
A 60,0 2,0 94
C 54,0 3,0 91
E 67,0 1,0 87
The macro will return:
A Australia 50,0 1,0 89
USA 60,0 2,0 94
B Canada 34,0 2,0 94
Australia 33,0 1,0 90
C Canada 40,0 3,0 89
USA 54,0 3,0 91
E USA 67,0 1,0 87
Thank you for all the help!
Spreadsheet one:
A
B
C
D
E
Spreadsheet two:
Canada
C 40,0 3,0 89
B 34,0 2,0 94
Australia
A 50,0 1,0 89
B 33,0 1,0 90
USA
A 60,0 2,0 94
C 54,0 3,0 91
E 67,0 1,0 87
The macro will return:
A Australia 50,0 1,0 89
USA 60,0 2,0 94
B Canada 34,0 2,0 94
Australia 33,0 1,0 90
C Canada 40,0 3,0 89
USA 54,0 3,0 91
E USA 67,0 1,0 87
Thank you for all the help!