Closed Thread
Results 1 to 4 of 4

Autosorting of an array

  1. #1
    Registered User
    Join Date
    10-23-2014
    Location
    Denmark
    MS-Off Ver
    2013
    Posts
    21

    Autosorting of an array

    Hi guys,

    This is an example of my setup with random values:

    Brand 1 Brand 2 Brand 3 … Brand 15
    Parameter 1 Avg of row Parameter 1 45 Parameter 1 65 Parameter 1 54 Parameter 1 21
    Parameter 2 Avg of row Parameter 2 23 Parameter 2 546 Parameter 2 213 Parameter 2 218
    Parameter 3 Avg of row Parameter 3 213 Parameter 3 46 Parameter 3 21 Parameter 3 51
    Parameter 4 Avg of row Parameter 4 123 Parameter 4 413 Parameter 4 49 Parameter 4 546
    Parameter 5 Avg of row Parameter 5 54 Parameter 5 21 Parameter 5 79 Parameter 5 84
    Parameter 6 Avg of row Parameter 6 54 Parameter 6 46 Parameter 6 21 Parameter 6 54
    Parameter 7 Avg of row Parameter 7 54 Parameter 7 849 Parameter 7 32 Parameter 7 56
    Parameter 8 Avg of row Parameter 8 456 Parameter 8 79 Parameter 8 97 Parameter 8 516
    Parameter 9 Avg of row Parameter 9 546 Parameter 9 48 Parameter 9 1 Parameter 9 7
    … … … … …
    Parameter 48 Avg of row Parameter 48 Parameter 48 Parameter 48 Parameter 48

    Please Login or Register  to view this content.
    This is my code from the macro.

    What I want to use it for, is to sort the labels and average values (Descending) and based on this sorting I would like all the labels representing the different brands and their values to be sorted according to the column where I sort the average values.

    When I did this manually, it asked me to "expand selection" hence sorting the brand labels and values for each brand according to the average values.

    When I use the code, I get errors on line 3 and 4.
    Thank you in advance.

  2. #2
    Forum Contributor
    Join Date
    09-05-2012
    Location
    Dubai
    MS-Off Ver
    Office 365
    Posts
    409

    Re: Autosorting of an array

    Can you post your sample attachment...

  3. #3
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: Autosorting of an array

    Hi, jakobharms,

    please do not start a nbew thread and duplicate but edit the existing one or post the additional information to it. Maybe have a read at the Forum Rules on this.

    http://www.excelforum.com/excel-prog...-an-array.html shows pictures.

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Autosorting of an array

    Thanks Holger. So.

    unfortunately:

    This is a duplicate post and as such does not comply with Rule 5 of our forum rules. This thread will now be closed, you may continue in your other thread.

    Thread Closed.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Autosorting of Data
    By jamesdigol in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-29-2013, 05:57 AM
  2. AutoSorting Help
    By DebraAnne1981 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-10-2013, 03:22 PM
  3. AutoSorting
    By OlYeller21 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-15-2006, 03:22 PM
  4. Autosorting Information
    By Rosc076 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 06-27-2006, 03:15 PM
  5. autosorting to a leaderboard
    By ano in forum Excel General
    Replies: 1
    Last Post: 12-02-2005, 12:25 PM

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