Closed Thread
Results 1 to 11 of 11

Advanced Concatenate

  1. #1
    Registered User
    Join Date
    06-17-2008
    Posts
    50

    Advanced Concatenate

    In cells F2:F334 I have a list of e-mail addresses. I would like to merge all of them into one cell separated by commas so that I can paste them into an e-mail.

    I know I can use =concatenate(F2,",",F3,",",F4,...) But obviously that would take a while.

    Is there a faster way I can do this?

    Thanks in advanced.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    You could put this (minimally-tested) function in your workbook:
    Please Login or Register  to view this content.
    And then use it like this:

    =Cat(F2:F334, ",", TRUE)

    When you hear the beep, the catenated data is on the clipboard and you can paste it wherever.

    BEFORE you use the function, you have to set a reference in the VBE to Microsoft Forms 2.0 Object Library. You can either

    >> find it under Tools > References in the VBE, or

    >> add a form to your workbook (Insert > UserForm), and then delete it (the reference will remain).
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    06-17-2008
    Posts
    50
    Got it, thanks.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    Please mark the thread as solved?

  5. #5
    Registered User
    Join Date
    06-17-2008
    Posts
    50
    I'm not sure how to do that?

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    Click the Edit button on your first post in the thread

    Click Go Advanced, select [SOLVED] from the Prefix dropdown, then click Save Changes

    If more than two days have elapsed since your first post, ask a moderator to mark it.

  7. #7
    Registered User
    Join Date
    01-13-2009
    Location
    los angeles
    MS-Off Ver
    Excel 2007
    Posts
    6
    Hi, I am having a similar problem. Except I am working with numbers and I need to separate them with a space. Can I use the code above, if so can I just change "," to " ",? Also, where do I put this code? Anywhere in excel?

    I am a newbie with a new job that uses excel a lot. So I will have tons of questions I am sure.
    Thanks!
    Last edited by naynay; 01-13-2009 at 12:49 AM.

  8. #8
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    Welcome to the forum, naynay.

    Please take a few minutes to read the Forum Rules about posting questions in other people's threads (and in general), and then start your own.

  9. #9
    Registered User
    Join Date
    01-13-2009
    Location
    los angeles
    MS-Off Ver
    Excel 2007
    Posts
    6
    sorry about that.

  10. #10
    Registered User
    Join Date
    10-24-2010
    Location
    india
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Advanced Concatenate

    Quote Originally Posted by shg View Post
    You could put this (minimally-tested) function in your workbook:
    Please Login or Register  to view this content.
    And then use it like this:

    =Cat(F2:F334, ",", TRUE)

    When you hear the beep, the catenated data is on the clipboard and you can paste it wherever.

    BEFORE you use the function, you have to set a reference in the VBE to Microsoft Forms 2.0 Object Library. You can either

    >> find it under Tools > References in the VBE, or

    >> add a form to your workbook (Insert > UserForm), and then delete it (the reference will remain).
    sorry i could not able to use it......help me.

  11. #11
    Registered User
    Join Date
    10-25-2010
    Location
    Florida, USA
    MS-Off Ver
    MS Office 2007 & 2010
    Posts
    3

    Re: Advanced Concatenate

    Here's a crude way to do it, but effective.

    I'm assuming that you can use column G.

    In G2, type "=F2" (without the quotes)
    In G3, type "=G2&","&F3" (without the quotes)

    Now, just copy down the formula in G3 down to G334, and the value that appears in G334 is the list you are looking for. Copy the contents of G334, and paste it in your email using paste special / values.

    Done!
    ----------------------------------------------------------------------------------
    Troy "9ballpimp"

Closed Thread

Thread Information

Users Browsing this Thread

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

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