+ Reply to Thread
Results 1 to 6 of 6

concatenate and delimiters redux

Hybrid View

  1. #1
    Registered User
    Join Date
    09-14-2009
    Location
    Connecticut, USA
    MS-Off Ver
    Excel 2007
    Posts
    5

    concatenate and delimiters redux

    All,
    Someone was good enough to solve my initial problem, many thanks! It was being able to concatenate a list of names with commas between names.

    The resolution was:

    =Substitute(Trim(E13&" "&E14&" "&E15&" "&E16&" "&E17&" "&E18&" "&E19)," ",",")

    This worked great until my boss said "I want first and last names. Now someone whose name makes the list is shown as john, smith.

    I am pretty new to Excel - any assistance is appreciated.
    Thanks (again)
    goji
    Last edited by goji; 09-21-2009 at 03:28 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: concatenate and delimiters redux

    To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    If needed supply a before and after sheet in the workbook so the person helping you can see what you are trying to achieve.

    Doing this will ensure you get the result you need!
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,053

    Re: concatenate and delimiters redux

    Can you upload example how names (first and last) can appear?
    Never use Merged Cells in Excel

  4. #4
    Registered User
    Join Date
    09-14-2009
    Location
    Connecticut, USA
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: concatenate and delimiters redux

    the results (in yellow on the sheet) should be first and last name seperated by a comma. Previously using IF's double commas would appear if a person did not show up on the list in e13:e19.
    Attached Files Attached Files

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: concatenate and delimiters redux

    tRY:

    =SUBSTITUTE(SUBSTITUTE(TRIM(SUBSTITUTE(E13," ","#")&" "&SUBSTITUTE(E14," ","#")&" "&SUBSTITUTE(E15," ","#")&" "&SUBSTITUTE(E16," ","#")&" "&SUBSTITUTE(E17," ","#")&" "&SUBSTITUTE(E18," ","#")&" "&SUBSTITUTE(E19," ","#"))," ",", "),"#"," ")

  6. #6
    Registered User
    Join Date
    09-14-2009
    Location
    Connecticut, USA
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: concatenate and delimiters redux

    I could have lived a thousand lifetimes and never figured that out. Thanks once again! Your expertise is appreciated.
    goji

+ Reply to 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