+ Reply to Thread
Results 1 to 6 of 6

Split by the second delimeter which is not the same in all cells

  1. #1
    Forum Contributor
    Join Date
    10-18-2016
    Location
    Chicago, USA
    MS-Off Ver
    Office 365
    Posts
    220

    Exclamation Split by the second delimeter which is not the same in all cells

    Hi All,

    Happy Friday!.. I have a cell of address of the following types which i am trying to split into two after the second delimiter which is a ">" or":"...


    Turkey > Istanbul: Saroke No:12 h12 kasa ku metal
    Argentina > Buenos Aires > S4367 > San matar,34,linkefg drett


    Can someone throw light on how this can be done..

    Thanks,
    Arun

  2. #2
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: Split by the second delimeter which is not the same in all cells

    Happy Friday! With your data in A2, try the following:

    Left half: =LEFT($A2,SEARCH("@",SUBSTITUTE(SUBSTITUTE($A2,":","@"),">","@"),SEARCH("@",SUBSTITUTE(SUBSTITUTE($A2,":","@"),">","@"))+1))

    Right half: =MID($A2,SEARCH("@",SUBSTITUTE(SUBSTITUTE($A2,":","@"),">","@"),SEARCH("@",SUBSTITUTE(SUBSTITUTE($A2,":","@"),">","@"))+1)+1,1000)

    Then fill down as needed. The attachment should show how it looks:
    Attached Files Attached Files
    Last edited by CAntosh; 04-07-2017 at 11:51 AM.

  3. #3
    Forum Contributor
    Join Date
    10-18-2016
    Location
    Chicago, USA
    MS-Off Ver
    Office 365
    Posts
    220

    Re: Split by the second delimeter which is not the same in all cells

    Hi Cantosh,

    Thanks for your response!...Appreciate your help!..Also can you please let me know how to get rid of the leading : and > in the first column as below..

    Turkey > Istanbul:
    Argentina > Buenos Aires >

  4. #4
    Forum Contributor
    Join Date
    10-18-2016
    Location
    Chicago, USA
    MS-Off Ver
    Office 365
    Posts
    220

    Re: Split by the second delimeter which is not the same in all cells

    Sorry I meant the trailing : and >

  5. #5
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: Split by the second delimeter which is not the same in all cells

    Glad to help!

    To remove the trailing delimiter, just add a "-1", so the formula in B2 looks like this:

    =LEFT($A2,SEARCH("@",SUBSTITUTE(SUBSTITUTE($A2,":","@"),">","@"),SEARCH("@",SUBSTITUTE(SUBSTITUTE($A2,":","@"),">","@"))+1)-1)

  6. #6
    Forum Contributor
    Join Date
    10-18-2016
    Location
    Chicago, USA
    MS-Off Ver
    Office 365
    Posts
    220

    Re: Split by the second delimeter which is not the same in all cells

    You are awesome!..Have a great day!!..

+ 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] Macro to group the values in column by pipe delimeter
    By anujv22 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-01-2016, 11:39 PM
  2. Splitting Cells based on a STR delimeter
    By rdubya in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-28-2014, 03:45 PM
  3. [help] problem with tab delimeter in one coloumn
    By meres in forum Excel General
    Replies: 1
    Last Post: 03-12-2013, 11:57 PM
  4. VBA String Split after certain amount of the same delimeter
    By Alla88 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-12-2013, 10:18 AM
  5. Parse values either side of a delimeter.
    By Yappa in forum Excel General
    Replies: 4
    Last Post: 07-31-2008, 04:17 AM
  6. text wrap delimeter
    By armagan in forum Excel General
    Replies: 2
    Last Post: 05-11-2006, 11:42 AM
  7. Macro to import delimeter file
    By davemel in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-04-2006, 10:00 AM

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