Results 1 to 2 of 2

How to split files dependant on the information in different tabs

Threaded View

  1. #1
    Registered User
    Join Date
    06-19-2013
    Location
    Peterborough, UK
    MS-Off Ver
    Excel 2010
    Posts
    37

    How to split files dependant on the information in different tabs

    Will you be able to help me with the below? That will save me so much time on a daily basis.

    Very much appreciated.

    I am Attaching sample files to see if I get a better response this time.

    I need a Macro that will allow me to do the following:

    I want to be able to split a file into several Tabs (or Separate files) depending on the contents of three other tabs:

    I have a data file of names and international addresses. I want to be able to split the file in three Main Tabs:

    There are four tabs:

    1: PS1
    2: OZ4 EU
    3: OZ4 RoW
    4: Data

    All tabs have a Country column.

    A tab must be created copying the data in the Data tab which equals the country in each of the tabs (1 new tab per selection so at the end we end up with 7 Tabs):

    1: PS1
    2: OZ4 EU
    3: OZ4 RoW
    4: Data
    5: Data PS1
    6: Data OZ4 EU
    7: Data OZ4 RoW

    Also I need to split The PS1 tab if the country is USA:

    If the country is USA and the five first characters of the ZIP code is 00000-39999 then cut it to a new tab called New York:
    If the country is USA and the five first characters of the ZIP code is 40000-79999 then cut it to a new tab called Chicago:

    and in that case I will end up with 9 tabs:

    1: PS1
    2: OZ4 EU
    3: OZ4 RoW
    4: Data
    5: Data PS1
    6: Data OZ4 EU
    7: Data OZ4 RoW
    8: New York
    9: Chicago

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How Do I split a file into several Tabs, acording to information on other tabs?
    By Edinson in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-12-2013, 05:17 AM
  2. Replies: 3
    Last Post: 12-20-2012, 01:16 AM
  3. Replies: 0
    Last Post: 12-19-2011, 12:42 PM
  4. Replies: 2
    Last Post: 07-21-2010, 09:10 AM
  5. Colouring Tabs dependant on True / False condition
    By Grimace in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-26-2010, 03:09 AM

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