Find Row Match and Copy to Another worksheet

roofover

New Member
Joined
Sep 5, 2006
Messages
48
I was wondering if anyone could help me with some code to complete this task.

I have 2 worksheets "data1" and "data2" I want to search both sheets columns a - f, if any of the rows match exactly I want to copy the row to a sheet called "datamatch".

Thanks for any help.
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
try something like this

1.in in each sheet in each row concatenate all the cells in A to f and park it in G
2. combine both the sheets in one sheet (all theows A to G)for e.g. datasheet
3sort datasheet according to column G
4. the duplicated will be adjacnet.
5. use pelarsons "highlight duplicates"
referecne:
http://www.cpearson.com/excel/topic.htm
6. remove highighted rows.
7. finally delete column G

may be better solutins are available. wait for a day.
 
Upvote 0

Forum statistics

Threads
1,219,096
Messages
6,146,273
Members
450,682
Latest member
augusto89

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top