+ Reply to Thread
Results 1 to 10 of 10

One Column of Email Addresses from Three Columns

Hybrid View

  1. #1
    Registered User
    Join Date
    07-05-2013
    Location
    Ohio, US
    MS-Off Ver
    Excel 2013
    Posts
    32

    One Column of Email Addresses from Three Columns

    Not sure if this is a function or macro. I have a spreadsheet that has the following columns in Sheet1….

    A: Alternate Email
    B: Alternate Opt Out
    C: First Name
    D: Last Name
    G: Personal Email
    H: Personal Opt Out
    I: Work Email
    J: Work Opt Out

    I’m wondering about a macro or function that I can run to create this in Sheet2:

    A: First Name
    B: Last Name
    C: Email This would include all email addresses in Sheet1 that are not opted out.

    I anticipate using this macro or function again and again with spreadsheets that have thousands of email addresses in it. See the attached spreadsheet for an example. Any suggestions?
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: One Column of Email Addresses from Three Columns

    do you want to have email address from alternative and personal opt out with N in front of them
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    WANT TO SAY THANKS, HIT ADD REPUTATION (*) AT THE BOTTOM LEFT CORNER OF THE POST

    More we learn about excel, more it shows us, how less we know about it.

    for chemistry
    https://www.youtube.com/c/chemistrybyshivaansh

  3. #3
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: One Column of Email Addresses from Three Columns

    Hello Find attached !

    Formula will work for 2000 rows of sheet1 you can change the references to as many rows as you want!

    To enter the formula in you actual sheet---->go to sheet 2 select cell A2 press F2 and copy the whole formula go to your actual sheet select A2 and copy paste same then hold control and shift together and Hit enter key, then release all three keys and drag down! do similarly for other columns !
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    07-05-2013
    Location
    Ohio, US
    MS-Off Ver
    Excel 2013
    Posts
    32

    Re: One Column of Email Addresses from Three Columns

    Hello hemesh,

    Thanks for your contribution. What you offered gets me part way but not where I'm eventually hoping to be. Please see my comments in Sheet3 (attached).

    Thanks!
    Attached Files Attached Files

  5. #5
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 365
    Posts
    2,406

    Re: One Column of Email Addresses from Three Columns

    So for clear information for desired results, you need retrieve data from Sheet3 and pulled in the template Sheet1? Am I right?
    /

  6. #6
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: One Column of Email Addresses from Three Columns

    Hello Find attached !

    Hope this helps


    if this helps click"*" add rep icon in the bottom left post of my corner !
    Attached Files Attached Files

  7. #7
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: One Column of Email Addresses from Three Columns

    Sub OneToThreeColumn()
    
    Sheets("sheet1").Range("C2").Select
    x = 0
    Do While ActiveCell.Value <> ""
    
        If ActiveCell.Offset(0, -1) = "N" And ActiveCell.Offset(0, -2) <> "" Then
        x = x + 1
        Sheets("Sheet2").Range("A" & x).Value = ActiveCell.Value
        Sheets("Sheet2").Range("B" & x).Value = ActiveCell.Offset(0, 1).Value
        Sheets("Sheet2").Range("C" & x).Value = ActiveCell.Offset(0, -2).Value
        End If
    
        If ActiveCell.Offset(0, 5) = "N" And ActiveCell.Offset(0, 4) <> "" Then
        x = x + 1
        Sheets("sheet2").Range("A" & x).Value = ActiveCell.Value
        Sheets("sheet2").Range("B" & x).Value = ActiveCell.Offset(0, 1).Value
        Sheets("sheet2").Range("C" & x).Value = ActiveCell.Offset(0, 4).Value
        End If
    
        If ActiveCell.Offset(0, 7) = "N" And ActiveCell.Offset(0, 6) <> "" Then
        x = x + 1
        Sheets("sheet2").Range("A" & x).Value = ActiveCell.Value
        Sheets("sheet2").Range("B" & x).Value = ActiveCell.Offset(0, 1).Value
        Sheets("sheet2").Range("C" & x).Value = ActiveCell.Offset(0, 6).Value
        End If
    
    ActiveCell.Offset(1, 0).Select
    
    Loop
    
    End Sub

  8. #8
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: One Column of Email Addresses from Three Columns

    To use code in your actual workbook. Open the workbook then press alt+F11, new window will open then go to --->insert(at the top of window) --->module and copy paste above code there. To run the code press alt and F8 together and select the macro onetothree column

  9. #9
    Registered User
    Join Date
    07-05-2013
    Location
    Ohio, US
    MS-Off Ver
    Excel 2013
    Posts
    32

    Re: One Column of Email Addresses from Three Columns

    Thanks hemesh. This is big help!

  10. #10
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: One Column of Email Addresses from Three Columns

    Thanks for the feedback and Rep!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] can I copy a column of email addresses, paste into email address?
    By Lizizfree in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 07-20-2006, 05:05 PM
  2. Move a Column of 500 Email Addresses into BCC Field of an Email
    By Anne Troy in forum Excel Formulas & Functions
    Replies: 44
    Last Post: 09-06-2005, 06:05 PM
  3. [SOLVED] Move a Column of 500 Email Addresses into BCC Field of an Email
    By Anne Troy in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 09-06-2005, 11:05 AM
  4. Move a Column of 500 Email Addresses into BCC Field of an Email
    By Mark in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  5. [SOLVED] Move a Column of 500 Email Addresses into BCC Field of an Email
    By Mark in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1