Hi Experts.
You will do me a great favour in making my life easy to help me compare two excel spread sheets to provide report on what is different to other sheets
I have attached a samples two data sheets, I always get this and my new boss is expecting this done in no time as I take a while comparing each column of spreadsheet against other, there are about 30-40 columns in my work.
They are not sorted.
How I DO:
For each column in Data1.xls, I compare with relevant column in Data2.xls (attached)
How I do is very rudimentary, I using =IF(COUNTIF(Orders!C2:C20,[Data1.xls]Orders!$O2:$O$20)=0,"No match in B","Match in B") to compare and experimenting with Index and Match and I do this for each column and in both ways
I cannot concatenate and compare as I need to file a report what columns in both Data1.xls and Data2.xls are different, how many items and differences per column.
I googled over internet and found this and was so excited only to clear format line (To show where I stand in programming)
I tried to add loops to count columns and do the stuff but with bare minimum programming knowledge, I could not get my head around after going through a course.Please Login or Register to view this content.
The problems with above macro, Limited to two columns and only one cell to cell example if data1, A6 has value "5" and data1, B8 has value "5" the comparison fails as it colour codes both with many thousands of data not in order, the above macro is only bit of help.
1. I want a loop which iterates from beginning to end of the list for each element to compare and then compare in reverse and then loop this for all columns
2. To get the above macro, I have to copy each column from Data2 to Data 1, by adding a column - So painful, if only I get the option to compare from a given column of Data1.xls to another column in Data2.xls.
3. Also another challenge is that columns are not in same order as Data2.xls has some columns moved across
Please can you help me, Sample files are attached.
Bookmarks