Closed Thread
Results 1 to 4 of 4

Macro to split text string based on its various structure/delimiters

  1. #1
    Registered User
    Join Date
    04-21-2020
    Location
    toronto
    MS-Off Ver
    2017
    Posts
    23

    Macro to split text string based on its various structure/delimiters

    Hi guys,

    THIS THREAD WAS PREVIOUSLY WRONGLY MARKED AS DUPLICATE, BUT I AM STILL LOOKING FOR A SOLUTION TO THE BELOW AS THE REQUIREMENTS DIFFER FROM THE PREVIOUS QUESTION - THANKS IN ADVANCE.

    I am looking for Macro, which would separate strings based on delimiter as the previous version always breaks when I am trying to consume larger amounts of data – as these turned out to have uneven structure (i.e. the user has an option to put free text), which reflects as delimited by “;” without “~” – please see the example of “free text” in the sheet2.

    If the input within the string starts with “~” then it means that the string has 1- to three elements – COUNTRY, CITY, REGION – these should all be populated in relevant columns of the Sheet2 and if any of them is missing it will simply reflect as an empty space. The country is always separated by ~,~ and is always present – even when the input is done by free text.
    For clear illustration please see the attached example.


    Thanks a million!
    Attached Files Attached Files

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,882

    Re: Macro to split text string based on its various structure/delimiters

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not provided the required cross-post link(s) here.

    Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important.

    (Note: this requirement is not optional. No help to be offered until the link is provided.)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

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

    Re: Macro to split text string based on its various structure/delimiters

    This one is ignoring multiple duplicate thread warning from the Moderators 3, 4 times already regarding this same question.

    This is almost like a spam to me...

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,882

    Re: Macro to split text string based on its various structure/delimiters

    crossposted also at: https://www.mrexcel.com/board/thread...query.1132969/

    Since you have chosen to not abide by our rules after several moderator requests, this thread is now closed and you are locked out of this site for a period of time. (7 Days)
    Last edited by alansidman; 05-04-2020 at 02:58 PM.

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Macro to split text string based on its various structure/delimiters
    By Velehrad in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-03-2020, 11:24 PM
  2. Macro to split large range of text with multiple delimiters.
    By QUAKE2K in forum Excel Programming / VBA / Macros
    Replies: 31
    Last Post: 11-06-2019, 10:35 AM
  3. Split Text Inconsistent Data and Delimiters
    By kreiner2006 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-25-2019, 08:45 PM
  4. Replies: 3
    Last Post: 11-16-2018, 04:17 AM
  5. Split the string based on delimiters
    By Reddiiiiii in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-05-2017, 07:47 AM
  6. Replies: 9
    Last Post: 01-04-2017, 03:35 PM
  7. Replies: 2
    Last Post: 04-09-2014, 11:48 AM

Tags for this Thread

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