+ Reply to Thread
Results 1 to 6 of 6

Splitting Excel File in to many based on a criteria

  1. #1
    Registered User
    Join Date
    08-20-2012
    Location
    Toronto
    MS-Off Ver
    Excel 2003
    Posts
    4

    Splitting Excel File in to many based on a criteria

    Hello

    This is my first time posting a question.

    I have a file which contains information by departments in rows and columns have the month and yeartodate information in one sheet and second sheet contains more detailed information in the same format.

    I did get a code (attached) thanks to mtone, to split only one sheet and the code then creates separate files based on the department criteria.
    I would like to create one file for each department that contains both sheet 1 and sheet 2 from the main file in the same format and same position of sheet 1 and sheet 2.

    I hope I am able to explain my question. I look forward to replies and if need further information.
    -----------------------------------------------------------------
    Attached Files Attached Files
    Last edited by meean; 05-05-2016 at 08:34 AM.

  2. #2
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,088

    Re: Splitting Excel File in to many based on a criteria

    meean welcome.
    You forgot to use code tags when posting code: Please edit your post and add them.
    In the other hand it will really easier to attach a sample file .
    PCI
    Last edited by PCI; 05-05-2016 at 01:02 PM.
    - Battle without fear gives no glory - Just try

  3. #3
    Registered User
    Join Date
    08-20-2012
    Location
    Toronto
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Splitting Excel File in to many based on a criteria

    Thanks for the comments. I have removed it from the post and attached the code as a txt file. Hope this is ok.

    Thanks

  4. #4
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,088

    Re: Splitting Excel File in to many based on a criteria

    Meean, I sorry but about the file I was hoping to see a sample of the data file. can you do ?

  5. #5
    Registered User
    Join Date
    08-20-2012
    Location
    Toronto
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Splitting Excel File in to many based on a criteria

    Hi

    Please see the attached excel file containing the vba code as well as the data.

    Hopefully this was what you were referring to.

    Thanks
    Attached Files Attached Files
    Last edited by meean; 05-05-2016 at 06:00 PM.

  6. #6
    Registered User
    Join Date
    08-20-2012
    Location
    Toronto
    MS-Off Ver
    Excel 2003
    Posts
    4
    Hi

    I was hoping that someone may have a solutionto this problem.

    Thanka

    Quote Originally Posted by meean View Post
    Hi

    Please see the attached excel file containing the vba code as well as the data.

    Hopefully this was what you were referring to.

    Thanks

+ 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. splitting multiple worksheet based on column criteria
    By sachin483 in forum Excel General
    Replies: 2
    Last Post: 04-10-2015, 10:27 PM
  2. [SOLVED] splitting data into multiple tabs based on column criteria
    By bardobhb in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-02-2014, 02:30 PM
  3. [SOLVED] splitting data into multiple tabs based on column criteria
    By bardobhb in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-26-2014, 11:57 PM
  4. [SOLVED] splitting an array into columns based on criteria
    By akamenov88 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-14-2014, 01:55 PM
  5. Excel file splitting
    By Kdampuru in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-01-2014, 02:21 PM
  6. [SOLVED] Selectively Import Rows into Excel from a CSV file based on criteria
    By lesoies in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-18-2012, 01:14 PM
  7. Splitting excel file up by 100's
    By Johnny0313x in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-24-2008, 04:58 PM

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