+ Reply to Thread
Results 1 to 3 of 3

Descending ranking of highest values that are not always unique numbers

  1. #1
    Registered User
    Join Date
    07-14-2013
    Location
    N/A
    MS-Off Ver
    Excel 2021 - 64 bit on Win11
    Posts
    42

    Descending ranking of highest values that are not always unique numbers

    Hello Excel Experts,

    I search formulas for descending ranking of highest values that are not always unique numbers.

    I have three columns
    Column A = increasing fixed numbers
    Column B = variable not unique numbers(can change all the times)
    Column C = need formulas to find the largest number in column B and to fill in that fixed number from column A. Than search the next second largest number and so on….

    In the attachments :
    I have input manually in column C the values I will like to have but is this possible with formulas?
    In the file you will see also column E that looks interesting but maybe to complicate?

    Thank to read my problem!
    Attached Files Attached Files

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Descending ranking of highest values that are not always unique numbers

    I don't see the pattern.

    The 400 in cell B2 is number one because it is the biggest and first. The 400 in cell B9 is 2 because it is tied for number one, but comes after the first number one.

    By this logic, the 50 in cell B3 is 8 because it is the 8th largest number.

    But why is the 200 in cell B4 larger than the 350s in cells B5, B8 and B11?

    I think the order should be 1, 8, 7, 3, 10, 9, 4, 2, 6, 5 respectively.

    In the attached I look at two things: how many times the number appears before: Column D =COUNTIF($B$2:B2,B2) This formula takes advantage of Excel's absolute and relative cell referencing to make a sliding range for comparison.

    The second thing I look at is how many numbers are bigger than it? Column E =COUNTIF($B$2:$B$11,">"&B2)

    Then I combine the two: Column F = D + E +1. The biggest number is in zeroth place, so I add a one.

    Column G is the same formula expressed in terms of Column B only. You can eliminate the helper columns. I left them there to show the logic.
    =COUNTIF($B$2:B2,B2)+COUNTIF($B$2:$B$11,">"&B2)
    Attached Files Attached Files
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Registered User
    Join Date
    07-14-2013
    Location
    N/A
    MS-Off Ver
    Excel 2021 - 64 bit on Win11
    Posts
    42

    Re: Descending ranking of highest values that are not always unique numbers

    You right about the order

    This work very nice!
    Thank you very much

+ 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. ranking part numbers with cost (highest to lowest)
    By managingcrap in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-18-2015, 07:02 AM
  2. Returning highest ranking values in a range in succession
    By Saeber4777 in forum Excel General
    Replies: 11
    Last Post: 06-07-2014, 09:36 PM
  3. Creating Unique Values on Ranking for with Two Variables
    By NicholasLRW1 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-14-2013, 01:43 AM
  4. Ranking - Non unique Values : Small To Large
    By Jaime1182 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-23-2012, 05:22 PM
  5. Replies: 3
    Last Post: 01-23-2012, 11:47 AM
  6. Selection and ranking 10 highest values
    By roberto1111 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-29-2010, 08:02 PM
  7. Replies: 4
    Last Post: 06-07-2005, 10:05 AM

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