+ Reply to Thread
Results 1 to 4 of 4

Split a texts from a text string into three columns

  1. #1
    Forum Contributor
    Join Date
    08-19-2020
    Location
    Dubai
    MS-Off Ver
    Office365
    Posts
    115

    Split a texts from a text string into three columns

    Hi,


    Required a formula help to split and extract the desired results from a text string in a Column A.


    Sample copy with expected result are enclosed.


    Thanks,
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... based in Ireland... but I could be anywhere in the world
    MS-Off Ver
    Office 365 for PC.
    Posts
    34,095

    Re: Split a texts from a text string into three columns

    I strongly suspect that your example will prove to be non-representative of your real data. We'll see.

    In B5, copied down:
    =LEFT(A5,SEARCH("-",A5)-2)

    In C5, copied across and down:
    =IFERROR(FILTERXML("<A><B>"&SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(LEFT($A5,SEARCH("[",$A5)-2)," - "," "),"-","",1)," ","</B><B>")&"</B></A>","//B["&COLUMNS($A:D)&"]"),"")
    Attached Files Attached Files
    Glenn



  3. #3
    Forum Contributor
    Join Date
    08-19-2020
    Location
    Dubai
    MS-Off Ver
    Office365
    Posts
    115

    Re: Split a texts from a text string into three columns

    Many thanks glenn for your formula solution.

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... based in Ireland... but I could be anywhere in the world
    MS-Off Ver
    Office 365 for PC.
    Posts
    34,095

    Re: Split a texts from a text string into three columns

    You're welcome.



    It would be very nice if you were to just click the Add Reputation button at the foot of any of the posts of members who helped you reach a solution.

    Finally, if that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

+ 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] Text to Columns / Split first & last text in string
    By Rox. in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-13-2021, 04:36 PM
  2. [SOLVED] Macro to split a string into 2 texts based on where is the capital letter
    By IonutC in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 09-13-2016, 05:48 AM
  3. Formula(s) to Split Text String Across Columns Using Columns as Seperator
    By WaylettChris in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-24-2016, 01:13 PM
  4. [SOLVED] complex split string (delimit-text to columns)
    By EXLwiz in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 05-09-2014, 09:59 AM
  5. Replies: 2
    Last Post: 04-09-2014, 11:48 AM
  6. [SOLVED] Split text string into 5 columns
    By Desree86 in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 01-14-2014, 10:07 AM
  7. Split text string to different columns
    By liarliar in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-04-2008, 09:13 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