chadski778
Active Member
- Joined
- Mar 14, 2010
- Messages
- 297
Hi,
I would like to compare data between worksheets of two different workbooks - workbook 1 is named 'SP Form' and the worksheet is 'Page1' and workbook 2 is named 'MASTER_New GTL' and the worksheet is 'Master Document'). 'SP Form' should contain more up to date data than 'MASTER_New GTL' . I would like a macro that identifies which rows are 'new' in 'SP Form' 'Page1' compared to 'MASTER_New GTL' (worksheet 'Master Document'). To do this it would have to look in columns A (SP CODE) and G (OP_MATERIAL_CODE) in 'SP Form' (worksheet 'Page1') and compare with the data in columns C and H in 'MASTER_New GTL' (worksheet 'Master Document'. Rows that are in 'SP Form' that are not present in 'MASTER_New GTL' need to be highlighted. See example below where Row number 4 is in 'SP Form' but not in 'MASTER_New GTL' so is highlighted. Ofcourse that is a small subset of data, whereas the actual spreadsheets contain hundreds of rows.
Thanks
Chad
I would like to compare data between worksheets of two different workbooks - workbook 1 is named 'SP Form' and the worksheet is 'Page1' and workbook 2 is named 'MASTER_New GTL' and the worksheet is 'Master Document'). 'SP Form' should contain more up to date data than 'MASTER_New GTL' . I would like a macro that identifies which rows are 'new' in 'SP Form' 'Page1' compared to 'MASTER_New GTL' (worksheet 'Master Document'). To do this it would have to look in columns A (SP CODE) and G (OP_MATERIAL_CODE) in 'SP Form' (worksheet 'Page1') and compare with the data in columns C and H in 'MASTER_New GTL' (worksheet 'Master Document'. Rows that are in 'SP Form' that are not present in 'MASTER_New GTL' need to be highlighted. See example below where Row number 4 is in 'SP Form' but not in 'MASTER_New GTL' so is highlighted. Ofcourse that is a small subset of data, whereas the actual spreadsheets contain hundreds of rows.
Excel Workbook | ||||||||
---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | |||
1 | 'SP Form' (worksheet 'Page1') | MASTER_New GTL' (worksheet 'Master Document') | ||||||
2 | Column A | Column G | Column C | Column H | ||||
3 | Row number | SP CODE | OP_MATERIAL_CODE | Row number | SP Code | FORM CODE | ||
4 | 1 | 001A0001 | 140001974427 | 1 | 001A0769 | 140001012711 | ||
5 | 2 | 180C0001 | 140001791988 | 2 | 001A0001 | 140001974427 | ||
6 | 3 | 001A9915 | 140002352957 | 3 | 001B1681 | 140002024410 | ||
7 | 4 | 901L1473 | 140000003464 | 4 | 180C0001 | 140001791988 | ||
8 | 5 | 001B1681 | 140001791979 | 5 | 001A9915 | 140002352957 | ||
9 | 6 | 001B1681 | 140002024410 | 6 | 001B1681 | 140001791979 | ||
10 | 7 | 001A0769 | 140001012711 | 7 | 001A0769 | 140001013000 | ||
11 | 8 | 001A0769 | 140001013000 | 8 | 901L1473 | 140000003400 | ||
12 | 9 | 901L1473 | 140000003400 | |||||
Master Document |
Thanks
Chad