+ Reply to Thread
Results 1 to 11 of 11

Split one row of data to columns and rows

  1. #1
    Registered User
    Join Date
    10-12-2011
    Location
    Bahrain
    MS-Off Ver
    Excel 2007
    Posts
    5

    Split one row of data to columns and rows

    Hi

    I have a one row data, contain only numbers

    I want to separate the data into rows and cells

    I attached a file with a sample of the data and colored the data which I want split to the table in the second sheet of the file

    If you need a clarification don't hesitate to ask

    I appreciate your helps and thanks in advance :D
    Attached Files Attached Files
    Last edited by A7md; 10-12-2011 at 11:08 PM.

  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 one row of data to columns and rows

    Phew !!! such a long number. Is it obtained through some concatenation?

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Split one row of data to columns and rows

    1) The coloring doesn't exist in your original data?
    2) Your string is 450 digits long... you always want to split in the exact same number of digits?
    3) Or is your string of any length, and we need to break each set of 50 characters as shown?
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  4. #4
    Valued Forum Contributor Steffen Thomsen's Avatar
    Join Date
    10-15-2010
    Location
    Kolding, Denmark
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    953

    Re: Split one row of data to columns and rows

    This splits your numbers and places then the correct places.
    Dont know bout keeping the formatting.

    Please Login or Register  to view this content.
    Steffen Thomsen

  5. #5
    Registered User
    Join Date
    10-12-2011
    Location
    Bahrain
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Split one row of data to columns and rows

    Quote Originally Posted by arlu1201 View Post
    Phew !!! such a long number. Is it obtained through some concatenation?
    this is just a sample, its to much longer

    Quote Originally Posted by JBeaucaire View Post
    1) The coloring doesn't exist in your original data?
    2) Your string is 450 digits long... you always want to split in the exact same number of digits?
    3) Or is your string of any length, and we need to break each set of 50 characters as shown?
    1- No, I colored to be clear
    2- No, this is just a sample
    3- exactly, 50 characters in row


    thannx for your interest

  6. #6
    Registered User
    Join Date
    10-12-2011
    Location
    Bahrain
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Split one row of data to columns and rows

    Quote Originally Posted by Steffen Thomsen View Post
    This splits your numbers and places then the correct places.
    Dont know bout keeping the formatting.

    Please Login or Register  to view this content.
    Steffen Thomsen
    thanx a lot Steffen, its works, but not correctly split to the table.

  7. #7
    Valued Forum Contributor Steffen Thomsen's Avatar
    Join Date
    10-15-2010
    Location
    Kolding, Denmark
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    953

    Re: Split one row of data to columns and rows

    yes it's split correctly but as i said the formattings gone.

    Those splits that arent long enough needs an amount of 0 in front of it.

    Steffen Thomsen

  8. #8
    Valued Forum Contributor Steffen Thomsen's Avatar
    Join Date
    10-15-2010
    Location
    Kolding, Denmark
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    953

    Re: Split one row of data to columns and rows

    This should work!

    Please Login or Register  to view this content.
    Steffen Thomsen

    * Edit

    Let me know if it's working for you

  9. #9
    Registered User
    Join Date
    10-12-2011
    Location
    Bahrain
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Split one row of data to columns and rows

    actually I don't need the formatting

    I attached the file after add and run the macro

    it should be :
    No.1: 6 digits
    No.2: 4 digits
    No.3: 13 digits
    No.4: 11 digits
    No.5: 16 digits
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    10-12-2011
    Location
    Bahrain
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Split one row of data to columns and rows

    Please Login or Register  to view this content.
    this one works with me

    thanx a lot Steffen

  11. #11
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Split one row of data to columns and rows

    If that takes care of your need, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

+ 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