+ Reply to Thread
Results 1 to 6 of 6

Split comma delimited string on comma replace comma with pipe then rejoin Join string

  1. #1
    Forum Contributor
    Join Date
    07-11-2010
    Location
    Minneapolis, USA
    MS-Off Ver
    Excel 2016
    Posts
    308

    Cool Split comma delimited string on comma replace comma with pipe then rejoin Join string

    Cells in column H are comma delimited strings. I heed to replace ONLY the comma between the sub-strings

    ex:

    Please Login or Register  to view this content.
    In this case the sub-strings are
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    so I get
    Please Login or Register  to view this content.
    The code I have gives me
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    I have been trying for hours get this to no avail

    Thanks for any help with this

    I have attached a file
    Attached Files Attached Files
    Last edited by capson; 05-25-2020 at 12:34 AM.

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834

    Re: Split comma delimited string on comma replace comma with pipe then rejoin Join string

    Can you explain why "decision sciences, ecosynomics" are excluded?

  3. #3
    Forum Contributor
    Join Date
    07-11-2010
    Location
    Minneapolis, USA
    MS-Off Ver
    Excel 2016
    Posts
    308

    Re: Split comma delimited string on comma replace comma with pipe then rejoin Join string

    Apologies, that was an error on my part. I have corrected it

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834

    Re: Split comma delimited string on comma replace comma with pipe then rejoin Join string

    OK, so you want to split the string by the pattern of xxxxx - ie.
    This is to show you how I do it for demonstration purpose.
    Please Login or Register  to view this content.
    If this is how you want to separate the string, I need to see your desired results(sheet layouts).

  5. #5
    Forum Contributor
    Join Date
    07-11-2010
    Location
    Minneapolis, USA
    MS-Off Ver
    Excel 2016
    Posts
    308

    Re: Split comma delimited string on comma replace comma with pipe then rejoin Join string

    Jindon, thank you for your response. Your solution in very good for this example. Again thank you

    I am trying for a more general solution.

    In my real data which is dynamic and keeps changing cell values can be any kind of single word or sentence strung together with commas like The fox in brown, fast, hungry, Orange, ABC, XYZ, LMN

    where the sub-strings are
    The fox in brown, fast, hungry
    ABC, XYZ, LMN
    Orange

    That is why I what to use the "FullOptionLists" sheet so I can indicate what are the sub-string for each column

    I regret if I was un-clear in my question

    Any further help with this is greatly appreciated

  6. #6
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834

    Re: Split comma delimited string on comma replace comma with pipe then rejoin Join string

    I don't know how "FullOptionLists" play the roll here, but only from col.H of your "RawData".
    This is to show you how to separate,
    If this is not kind of how you wanted, please wait for someone else to come in to help you.
    Good luck.
    Please Login or Register  to view this content.

+ 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. Extract String from comma delimited list in cell
    By Beats.Nigel in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-13-2019, 08:48 AM
  2. [SOLVED] Cell containing comma delimited string changes to number format issue
    By Sintek in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-20-2018, 03:59 AM
  3. [SOLVED] Simplification for regex code to replace numbers in a comma delimited string
    By Sintek in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-08-2018, 06:30 AM
  4. [SOLVED] Summing Values Based on a Comma Delimited String
    By bryan0 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-18-2013, 11:43 AM
  5. Excel 2007 : Pivot Table String Comma Delimited
    By asyssovers in forum Excel General
    Replies: 0
    Last Post: 06-08-2011, 01:23 AM
  6. Building a comma delimited string from Cell Range
    By Patchworks in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 11-17-2008, 12:25 AM
  7. Searching a comma delimited string in a cell
    By migpics in forum Excel General
    Replies: 7
    Last Post: 11-26-2007, 05:58 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