Hello,
Need a VBA code to match 2 Columns in two sheets; then copy an offset Column from the matched Row of sheet2 to end of the corresponding matching row in sheet1. Please see the sheet "Summary" of the attached workbook to get a clear picture.
Sheets 1 & 2 both have similar data in Columns A through F, with no more than 300 Rows of Data.
First, need to delete Rows containing 000 in Column D of both sheets.
Need to match Columns "D" of sheets 1 and 2. For the matches found,
- Copy Column A from the corresponding row of sheet 2 to Column G of the matching Row of sheet 1.
- In Sheet 1, write "Existing" in Column H for the matches, and "New" in Column H for the Rows that did not have a match.
- If newly written Column G = Column A (ex: G5 = A5), highlight the corresponding Column H (ex: H5)
If it is convenient to create a third sheet for results instead of writing to Sheet 1, that will be okay.
I found a similar VBA code that compared the first columns and replaced the entire row. But my knowledge of VBA is so minuscule, I was not able to alter it to suit my needs.
Many thanks in advance.
Bookmarks