+ Reply to Thread
Results 1 to 3 of 3

Sort issue

  1. #1
    Registered User
    Join Date
    09-20-2012
    Location
    Reading, UK
    MS-Off Ver
    Excel 2010
    Posts
    4

    Sort issue

    Hello all,

    I'm trying to sort a list which is a little special. I'll make a quick example:

    [0]
    RecordA
    RecordB
    [1]
    RecordA
    RecordB
    [2]
    RecordA
    RecordB

    What I'd like to do is to sort the list by the RecordA field. Each "block" is 58 lines long, every time the same.
    I can manually select each block, transpose it on a blank sheet, sort it and then transpose it again, but it's time consuming.

    I'd like to make a macro which simply selects the first 58 lines, transpose them, then selects the next 58 lines, transpose them and so on. Then sort the list and transpose the list the other way round.

    Can anybody help me on this?

    Thank you!

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,463

    Re: Sort issue

    Suggest you post a sample workbook
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    09-20-2012
    Location
    Reading, UK
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Sort issue

    Thanks.

    sort.xlsx

    It's a very small example, as said the sections on my file are 58 lines long.

    My idea is to transpose the column, sort the lines by Surname and transpose them again.
    The "sectionx" can be just left unsorted (it is already sorted in the original file).

    Does that make any sense?

    Thanks!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Having an issue with the sort function.
    By Alias1431 in forum Excel General
    Replies: 9
    Last Post: 12-02-2013, 01:30 PM
  2. Excel 2007 : Custom Sort Issue
    By scottmcglasson in forum Excel General
    Replies: 3
    Last Post: 10-17-2008, 05:11 PM
  3. Sort Issue
    By tbobo in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-08-2006, 02:01 PM
  4. sort issue
    By Shawn in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-15-2005, 05:05 PM
  5. Sort Issue
    By GerbilGod7 in forum Excel General
    Replies: 4
    Last Post: 07-29-2005, 06:05 PM

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