+ Reply to Thread
Results 1 to 3 of 3

Sort specific rows and leave headers

  1. #1
    Registered User
    Join Date
    05-12-2009
    Location
    Sundsvall, Sweden
    MS-Off Ver
    Excel 2003
    Posts
    2

    Sort specific rows and leave headers

    Hi all,

    I have some problems with sorting.

    I have the following:

    A1: Prio
    A2: Header1
    A3: 3
    A4: 1
    A5: 2
    A6: Header2
    A7: 3
    A8: 1
    A9: 2

    etc..

    And I would like to accomplish the following ( preferly by clicking somewhere in the A1: Prio cell )

    A1: Prio
    A2: Header1
    A3: 1
    A4: 2
    A5: 3
    A6: Header2
    A7: 1
    A8: 2
    A9: 3

    etc...

    Thanxs!
    - Petter

  2. #2
    Forum Expert
    Join Date
    11-27-2007
    Location
    New Jersey, USA
    MS-Off Ver
    2013
    Posts
    1,669

    Re: Sort specific rows and leave headers

    look at the sample attached.
    you can make the macro more flexible in terms of Headers and length of data cells. It all depends on a number of factors. does the headers change, does the length change etc.?
    modytrane
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    05-12-2009
    Location
    Sundsvall, Sweden
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Sort specific rows and leave headers

    Perfect!

    Thank you very much Modytrane. Works just as i wanted!

    Just to complicate it a little bit. If itīs possible, is there a way do define dynamic # of rows, eg "All rows between header1 and header2", if I for example wanted to add a row?

    Itīs not necessary, but really nice if it was possible!!!

    Thanxs again!

    - Petter
    Last edited by sp1ken; 05-13-2009 at 04:53 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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