+ Reply to Thread
Results 1 to 3 of 3

macro to group data and define a range name

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    06-25-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2003
    Posts
    179

    macro to group data and define a range name

    Hello,
    I have a set of data that is 6 col by 6000 rows
    Its all in alphabetical order by the first column.
    almost all of the values in B repeat so there might be 5 rows with Alpha as the word in the B. All the information in cols 2-6 is different.
    What i want is a macro that would group data with the same Bcol value into a range with the Bcol value as its name.
    So for example:
    It would find alpha in B the group the 6 rows of data (upto col 6) that contain Alpha as their B value into 1 range.

    The reason i need this is so that on another sheet i can have a drop down for each name that would display the data in the range.

    Regards,
    Joshua


    Making a mock file atm that should help explain.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: macro to group data and define a range name

    Hello joshnathan,

    How would the names for the new ranges be determined?
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Forum Contributor
    Join Date
    06-25-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2003
    Posts
    179

    Re: macro to group data and define a range name

    the name of the range would be the word in cell A. This is the only word that repeats/ links several rows together.

+ 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