+ Reply to Thread
Results 1 to 9 of 9

How to split a column at first delimiter only

  1. #1
    Forum Contributor
    Join Date
    08-19-2009
    Location
    Netherlands, Amsterdam
    MS-Off Ver
    Excel 2010
    Posts
    585

    How to split a column at first delimiter only

    Hello all,

    I need to split a column at the first dot (.) delimiter.

    | CO.Q5.CAO.RFL.CAO | -> | CO | Q5.CAO.RFL.CAO |
    | CO.Q4 | -> | CO | Q4 |

    ETC.

  2. #2
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: How to split a column at first delimiter only

    maybe put this formula in column B (assuming your data in in column A)

    =LEFT(A1,FIND(".",A1)-1)&"?"&RIGHT(A1,LEN(A1)-FIND(".",A1))

    this will replace the first "." with a "?"


    drag down for all entries in A

    then copy and paste column B as values

    then text to columns using ? as the delimiter
    Happy with my advice? Click on the * reputation button below

  3. #3
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,911

    Re: How to split a column at first delimiter only

    Or in B1 use:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    And in C1 use:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Then copy down as necessary.

    BSB

  4. #4
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: How to split a column at first delimiter only

    Good one. I outsmarted myself thinking I had to find a way to delimit this.

  5. #5
    Forum Contributor
    Join Date
    08-19-2009
    Location
    Netherlands, Amsterdam
    MS-Off Ver
    Excel 2010
    Posts
    585

    Re: How to split a column at first delimiter only

    Thanks guys!
    But is there a VBA way to do this?

  6. #6
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: How to split a column at first delimiter only

    Yes, but it is difficult to see in text format. Please attach a sample excel book with desired result

  7. #7
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,911

    Re: How to split a column at first delimiter only

    Assuming your data starts in A1:

    Please Login or Register  to view this content.
    BSB

  8. #8
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: How to split a column at first delimiter only

    Does this help?

    Please Login or Register  to view this content.
    Last edited by JOHN H. DAVIS; 06-07-2016 at 08:16 AM.

  9. #9
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MSO Home and Business 2024
    Posts
    7,274

    Re: How to split a column at first delimiter only

    Or this?
    Please Login or Register  to view this content.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

+ 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] Split text and number field with no delimiter
    By lasario in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-14-2014, 07:06 PM
  2. [SOLVED] Split specific chars in one column to other columns with no delimiter
    By Fjalar in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-21-2013, 12:28 PM
  3. Split Text using numbers as Delimiter.
    By ksalsaadi in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-26-2012, 12:42 AM
  4. [SOLVED] Split One Column at Delimiter While Copying Contents of Second Column to Populate New Rows
    By medailSacrosanct in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 08-01-2012, 11:37 AM
  5. Split function VBA, space delimiter
    By mkvassh in forum Excel General
    Replies: 3
    Last Post: 10-25-2011, 12:19 PM
  6. Split Cell by Delimiter, Move to New Row...
    By jpfulton in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-16-2008, 03:43 AM
  7. Split Cell by Delimiter, Move to New Row...
    By jpfulton in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 09-08-2008, 03:53 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