+ Reply to Thread
Results 1 to 5 of 5

Sort within groups of areas

  1. #1
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Sort within groups of areas

    Hoping somebody can help me out with a solution here.

    I have some flow chart built in Visio which I export to Excel. Even though in Visio the shapes are sequential to the process flow, the underlying shape values are not sequential.

    I need to sort the row within each area based on the number. A section is from Major Task to Major Task.

    You can see on the first section everything flow sequentially until row 21 and then row 22 and 23 are steps 9 and 10 respectively.

    In the sample I created a Before and After tab...
    Attached Files Attached Files
    HTH
    Regards, Jeff

  2. #2
    Forum Expert
    Join Date
    10-10-2008
    Location
    Northeast Pennsylvania, USA
    MS-Off Ver
    Excel 2007
    Posts
    2,387

    Re: Sort within groups of areas

    jeffreybrown,

    The below macro is using column C as a work area.


    Please TEST this FIRST in a COPY of your workbook (always make a backup copy before trying new code, you never know what you might lose).


    Please Login or Register  to view this content.

    Before you use the macro with Excel 2007 or newer, save your workbook, Save As, a macro enabled workbook with the file extension .xlsm


    Then run the SortSubGroups macro.
    Have a great day,
    Stan

    Windows 10, Excel 2007, on a PC.

    If you are satisfied with the solution(s) provided, please mark your thread as Solved by clicking EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

  3. #3
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,464

    Re: Sort within groups of areas

    An example
    Please Login or Register  to view this content.

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Sort within groups of areas

    Thanks guys, both of these worked great, thanks a million

  5. #5
    Forum Expert
    Join Date
    10-10-2008
    Location
    Northeast Pennsylvania, USA
    MS-Off Ver
    Excel 2007
    Posts
    2,387

    Re: Sort within groups of areas

    jeffreybrown,

    You are very welcome. Glad we could help.

    Thanks for the feedback.

+ 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