Hi all,
Effectively merging two sheets onto a new sheet where ID is the common identifier between them.
I am trying to create a macro which will copy a row from Tab 1 and paste it into Consolidated Tab, then go into Tab2 and find the rows that match the ID and paste the respective columns into Consolidated Tab.
It should be a loop and do this for all the Rows in Tab 1 . If it can’t find a match to copy over from Tab 2, it should just say “No Match to Raw Data” or "No Match" or something of that sort.
So three sheets being used in total:
*Tab 1 – Raw Data2 where ID is the key
*Tab 2 – Matrix sheet where ID matches to Raw Data2
*Consolidated sheet - where end output should be (ie the consolidation of data from RawData and Matrix)
Example:
In Tab 1 (Raw Data2 sheet) Start from A3 – take this and the respective columns and paste into Consolidated Sheet. ie ID 12345
Then find all the IDs 12345 in Tab 2 (Matrix sheet) and copy these over to Consolidated sheet
Consolidated Sheet should now look like below (left purple side is from Raw Data and right side is from Matrix):
End Output: Now do the same for all the remaining rows IDs in Tab 1 (Raw Data 2 sheet), where final output should look something like:
Note: no colour coding or formatting is needed in the macro, I just did this to try make easier to highlight what it is that I am trying to achieve.
A copy of the workbook can be found here Mapping Filter Doc
Would be ever so grateful for anyones support here. Thank you Gurus.
Effectively merging two sheets onto a new sheet where ID is the common identifier between them.
I am trying to create a macro which will copy a row from Tab 1 and paste it into Consolidated Tab, then go into Tab2 and find the rows that match the ID and paste the respective columns into Consolidated Tab.
It should be a loop and do this for all the Rows in Tab 1 . If it can’t find a match to copy over from Tab 2, it should just say “No Match to Raw Data” or "No Match" or something of that sort.
So three sheets being used in total:
*Tab 1 – Raw Data2 where ID is the key
*Tab 2 – Matrix sheet where ID matches to Raw Data2
*Consolidated sheet - where end output should be (ie the consolidation of data from RawData and Matrix)
Example:
In Tab 1 (Raw Data2 sheet) Start from A3 – take this and the respective columns and paste into Consolidated Sheet. ie ID 12345
Then find all the IDs 12345 in Tab 2 (Matrix sheet) and copy these over to Consolidated sheet
Consolidated Sheet should now look like below (left purple side is from Raw Data and right side is from Matrix):
End Output: Now do the same for all the remaining rows IDs in Tab 1 (Raw Data 2 sheet), where final output should look something like:
Note: no colour coding or formatting is needed in the macro, I just did this to try make easier to highlight what it is that I am trying to achieve.
A copy of the workbook can be found here Mapping Filter Doc
Would be ever so grateful for anyones support here. Thank you Gurus.