Comparing two columns in two different open worksheets

Suryaprakash

New Member
Joined
Aug 1, 2011
Messages
41
I have two worksheets, of which Namelist.xls is a master file and the other one is named Namelistanddata.xls.​

Namelist.xls has 3 columns. Column B is titled "names" and there are 300 names. Namelistanddata.xls has columns A:P, with column D titled "names" having 5000 "names" and these 5000 names also contain the above 300 names. I wish to compare column B of namelist.xls with column C of Namelistanddata.xls and wherever the names are matching in the file Namelistanddata, I wish to copy those complete rows (A:P) in a new file. So, in effect, I should get a new file with 300 rowsof data.​

I am using excel 2000 and my files include only one sheet each. Could anyone help me out with a macro for this job, as manually matching through 5000 names is just impossible and I am required to do this process everyday with new set of names in the second file.​
 
Last edited:

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
I've never used Excel 2000 but would using an Advanced Filter be an option?

Filter the mastersheet using the 300 names and copy the visible results to a new sheet?
 
Upvote 0
Dear Comfy:

The method suggested by you would be very tedious and time consuming. I believe there could be a much simpler solution, like a macro.

Thanks for your suggestion
 
Upvote 0

Forum statistics

Threads
1,224,503
Messages
6,179,134
Members
452,890
Latest member
Nikhil Ramesh

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