+ Reply to Thread
Results 1 to 7 of 7

Rank Data from Highest to lowest using a macro

  1. #1
    Registered User
    Join Date
    08-26-2014
    Location
    London,England
    MS-Off Ver
    2010
    Posts
    95

    Rank Data from Highest to lowest using a macro

    Is it possible to create a macro whereby when data is entered into sheet 1 it is duplicated into sheet 2 and ranked from highest to lowest.

    It should be ranked based on the 'Bid' column.

    Attached is a test file.
    Attached Files Attached Files

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: Rank Data from Highest to lowest using a macro

    Please Login or Register  to view this content.
    Shall do the job
    Attached Files Attached Files
    Best Regards,

    Kaper

  3. #3
    Registered User
    Join Date
    08-26-2014
    Location
    London,England
    MS-Off Ver
    2010
    Posts
    95

    Re: Rank Data from Highest to lowest using a macro

    Really appreciate the effort.

    Just to confuse things a little more. Would it be possible to do the same but 'Sheet 1' was in this format.

    Understandably it would be more difficult as the formats are not the same.

  4. #4
    Registered User
    Join Date
    08-26-2014
    Location
    London,England
    MS-Off Ver
    2010
    Posts
    95

    Re: Rank Data from Highest to lowest using a macro

    Really appreciate the effort.

    Just to confuse things a little more. Would it be possible to do the same but 'Sheet 1' was in this format.

    Understandably it would be more difficult as the formats are not the same.
    Attached Files Attached Files

  5. #5
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: Rank Data from Highest to lowest using a macro

    Copying and PastingSpecial of transposed data is needed. For instance:
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    08-26-2014
    Location
    London,England
    MS-Off Ver
    2010
    Posts
    95

    Re: Rank Data from Highest to lowest using a macro

    Thanks so much for the assistance. Works perfectly. My only query now is whether data can automatically update in sheet 2 when figures in sheet 1 are added.

  7. #7
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: Rank Data from Highest to lowest using a macro

    At the moment not. You shall run the macro again.
    Easy way to do it is to call it every time some values are entered in sheet A.
    But just to consider - if one runs macro for larger set of data probably some 0.5 may be 1 second delay is not a problem. but if it happens every time you enter a new value - could be annoying.
    Anyway - worth trying, may be delay will be shorter (and acceptable).

    So in Sheet1 code (not in general module):

    Please Login or Register  to view this content.
    And to make sure "old data" is cleared one may add one line just below With Sheets("Sheet2"):
    Please Login or Register  to view this content.
    Attached Files Attached Files

+ 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. Rank from highest to lowest
    By mastertonn in forum Excel General
    Replies: 7
    Last Post: 07-31-2014, 12:57 PM
  2. [SOLVED] In need of a formula to rank highest to lowest
    By ellie2014 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-30-2014, 12:48 AM
  3. [SOLVED] MACRO to sort columns by highest value to lowest
    By cjhiggins in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-16-2013, 02:31 AM
  4. Replies: 12
    Last Post: 07-11-2013, 03:30 AM
  5. [SOLVED] Need a formula to rank highest to lowest values numerically
    By matt1020 in forum Excel General
    Replies: 3
    Last Post: 12-09-2012, 09:38 PM
  6. Excel 2007 : Rank cells by highest to lowest???
    By tvr1226 in forum Excel General
    Replies: 3
    Last Post: 11-29-2011, 02:59 AM
  7. [SOLVED] Rank where lowest value is highest rank
    By mile3024 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-09-2005, 07:00 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