I have two data tables side by side in the same worksheet that need to be compared. For this example, each table is 5 columns wide; A-E for first table and G-K for second table. However, the actual tables being used are more like 30 columns wide. I have attached a sample.
These tables will not be sorted to match each other and may not even have the same amount of rows. The purpose of the macro is to compare the tables and place a comment in column F adjacent the items in columns A.
The macro I need would do several things
- Determine if the item in column A exists in column G. If it does, proceed to compare the data in the other columns. If it doesn't, add a comment "NEW PART" in column F and highlight the entire new row in the first table only. Do this for all rows in the first table.
- If the items exist in both tables, the macro would compare all corresponding columns and if any changes are identified, the comment "REVISION" would be placed in column F and the specific changes would be highlighted in yellow.
- If the items exist in both tables, and no changes are identified, the comment "NO CHANGE" would be placed in column F.
The sample file has a before and after of the desired reults. I have experiemented with VLOOKUP but firstly, we would need to sorth the data and also, the formula can become humongous if the table sizes become 30 columns wide.
Thanks in advance for any help.
Bookmarks