+ Reply to Thread
Results 1 to 6 of 6

Need to split the data of a column into different columns

  1. #1
    Registered User
    Join Date
    04-13-2020
    Location
    NC, USA
    MS-Off Ver
    Windows 10
    Posts
    2

    Need to split the data of a column into different columns

    Here is the data from the column:

    01 Center\01.02 Center\01.02.03 Site place
    01 Center\ Site 2\01.02 Center\01.02.03 Site place

    I want to split this column data into two columns:

    Column 1
    01 Center\01.02 Center
    01 Center\Site 2\01.02 Center

    Column 2
    01.02.03 Site place
    01.02.03 Site place

    I used the wizard text to column feature to split on "\" but then it gives me 4 columns and I need two columns. Is there a formula code I can use to split this or would I have to manually add the "\" to create at least 4 even columns for all the data.

    Help appreciated!
    Last edited by nightangel73; 04-13-2020 at 11:18 PM.

  2. #2
    Forum Expert BMV's Avatar
    Join Date
    01-13-2020
    Location
    St-Petersburg, Russia
    MS-Off Ver
    2013-2016
    Posts
    1,329

    Re: Need to split the data of a column into different columns

    some options in the file
    B1=
    =SUBSTITUTE(A1;"\"&C1;)
    C1=
    =TRIM(RIGHT(SUBSTITUTE(A1;"\";REPT(" ";99));99))

    =LEFT(A3;SEARCH("\???????? Site place";A3)-1)
    =MID(A3;SEARCH("\???????? Site place";A3)+1;99)

    =LEFT(A5;SEARCH(" Site place";A5)-10)
    =MID(A5;SEARCH(" Site place";A5)-8;99)

    ; could be replaced to separator according regional settings.


    @AliGW usually i insert formulas in to message body.
    Attached Files Attached Files
    Last edited by BMV; 04-14-2020 at 02:56 AM.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,444

    Re: Need to split the data of a column into different columns

    @BMV

    Sorry for off-topic interjection:

    Although there is no official rule regarding this behaviour, we request that wherever possible both the question AND the answer be provided in substantive detail here within the thread. An attached workbook is an excellent aid for posing a question and offering a solution, but solely doing that with no in thread explanation makes it difficult for researchers to understand or consider the Q & A of this thread without downloading what may be a pointless doc to them, if they can do that at all. Doing that also hides the content from search engines so others may never benefit from this.

    I'm sure you understand, and we look forward to seeing you post your formulas/macros in your posts for the searching benefit of all.

    Thanks again for all your hard work here!
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  4. #4
    Forum Guru
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 365
    Posts
    2,420

    Re: Need to split the data of a column into different columns

    If your wording is not always as shown and if the second backslash is always your splitting delimiter, then you can use these formulas in the indicated cells...

    B1: =LEFT(A1,FIND("\",A1&"\\",FIND("\",A1&"\")+1)-1)

    C1: =MID(A1,FIND("\",A1&"\\",FIND("\",A1&"\")+1)+1,99)

  5. #5
    Registered User
    Join Date
    04-13-2020
    Location
    NC, USA
    MS-Off Ver
    Windows 10
    Posts
    2

    Re: Need to split the data of a column into different columns

    Thank you so much! The formulas worked

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,444

    Re: Need to split the data of a column into different columns

    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] 2 columns data split to more columns based on groups in 2nd column
    By vendam in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-09-2019, 05:43 AM
  2. [SOLVED] Split data from one column into two columns
    By augr in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-01-2017, 08:48 PM
  3. [SOLVED] Split 3 data from one column to 3 different columns
    By naga in forum Excel Formulas & Functions
    Replies: 23
    Last Post: 04-29-2017, 08:33 AM
  4. Split data column in more columns
    By mihai.bantas in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-07-2015, 07:09 AM
  5. Split data from one column into two new columns?
    By qcom in forum Excel General
    Replies: 2
    Last Post: 07-21-2011, 06:36 PM
  6. split the data in 1 column to 3 columns
    By ccs_1981 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-31-2009, 03:39 PM
  7. Split data in one column into two columns
    By maacmaac in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-12-2009, 05:07 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