+ Reply to Thread
Results 1 to 3 of 3

Sorting array variable elements ascending

  1. #1
    Forum Contributor Gabor's Avatar
    Join Date
    02-15-2004
    Location
    Székesfehérvár, Hungary
    MS-Off Ver
    xl2016
    Posts
    226

    Sorting array variable elements ascending

    Long time no talk.

    There is a table with 1500+ rows, in a column I have 'Product Line', there are about 50 possible entries, no empty cells.
    I have made Dim ProdLines(1 to 50) get loaded reading those 1500 plus cells in that column and listing the actual different entries.

    Now I need to sort the array elements ascending.

    Any better, or more elegant method for that than below?

    Please Login or Register  to view this content.
    Last edited by Gabor; 02-12-2011 at 04:35 AM.
    Regards,

    Gabor

    Protect trees.. maybe one day we need to climb back....

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Sorting array variable elements ascending

    see: http://www.cpearson.com/excel/SortingArrays.aspx

    I have often used the QSortInPlace routine.

  3. #3
    Forum Contributor Gabor's Avatar
    Join Date
    02-15-2004
    Location
    Székesfehérvár, Hungary
    MS-Off Ver
    xl2016
    Posts
    226

    Re: Sorting array variable elements ascending

    That was quite sofisticated.
    Thanks

+ 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