Hello and Happy Friday!
The thread title is shy on detail but any help with the following task would be greatly appreciated!
I have two sheets, SHT1 & SHT2, that have 1000+ rows. The rows in both sheets have varying numbers of cells populated- some rows have data out to column P others out to column X. The cells in column G of both sheets contain a value that is unique within that column on that sheet. Most or all of the unique values in SHT1 are also present in SHT2, but they appear on different row numbers. What I need to do is this:
1) Learn the unique value from cell G1<current row> in SHT1.
2) Search for that value in column G of SHT2.
* If there is a match, copy entire row to buffer then go to step 3)
* If there is not a match, go back to step 1) and increment to next row (I.E. G2<new current row>).
3) Insert a new row in SHT1 below the current row.
4) Paste the row from SHT2 to the new row created in SHT1.
5) Shade all the cells yellow in the newly created row in SHT1. (this is a "nice to have" optional step)
6) Repeat 1) - 5) incrementing down 1 row at a time in SHT1 until a blank F<n> cell is encountered, then end program.
The thread title is shy on detail but any help with the following task would be greatly appreciated!
I have two sheets, SHT1 & SHT2, that have 1000+ rows. The rows in both sheets have varying numbers of cells populated- some rows have data out to column P others out to column X. The cells in column G of both sheets contain a value that is unique within that column on that sheet. Most or all of the unique values in SHT1 are also present in SHT2, but they appear on different row numbers. What I need to do is this:
1) Learn the unique value from cell G1<current row> in SHT1.
2) Search for that value in column G of SHT2.
* If there is a match, copy entire row to buffer then go to step 3)
* If there is not a match, go back to step 1) and increment to next row (I.E. G2<new current row>).
3) Insert a new row in SHT1 below the current row.
4) Paste the row from SHT2 to the new row created in SHT1.
5) Shade all the cells yellow in the newly created row in SHT1. (this is a "nice to have" optional step)
6) Repeat 1) - 5) incrementing down 1 row at a time in SHT1 until a blank F<n> cell is encountered, then end program.