+ Reply to Thread
Results 1 to 7 of 7

How to Split Ver Large Exel File Into Smaller Files of 1000 Rows in Size

  1. #1
    Registered User
    Join Date
    05-05-2013
    Location
    Scotland
    MS-Off Ver
    Excel 2007
    Posts
    1

    How to Split Ver Large Exel File Into Smaller Files of 1000 Rows in Size

    Hi Forum Members,
    I am totally new to Excel Forum. Is there a very simple way for me to split a large file of over 400,000 rows simply into lots of uniquely named Excel files of only 1000 rows, ie. File names like :-
    Excel File Rows 1 -100
    Excel File Rows 101-200
    Excel File Rows 201- 300

    I've never used macros, and I am hopeful that there is perhaps a simple option or technique in Excel to do this.

    Many thanks indeed,
    Richard

  2. #2
    Forum Contributor
    Join Date
    03-27-2012
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    154

    Re: How to Split Ver Large Exel File Into Smaller Files of 1000 Rows in Size

    Hi,

    Welcome to the forum.

    Press Alt+F11, then go to Insert, Module and paste in the following code into the module sheet:

    I assume you want to header row on each sheet, make sure you have a header row in row 1.

    Please Login or Register  to view this content.
    Run the code... alternatively you can open the workbook, paste in your data into sheet 1 and press the split up button.

    Let me know if you have any issues with it or if this is what you were after.

    Thanks.
    Attached Files Attached Files
    Last edited by Jarko28; 05-05-2013 at 01:44 PM. Reason: chnged: make actual new workbooks not just sheets...code and workbook sample changed

  3. #3
    Registered User
    Join Date
    11-02-2012
    Location
    Philippines
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: How to Split Ver Large Exel File Into Smaller Files of 1000 Rows in Size

    Wow this is a very huge help! What part of the code should be revised if I have TWO header rows? Thanks in advance!

  4. #4
    Forum Contributor
    Join Date
    03-27-2012
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    154

    Re: How to Split Ver Large Exel File Into Smaller Files of 1000 Rows in Size

    Try this on a saved copy of your work...this is untested:

    Please Login or Register  to view this content.
    Last edited by Jarko28; 05-25-2013 at 09:47 AM.

  5. #5
    Registered User
    Join Date
    11-02-2012
    Location
    Philippines
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: How to Split Ver Large Exel File Into Smaller Files of 1000 Rows in Size

    Thanks for this Jarko

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: How to Split Ver Large Exel File Into Smaller Files of 1000 Rows in Size

    @ ronesa818...
    Welcome to the Forum.

    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: How to Split Ver Large Exel File Into Smaller Files of 1000 Rows in Size

    @ rusmith, I would question why you would want to have 400 different files, when excel 2007 is quite capable of handling 400 000 rows?
    Last edited by FDibbins; 05-26-2013 at 02:04 AM.

  8. #8
    Forum Contributor
    Join Date
    03-27-2012
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    154

    Re: How to Split Ver Large Exel File Into Smaller Files of 1000 Rows in Size

    Ronesa, no problem, I am glad I was able to help you.

    FDibbins, regarding your question pertaining to splitting data into multiple files, I think it was well understood by rusmith that 400,000 rows of data could be stored in one workbook because they had all that data in the workbook to start with. Perhaps the reason was that they required that data in a different workbook.

  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: How to Split Ver Large Exel File Into Smaller Files of 1000 Rows in Size

    Jarko, I guess we will have to see if the OP replies to see what they have to say

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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