+ Reply to Thread
Results 1 to 4 of 4

Split worksheet columns into more columns (same worksheet) based on numer of rows

  1. #1
    Registered User
    Join Date
    03-11-2013
    Location
    Netherlands
    MS-Off Ver
    Excel 2003
    Posts
    2

    Split worksheet columns into more columns (same worksheet) based on numer of rows

    Hello everyone,

    I have the following question:

    I have an Excel file with 1 sheet consisting of 8 columns and a number of rows. The number of columns could change, attached is just an example file.

    I would like to take a predefined number of rows and columns, say 8 columns (in this case) and 2000 rows (not in this case, from the DataSource.jpg file, and place it in the empty columns starting after the last column of data, do that twice so the result looks like DataSplit.jpg.

    I need a macro or VBA for this since the real source-files are 6000+ rows and maybe more or less than 8 columns.

    I hope i have explained the situation well.

    Any help greatly appreciated!

    Beste regards,

    Ribka

    DataSource.jpgDataSplit.jpg

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2504 Win 11
    Posts
    24,705

    Re: Split worksheet columns into more columns (same worksheet) based on numer of rows

    Since you only provided a picture and did not upload the file to test, then this code is untested.

    Please Login or Register  to view this content.
    Alan
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    03-11-2013
    Location
    Netherlands
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Split worksheet columns into more columns (same worksheet) based on numer of rows

    Hi Alan,

    Thanks for reply. I will look into it.

    Also attached file which was used for screenshots in first post.

    Best regards,

    Ribka
    Attached Files Attached Files

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2504 Win 11
    Posts
    24,705

    Re: Split worksheet columns into more columns (same worksheet) based on numer of rows

    After testing, I would suggest this small change

    Please Login or Register  to view this content.

+ 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