+ Reply to Thread
Results 1 to 4 of 4

Grouping into a Tab

  1. #1
    Registered User
    Join Date
    08-23-2005
    Posts
    5

    Grouping into a Tab

    Hey There!!

    O.k. I have a Excel sheet that is grouped by 3 things (Year, State, Type) in that order. This creates 4 numbers on the left hand side for grouping with the + and - Symbol.

    As there are hundreds of year, state, and type combination I am trying to create macro to seperate each group into a tab. In effect I would get a tab that would have this name
    =Year & "_" & State & "_" & Type. In the Tab would be the data for that group. So on and so on until there were no more groups.

    Does anyone have any idea how to do this, or if this is possible. If so you get a gold star

    Thanks,

    TheYellowDart

  2. #2
    Toppers
    Guest

    RE: Grouping into a Tab

    Can you post an example of the data layout?

    "TheYellowDart" wrote:

    >
    > Hey There!!
    >
    > O.k. I have a Excel sheet that is grouped by 3 things (Year, State,
    > Type) in that order. This creates 4 numbers on the left hand side for
    > grouping with the + and - Symbol.
    >
    > As there are hundreds of year, state, and type combination I am trying
    > to create macro to seperate each group into a tab. In effect I would
    > get a tab that would have this name
    > =Year & "_" & State & "_" & Type. In the Tab would be the data for
    > that group. So on and so on until there were no more groups.
    >
    > Does anyone have any idea how to do this, or if this is possible. If
    > so you get a gold star
    >
    > Thanks,
    >
    > TheYellowDart
    >
    >
    > --
    > TheYellowDart
    > ------------------------------------------------------------------------
    > TheYellowDart's Profile: http://www.excelforum.com/member.php...o&userid=26549
    > View this thread: http://www.excelforum.com/showthread...hreadid=501236
    >
    >


  3. #3
    Jim Cone
    Guest

    Re: Grouping into a Tab

    TYD,

    Couple of possibilities...
    1. Copy the visible cells to the new worksheet.
    2. Use the AutoFilter - only the visible cells are copied in a filtered range.

    Jim Cone
    San Francisco, USA
    http://www.realezsites.com/bus/primitivesoftware


    "TheYellowDart" wrote
    Hey There!!
    O.k. I have a Excel sheet that is grouped by 3 things (Year, State,
    Type) in that order. This creates 4 numbers on the left hand side for
    grouping with the + and - Symbol.

    As there are hundreds of year, state, and type combination I am trying
    to create macro to seperate each group into a tab. In effect I would
    get a tab that would have this name
    =Year & "_" & State & "_" & Type. In the Tab would be the data for
    that group. So on and so on until there were no more groups.

    Does anyone have any idea how to do this, or if this is possible. If
    so you get a gold star
    Thanks,
    TheYellowDart

  4. #4
    Registered User
    Join Date
    08-23-2005
    Posts
    5

    Sample Data attached: Grouped Data into Tabs

    Quote Originally Posted by Toppers
    Can you post an example of the data layout?

    Yes sorry for not placing one in before. I am aware that I can do this manually; however, as there are hundreds of possibilities I was hoping to do it using code. In addition I will need to reproduce it.

    Please see the attached sample testdata.zip. Using this sample the first tab would be 1995_CA_Type1. The next would be 1995_AZ_Type2, the next would be 1995_AZ_Type3. So on and so forth.

    Thanks again for the help! This one is tricky.

    "TheYellowDart" wrote:

    >
    > Hey There!!
    >
    > O.k. I have a Excel sheet that is grouped by 3 things (Year, State,
    > Type) in that order. This creates 4 numbers on the left hand side for
    > grouping with the + and - Symbol.
    >
    > As there are hundreds of year, state, and type combination I am trying
    > to create macro to seperate each group into a tab. In effect I would
    > get a tab that would have this name
    > =Year & "_" & State & "_" & Type. In the Tab would be the data for
    > that group. So on and so on until there were no more groups.
    >
    > Does anyone have any idea how to do this, or if this is possible. If
    > so you get a gold star
    >
    > Thanks,
    >
    > TheYellowDart
    >
    >
    > --
    > TheYellowDart
    > ------------------------------------------------------------------------
    > TheYellowDart's Profile: http://www.excelforum.com/member.php...o&userid=26549
    > View this thread: http://www.excelforum.com/showthread...hreadid=501236
    >
    >
    Yes sorry for not placing one in before. I am aware that I can do this manually; however, as there are hundreds of possibilities I was hoping to do it using code. In addition I will need to reproduce it.

    Please see the attached sample testdata.zip. Using this sample the first tab would be 1995_CA_Type1. The next would be 1995_AZ_Type2, the next would be 1995_AZ_Type3. So on and so forth.

    Thanks again for the help!
    Attached Files Attached Files

+ 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