HiHi ,
Can you give more details , or even better , upload a sample workbook ?
Narayan
HiHi ,
Let me understand this my way :
1. You have 2 ranges of data , A1 : F100000 and H1 : M3000.
2. You wish to go through the first range , and which row has data that matches any row in the second range , in at least 4 cells , then highlight that row.
Even though I had requested a sample workbook upload , since that has not been done , more time will be wasted trying to get clarifications. Please clarify the following :
a. Do the cells have to be in the same column order or can the matches be in any order ? For example , suppose a row in range 1 has the following data :
3 , 13 , 22 , 11 , 17 , 45
Suppose a row in range 2 has the following data :
3 , 11 , 22 , 56 , 45 , 22
Will the first row match the second ?
Will the duplicates in the second row count as 1 match or 2 matches ?
b. Can more than 1 row from range 1 match the same row in range 2 ?
c. Can 1 row in range 1 match more than 1 row in range 2 ?
d. Do you want a formula-based solution or do you want a VBA solution ?
Narayan
Hi ,
I am uploading a file where I have put in 2 tables named Table1 and Table2.
Both have 6 columns each.
The file has a macro named Compare_Table2_with_Table1 which when run , puts in some values in columns N and O in each row that has at least 4 matches in a row of Table1.
The value in column N is 1 to signify that a match has been found ; the value in column O is the corresponding row number in Table1 which has the matches.
If you wish to transfer the code in this file to yours , you need to do the following :
1. Ensure that your data is in tables ; if not convert the data ranges to tables
2. If your tables are not named Table1 and Table2 , either rename them to these names , or change the references within the code to your table names.
3. Copy the code and paste it in the sheet section corresponding to the sheet which has the tables.
If you can run the code , and give some feedback on how much time it takes , we can take it from there.
Narayan
Hi ,
It is not the solution which is coming short , but communication.
I am sorry , but I hope someone else will step in and help out.
Narayan