Hi,
Essentially, I'm looking to build out a macro that will search for incongruences between the first two columns of two data sets, along with the values of "x" columns, cycling through until all of the columns have been analyzed. (Cycle 1: Columns 1+2+3-6, Cycle 2: Columns 1+2+7-10, etc.) It seems to me that an iterative macro should be able to assist with this process. Admittedly, I'm not entirely sure if this is the best way to solve this problem, so any guidance would be greatly appreciated.
Sample Data:
Set 1-
| Column 1 | Column 2 | Column 3 | Column 4 | Column 5 | Column 6 | Column 7 | Column 8 | Column 9 | Column 10 |
| a | f | 3a | 4a | 5a | 6a | 7a | 8a | 9a | 10a |
| b | g | 3b | 4b | 5b | 6b | 7b | 8b | 9b | 10b |
| c | h | 3c | 4c | 5c | 6c | 7c | 8c | 9c | 10c |
| d | i | 3d | 4d | 5d | 6d | 7d | 8d | 9d | 10d |
| e | j | 3e | 4e | 5e | 6e | 7e | 8e | 9e | 10e |
Set 2-
| Column 1 | Column 2 | Column 3 | Column 4 | Column 5 | Column 6 | Column 7 | Column 8 | Column 9 | Column 10 |
| a | f | 3a | 4a | 5a | 6a | 7a | 8a | 9g | 10a |
| b | g | 3b | 4b | 5b | 6b | 7b | 8b | 9b | 10b |
| c | h | 3c | 4f | 5c | 6c | 7c | 8c | 9c | 10c |
d | i | 3d | 4d | 5d | 6d | 7d | 8d | 9d | 10d |
e | j | 3e | 4e | 5e | 6e | 7e | 8e | 9e | 10e |
Output -
| Column 1 | Column 2 | Column 3 | Column 4 | Column 5 | Column 6 |
| c | h | 3c | 4c | 5c | 6c |
| c | h | 3c | 4f | 5c | 6c |
| Column 1 | Column 2 | Column 7 | Column 8 | Column 9 | Column 10 |
| a | f | 7a | 8a | 9a | 10a |
| a | f | 7a | 8a | 9g | 10a |
Thanks for your help.
*EDIT: Additional Info*
Columns 1+2 will need to remain static, as within my actual data set they are key information. Apart from that, the first column of each set (e.g. Column 3 when reviewing 1+2+3-6) is the next key piece of data, with the following columns being metadata for that set. For these reasons, ideally my output will look similar to how I've written it above.