+ Reply to Thread
Results 1 to 8 of 8

Rank Filtered Results

  1. #1
    Registered User
    Join Date
    09-18-2007
    Posts
    12

    Rank Filtered Results

    I searched the forum and google for this, but haven't found anything. Seems like it should be relatively simple.

    How do I rank filtered results? I do not wish to use VBA if possible.
    Last edited by RobertGrumbles; 10-05-2009 at 08:53 AM.

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

    Re: Rank Filtered Results

    If we assume columns of data are such that values resident in A2:D10 with D containing the numerics and E to contain the RANK then without using helper:

    Please Login or Register  to view this content.
    However this is a Volatile SUMPRODUCT and will be repeated on each row which is far from ideal (read: file could grind to a halt pending volume of data)

    Another alternative might be to hold a helper calculation

    Please Login or Register  to view this content.
    With RANK now in F such that:

    Please Login or Register  to view this content.
    If in doubt please post a sample file with dummy data and expected results.
    Last edited by DonkeyOte; 09-18-2009 at 11:18 AM. Reason: corrected references in F2 formula from F to E

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Rank Filtered Results

    If you have numbers in A2:A20 then try this formula in row 2 copied down

    =IF(SUBTOTAL(3,A2),SUMPRODUCT(SUBTOTAL(3,OFFSET(A$2,ROW(A$2:A$20)-ROW(A$2),0)),(A$2:A$20>A2)+0)+1,"")
    Last edited by daddylonglegs; 09-18-2009 at 10:44 AM.

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

    Re: Rank Filtered Results

    Just to note that shg has since pointed out to me that I mistyped the last formula in my prior post such that it was referencing F rather than E - I've since corrected - apologies for confusion caused.

  5. #5
    Registered User
    Join Date
    09-18-2007
    Posts
    12

    Re: Rank Filtered Results

    Donkeyote's post worked! Thanks!!

  6. #6
    Registered User
    Join Date
    04-30-2015
    Location
    Atlanta, GA, USA
    MS-Off Ver
    2012
    Posts
    2

    Re: Rank Filtered Results

    This formula by DonkeyOte seems to work, but is returning the numbers in the opposite order desired.

    I.e. in a set of 13 filtered results, I want the highest value to return the highest number, and the lowest the lowest, whereas this does the opposite.

    Any help on how to change this?

  7. #7
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Rank Filtered Results

    Just change the > to <
    Audere est facere

  8. #8
    Registered User
    Join Date
    04-30-2015
    Location
    Atlanta, GA, USA
    MS-Off Ver
    2012
    Posts
    2

    Re: Rank Filtered Results

    Thanks a lot.

    You've helped me create an amazing tool.
    Last edited by iodine85; 04-30-2015 at 02:34 PM.

+ 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