Hi, I am am in need of a macro to compare 2 tables - both in the same workbook, on 2 different sheets.
Table1 is a refreshable table with data updated daily
Table2 is a table with only specific rows from table1 that were added to a new sheet previously (Sheet Name = Workload Tracking)
table 1 starts at row B21 (headers)
So, when I run the macro, I'd like to be able to highlight anything that has changed in table1 compared to the data that is visible in the columns of in table2. Table 2 will have 1 column (1) that will be in table 2 --- and table 2 will have the first 4 columns that will not be in table1 and should be ignore -- so, column 2 of table1 = column 5 of table2... and all columns after that will be the same.
3 different forms of highlighting for the differences
1. Red = If the "FileNo" is no longer on table1 but is on table 2 (Highlight entire table row red)
2. Green = If the data in table1 is filled in, but the data in table2 is not (data = the specific cell, found by the "FileNumber" row, and the column header name)
3. Yellow = If the data in table1 is filled in, and the data in table2 is filled in, but there is a difference
The comparison needs to be by "FileNo" (This is a unique value) and the Column Headers (visible in table2 but all of table 1 are possibilities, depending on which columns the user has hidden in table2) name and the data that is contained in the other, visible, columns
I have attached a workbook with notes, explaining in more detail as I think that will be clearer
Table1 actual name in my data = Table_CollPreComplaint and is on worksheet "Dashboard"
Table2 actual name in my data = Table_WorkloadTracking as is on worksheet "Workload Tracking"
--- In the example attached - both are named the same as my actual workbook dashboard
This example is MUCH smaller than the actual workbook, which is around 15,000 rows --- and shows both tables, with example columns hidden -- i hope it clarifies everything but if not, please let me know and ill be happy to clarify!
Appreciate any help!
Bookmarks