+ Reply to Thread
Results 1 to 10 of 10

Distribute the data from Single Column to multiple Columns

  1. #1
    Registered User
    Join Date
    09-21-2012
    Location
    bangalore
    MS-Off Ver
    Excel 2007
    Posts
    51

    Distribute the data from Single Column to multiple Columns

    Hi

    I want to run a macro to Distribute the data from Single Column to multiple Columns

    For example
    I have a data in Sheet1 - Column B - Rows Could be 2 to 10000

    Where the data will be in sequence,
    Please Login or Register  to view this content.
    Now I want the above data in Sheet 2 like
    Please Login or Register  to view this content.
    I'm doing this part manually but looking for help to automate it

    Flaws in Data:
    Projects are not limited
    Some times All files comes from single project, and some times files comes from many projects

    Catch is, the Project Name starts with word "Project".. Then File names continues...

    Additional Information: The above data is been processed from a text field and arranged in an order. Basing on the File Name the Project is been set. Mapping table, Formulas & Macros I use are available in the attached workbook.

    Is there a way to automate this part? Need your help...

    Thank you

    Data_Sample.xlsm

  2. #2
    Valued Forum Contributor
    Join Date
    08-14-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    573

    Re: Distribute the data from Single Column to multiple Columns

    You can try this code
    Please Login or Register  to view this content.

  3. #3
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Distribute the data from Single Column to multiple Columns

    hi Novice_To_Excel, option, click Run button
    Attached Files Attached Files
    Last edited by watersev; 09-29-2012 at 06:02 AM.

  4. #4
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Distribute the data from Single Column to multiple Columns

    This should do it

    Please Login or Register  to view this content.
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

  5. #5
    Registered User
    Join Date
    09-21-2012
    Location
    bangalore
    MS-Off Ver
    Excel 2007
    Posts
    51

    Re: Distribute the data from Single Column to multiple Columns

    Thanks for the quick reply... macro is doing as said...

    Can we input multiple project names, in case like working on two or more projects like, "Quick_Project_Core" & "Old_Project_Maintenance", (length of the word is not fixed) and it should check for either of the words and then segregate the data...

  6. #6
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Distribute the data from Single Column to multiple Columns

    Give this a try

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    09-21-2012
    Location
    bangalore
    MS-Off Ver
    Excel 2007
    Posts
    51

    Re: Distribute the data from Single Column to multiple Columns

    Thanks Mike.... Got it what need to be done... Thanks a lot

  8. #8
    Registered User
    Join Date
    09-21-2012
    Location
    bangalore
    MS-Off Ver
    Excel 2007
    Posts
    51

    Re: Distribute the data from Single Column to multiple Columns

    @ Mike

    When I give Project Name with some number it is not giving output as we expected.
    I want to give Project Names, Like
    Project12A,
    Project13B,
    Project13B2,
    Project14_A,
    Project14B_1...

    Why I want to specify the number is, some of the file names have the word "Project".

    Any suggestions on this... thank you...
    Last edited by Novice_To_Excel; 09-29-2012 at 09:28 AM.

  9. #9
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Distribute the data from Single Column to multiple Columns

    Im lost as to what your wanting? Can you upload an example ?

  10. #10
    Registered User
    Join Date
    09-21-2012
    Location
    bangalore
    MS-Off Ver
    Excel 2007
    Posts
    51

    Re: Distribute the data from Single Column to multiple Columns

    Thanks Mike, With the help of your code, I have changed a line and got it. I'm want to add more letters to word "Project" and get the desired output....

    Modified line, may be lengthy, but still doing its part...
    Please Login or Register  to view this content.
    I wish to have good VBA programming skills, yet to learn from experts like you and others on our forum...

    Thank you...
    Data_Sample1.xlsm

+ 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