Combiningsheet with list question

plantnerd

New Member
Joined
Feb 5, 2004
Messages
24
Hello

I have a worksheet with a list of email addresses. I also have a list on another sheet with some of the same addresses. How can I dump this list into my worksheet and match the fields that are repeat addresses in another column?
 

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
in spreasheets give a rangename to the first list as list1 and second list in another sheet as list2. both lisst1 and list2 are in columns A in the sheets..

try to run this sub ( I prepared this for both lists in the same sheet but I thing it will work evern if they are in differne sheets because the rangenamaes are workbook specific with refernces to the concerned sheet(s). the sub is

Public Sub test()
Worksheets("sheet2").Activate
Dim findc As Range
Dim cell As Range

For Each cell In Range("list1")
With Range("list2")
Set findc = .Find(cell)
End With
If Not findc Is Nothing Then GoTo line1
cell.Copy Destination:=Range("a1").End(xlDown).Offset(1, 0)

line1:
Next
End Sub
did you get what you want. confirm. hope no bugs.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,951
Messages
5,834,538
Members
430,295
Latest member
amdis

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