+ Reply to Thread
Results 1 to 3 of 3

Dynamic sort with dynamic sort criteria

  1. #1
    Registered User
    Join Date
    12-02-2012
    Location
    El Paso, Texas
    MS-Off Ver
    Excel 2010
    Posts
    6

    Dynamic sort with dynamic sort criteria

    Hello,

    My problem is this. I need to sort a range, apply a formula to the sorted information and then sort again by the results of the new formula. After that I need to keep the top row of information as is, recalculate all the remaining rows with the same formula. The second row uses values from the first row. After the recalculation is done I need to sort the new values again and then sort them. This process repeats until all the rows are done. I am new at coding and I have pieced together some code which is close but I am having trouble updating my new sort ranges on each iteration. Here is what I have so far.

    Please Login or Register  to view this content.

    I highlighted the section which is not correct. It seems like that would be an easy thing to do, but like i said I'm new to this language and my vocabulary is limited.

    By the way most of the code I have is copied from recorded macros or from this forum so if the code looks familiar its probably yours and thank you.

    David
    Last edited by david.herrera1; 12-07-2012 at 02:00 AM. Reason: change color on font

  2. #2
    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,197

    Re: Dynamic sort with dynamic sort criteria

    Hi, David,

    maybe just like this:
    Please Login or Register  to view this content.
    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

  3. #3
    Registered User
    Join Date
    12-02-2012
    Location
    El Paso, Texas
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Dynamic sort with dynamic sort criteria

    That worked out for me. Thank you.
    David

+ 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