+ Reply to Thread
Results 1 to 3 of 3

Macro to split one file into many based on criteria !!!

  1. #1
    Registered User
    Join Date
    01-17-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    22

    Macro to split one file into many based on criteria !!!

    Hi ,

    I need a macro which can split my data based on the countries in the dump in to diffrent country files. the countries will be present in 3 tabs .

    I have pasted the Column headers i need split it based on the D Column 'Country' , it shud keep all the data pertaining to the country & should delete rest of the other country data & same the file in the country name . Kindly help me with this macro

    all the 3 tabs will have the same data sets but for different months

    File is in XLXS

    but the headers would remain the same

    Period Client Client Name Country Client Group Domicile Region Segment GAM ID (FAM ID) GAM Name (FAM Name) MPR Product XSell Mapping YTD Annualized Revenue Total Revenue


    Regards
    Vatson
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    01-17-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: Macro to split one file into many based on criteria !!!

    Hi ,

    Any help on this ?????

    Regards
    vatson

  3. #3
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Macro to split one file into many based on criteria !!!

    Hi Vatson

    Your Sample File has 4 Worksheets (the 4th is blank). Will your Actual Data Files have only three Worksheets?

    Do you want a separate Workbook for each Country? Will these Country Workbooks be cumulative or should they be cleared the next time you split the Data File?
    Last edited by jaslake; 07-11-2015 at 05:38 PM.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

+ 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. Need Macro file to split then consolidate workbooks based on partial file name
    By dawnmau in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-04-2014, 04:37 PM
  3. Replies: 0
    Last Post: 05-15-2013, 05:24 AM
  4. Macro for Spiliting a file based on criteria into separate excell files
    By anto_01 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-15-2012, 07:19 PM
  5. Need vba codes to split row (cut and paste to new workbook) based on criteria
    By BrandonFromSingapore in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 02-24-2012, 01:23 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