+ Reply to Thread
Results 1 to 6 of 6

Split Merged Data from one column in to 3

  1. #1
    Registered User
    Join Date
    05-26-2009
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    36

    Split Merged Data from one column in to 3

    Hi

    I have a string of data in column A:

    0| 20| 266|
    6| 21| 180|
    0| 28| 180|
    0| 17| 294|
    0| 11| 240|
    0| 8| 221|
    4| 27| 215|

    Which needs to be split in to 3 columns; B,C,D. The above data example is carbon copy, therefore i am also seeing the '|' after each number, this will need to be removed when the numbers are placed in to in to the 3 columns. The data sheet is large with current around 9000 rows, hence i thought a Macro would be more productive over a formula


    welcome any help

    thanks

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Split Merged Data from one column in to 3

    Have you tried doing a text to columns split using the delimited option?
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    08-16-2012
    Location
    SA
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Split Merged Data from one column in to 3

    Try the folllowing:
    Column 1: =LEFT(A1,FIND("|",A1)-1)
    Column 2:=MID(A1,FIND("|",A1,2)+1,FIND("|",A1,3)-3)
    Column 3:=MID(A1,FIND("|",A1,3)+1,LEN(A1)-FIND("|",A1,3)-1)

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Split Merged Data from one column in to 3

    Nice solution Leonsw. I did try it at my end and found extra spaces in the 2nd and 3rd column.

    If you do not want to retain these spaces, Trig79, then you can use the trim function before the 2nd and 3rd column functions like this -

    Column 2:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Repeat the same way for column 3.

  5. #5
    Registered User
    Join Date
    05-26-2009
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    36

    Re: Split Merged Data from one column in to 3

    Guy's

    it worked perfectly thanks for your help


    trig79

  6. #6
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Split Merged Data from one column in to 3

    Ok, great. I will mark this thread as solved for you since you will not be able to do it now (since its been more than 48 hrs since the thread was opened).

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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