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

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)

venkat1926

Well-known Member
Joined
Aug 21, 2005
Messages
4,824
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.
 

Forum statistics

Threads
1,172,166
Messages
5,879,428
Members
433,429
Latest member
Ever

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
Top