Email address data workflow

goble

Board Regular
Joined
Oct 7, 2010
Messages
52
Office Version
  1. 2019
Platform
  1. Windows
Hello Excel gurus,

I have extracted emails from Outlook to CSV. Sorry if this has been asked before.

Column1 (found in A1)Column2Column3
To: (Address)CC: (Address)BCC: (Address)
email1@domainx.com
email2@domainy.comemail3@domainz.com;email4@domain1.com;email4@domainz.com;email5@domain1.com;email6@domainz.com;email7@domain1.com
(and a lot more emails here)
email8@domain5.com; email9@domain6.comemail1@domainb.com (and a lot more emails here)

Am looking for a way to have all emails in one column so I can keep unique values. :cool:
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Hi,
VBA Code:
Sub test()
    Dim cell As Range, c, kys()
    With CreateObject("Scripting.Dictionary")
        For Each cell In Sheets("Sheet1").UsedRange.SpecialCells(xlConstants)
            If InStr(cell.Value, "@") Then
                For Each c In Split(cell, ";")
                    If InStr(c, "@") Then .Item(Trim(c)) = ""
                Next c
            End If
        Next cell
        kys = Application.Transpose(.keys)
        Sheets("Sheet2").Range("A2").Resize(UBound(kys)).Value = kys
    End With
End Sub
 
Upvote 0
Solution

Forum statistics

Threads
1,226,112
Messages
6,189,039
Members
453,520
Latest member
packrat68

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