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?
 

Some videos you may like

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)

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.
 

Watch MrExcel Video

Forum statistics

Threads
1,123,140
Messages
5,599,964
Members
414,352
Latest member
macquarie_jchan58

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