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

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
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.
 
Upvote 0

Forum statistics

Threads
1,217,750
Messages
6,138,407
Members
450,134
Latest member
TYoung24

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