+ Reply to Thread
Results 1 to 10 of 10

Split 1 worksheet into many excel files

  1. #1
    Registered User
    Join Date
    01-01-2019
    Location
    HCMC, VIETNAM
    MS-Off Ver
    2016
    Posts
    6

    Split 1 worksheet into many excel files

    Hi everyone,

    Please help me to split 1 excel master file into many smaller ones by rows.

    The master file contains header (10 first rows) + 90 information lines. I want to split it into 90 smaller excel files, each one contains header + 1 information line.

    No words can describe my gratitude for you.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,523

    Re: Split 1 worksheet into many excel files

    Attaching a sample workbook enables others to work on your problem:

    To attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include BEFORE/AFTER sheets if needed to show the process you're trying to complete or automate. Remember to desensitize the data.

    Click on GO ADVANCED and click "manage attachments" to open the upload window.


    To add a file to a post

  3. #3
    Registered User
    Join Date
    01-01-2019
    Location
    HCMC, VIETNAM
    MS-Off Ver
    2016
    Posts
    6

    Re: Split 1 worksheet into many excel files

    Hi everyone,

    Please help me to split 1 excel master file into many smaller ones by rows.

    The master file contains header (10 first rows) + 90 information lines. I want to split it into 90 smaller excel files, each one contains header + 1 information line.

    No words can describe my gratitude for you.


    Thanks davesexcel for guidance.
    Attached Files Attached Files

  4. #4
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 365
    Posts
    8,026

    Re: Split 1 worksheet into many excel files

    When you say that you want each smaller file to contain the header, do you mean the first 9 rows? What name do you want to use to save each file? What is the full path to the folder where the new files should be saved?
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  5. #5
    Registered User
    Join Date
    01-01-2019
    Location
    HCMC, VIETNAM
    MS-Off Ver
    2016
    Posts
    6

    Re: Split 1 worksheet into many excel files

    Hi Mumps1

    Yes, header in each smaller file = 9 first rows in master file

    The name for each smaller file is: "HBG IPD 201901" + "cell C" (from the information line)

    They all should be saved in the same folder with the master file

  6. #6
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 365
    Posts
    8,026

    Re: Split 1 worksheet into many excel files

    Copy/paste this macro in a standard module in the master workbook and run it from there.
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    01-01-2019
    Location
    HCMC, VIETNAM
    MS-Off Ver
    2016
    Posts
    6

    Re: Split 1 worksheet into many excel files

    Dear Mumps1,

    Grateful for your help

    Though this macro got into some problems as below. Could you please help me?

    Capture.PNG

  8. #8
    Registered User
    Join Date
    01-01-2019
    Location
    HCMC, VIETNAM
    MS-Off Ver
    2016
    Posts
    6

    Re: Split 1 worksheet into many excel files

    Dear Mumps1,

    Grateful for your help

    Though this macro got into some problems as below. Could you please help me?

    Attachment 604285

  9. #9
    Registered User
    Join Date
    01-01-2019
    Location
    HCMC, VIETNAM
    MS-Off Ver
    2016
    Posts
    6

    Re: Split 1 worksheet into many excel files

    Dear Mumps1

    I have figured it out

    Thank you

  10. #10
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 365
    Posts
    8,026

    Re: Split 1 worksheet into many excel files

    You are very welcome. I'm glad it worked out.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. I would like to split one worksheet into many files based on criteria in two columns
    By paulfields4 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-26-2015, 07:34 PM
  2. Split the excel data in worksheet to save it in two separate excel files
    By sat1591 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 03-20-2014, 04:52 AM
  3. VBA code to split a worksheet into separate excel files.
    By sambo24 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-13-2013, 06:15 AM
  4. [SOLVED] Split CSV Worksheet into Multiple CSV Files
    By chriscav in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-20-2013, 06:53 AM
  5. [SOLVED] Split Large Excel file to multiple excel files and possible save the files
    By EnzioL in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-20-2012, 03:28 AM
  6. Excel 2010 Macro -how to split worksheet into multiple files
    By kbustin in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-01-2012, 10:39 AM
  7. Split worksheet into new files
    By Jason in forum Excel General
    Replies: 3
    Last Post: 04-20-2006, 01:45 PM

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