This is the procedure I want to create. I also attached a workbook that demonstrates what I am trying to accomplish. The code I am using is posted below as well as the problems I am having with it.
1. Go to Sheet “Original” look at the data in cell A1 then look for a match of that data in the rows of Column C, Column F, Column H, Column J, Column L, Column N, and Column P
2. Once matches for Column A are found in the different rows of Column C, Column F, Column H, Column J, Column L, Column N, and Column P then copy the matching row of Column A:B, Column C:E, Column F:G, Column H:I, Column J:K, Column L:M, Column N:O, and Column P:R
3. Next paste the different rows from Column A:B, Column C:E, Column F:G, Column H:I, Column J:K, Column L:M, Column N:O, and Column P:R into Sheet “Matched” so they are in the same row instead of different rows.
4. Repeat the process for every row in Column A
5. Carry over any extra rows with data from Column A:B, Column C:E, Column F:G, Column H:I, Column J:K, Column L:M, Column N:O, and Column P:R that did not have matches in Column A, Column C, Column F, Column H, Column J, Column L, Column N, and Column P.
The macro is grabbing A:B, C:E, and P:R and putting them into the same row in Sheet Matched, but the code is missing everything else I would like to see happen. Can you help me figure out what I need to change in this macro in order to make it work? See attached workbook. Thank you for your help.Please Login or Register to view this content.
Bookmarks