+ Reply to Thread
Results 1 to 6 of 6

Automatically Dividing a large file into several small files based on a column name

  1. #1
    Registered User
    Join Date
    07-19-2011
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    11

    Automatically Dividing a large file into several small files based on a column name

    Hi, I have a large excel file titled "Worldwide_Subscriptions" with the following columns (with some example data):

    Country, Region, Company, Subscriptions
    USA,North America,AT&T,1235679
    USA,North America,Verizon,35465457
    Japan,Asia Pacific,NTTDoCoMo,32434545

    and this goes down to several thousand columns covering the world (around 150 countries). What I want to achieve is to automatically dividie this into 150 seperate xls or xlsx files each covering a single country, and titled after the country name each "USA_Subscriptions" etc. Is this possible in Excel, by somehow using the Country column ?

    Best Regards,
    Asad

  2. #2
    Valued Forum Contributor
    Join Date
    08-29-2011
    Location
    Mississauga, CANADA
    MS-Off Ver
    Excel 2010
    Posts
    503

    Re: Automatically Dividing a large file into several small files based on a column na

    Yes. Just hold on for a bit.
    Do you want these files to be recreated every thime you run the macro or should they be ammended??
    Regards,
    Khaled Elshaer
    www.BIMcentre.com

    Remember To Do the Following....
    1. Thank those who have helped you by clicking the Star below their post.
    2. Mark your post SOLVED if it has been answered satisfactorily:
    • Select Thread Tools (on top of your 1st post)
    • Select Mark this thread as Solved

  3. #3
    Registered User
    Join Date
    07-19-2011
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Automatically Dividing a large file into several small files based on a column na

    Thanks Khaled, I would like these to be recreated if possible.

  4. #4
    Valued Forum Contributor
    Join Date
    08-29-2011
    Location
    Mississauga, CANADA
    MS-Off Ver
    Excel 2010
    Posts
    503

    Re: Automatically Dividing a large file into several small files based on a column na

    And do you still want the country name and the region columns to show in the USA_Subscriptions.xls?

  5. #5
    Registered User
    Join Date
    07-19-2011
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Automatically Dividing a large file into several small files based on a column na

    Yes, I would still want these to be in there

  6. #6
    Valued Forum Contributor
    Join Date
    08-29-2011
    Location
    Mississauga, CANADA
    MS-Off Ver
    Excel 2010
    Posts
    503

    Re: Automatically Dividing a large file into several small files based on a column na

    Here You Go:
    Files will be created under the same path of the World file
    Please let me know if it worked

    Please Login or Register  to view this content.
    Last edited by Kelshaer; 01-20-2012 at 03:54 PM.

+ 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