+ Reply to Thread
Results 1 to 15 of 15

Ranking numbers in a column from 1 to 15 then stating the rank in another column

  1. #1
    Registered User
    Join Date
    11-01-2013
    Location
    Olympia, Washington
    MS-Off Ver
    Excel 2007
    Posts
    37

    Ranking numbers in a column from 1 to 15 then stating the rank in another column

    Hello,

    Looking for help with how to rank a column of numbers from 1 to 15, then listing the top 5 or top 4 in another column.

    For example column AA has 15 numbers listed in it as

    01 17.12
    02 19.24
    03 21
    04 07
    05 28
    06 15
    07 14.27
    08 10
    09 09
    10 54.98
    11 26
    12 31
    13 23.04
    14 78
    15 91

    What I am trying to accomplish is for the spread sheet to rank those numbers from 1 to 15 ...

    04 01
    09 02
    08 03
    07 04
    06 05
    01 06
    02 07
    03 08
    13 09
    11 10
    05 11
    12 12
    10 13
    14 14
    15 15

    then I am trying to list the top 5 in one column and the top 4 in another column in cells 15 to 19 for example using the cell numbers.

    04
    09
    08
    07
    06

    Should a tie exist between 2 or more entries I would like to resolve the tie using a ranking of numbers from another column.

    I most certainly appreciate any help with this that you can provide.

    Thank you again,
    Leonard
    Last edited by Securitysports; 11-02-2013 at 11:51 PM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,888

    Re: Ranking numbers in a column from 1 to 15 then stating the rank in another column

    See attached file
    Attached Files Attached Files
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Ranking numbers in a column from 1 to 15 then stating the rank in another column

    Why not just sort by col B?

    A
    B
    1
    4
    7.00
    2
    9
    9.00
    3
    8
    10.00
    4
    7
    14.27
    5
    6
    15.00
    6
    1
    17.12
    7
    2
    19.24
    8
    3
    21.00
    9
    13
    23.04
    10
    11
    26.00
    11
    5
    28.00
    12
    12
    31.00
    13
    10
    54.98
    14
    14
    78.00
    15
    15
    91.00
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Forum Contributor BeachRock's Avatar
    Join Date
    11-01-2011
    Location
    Oregon, United States
    MS-Off Ver
    Excel 2016
    Posts
    403

    Re: Ranking numbers in a column from 1 to 15 then stating the rank in another column

    Like this?

    See attachment.
    Attached Files Attached Files
    -------------
    Tony

  5. #5
    Registered User
    Join Date
    11-01-2013
    Location
    Olympia, Washington
    MS-Off Ver
    Excel 2007
    Posts
    37

    Re: Ranking numbers in a column from 1 to 15 then stating the rank in another column

    That gets me part way home ... thank you for your assistance. What I need to do now is to not list the value of a cell number in column C but to list the actual number of the cell that the value comes from so in this case the column c numbers would not be ...

    07
    09
    10
    14.27
    15

    but rather ...

    04
    09
    08
    07
    06

    or in the case where I need only the top four ...

    04
    09
    08
    07

    Thank you for your help,
    Leonard

  6. #6
    Registered User
    Join Date
    11-01-2013
    Location
    Olympia, Washington
    MS-Off Ver
    Excel 2007
    Posts
    37

    Re: Ranking numbers in a column from 1 to 15 then stating the rank in another column

    Beach Rock ... the above post was made before looking at your reply. Trying yours now.

    Thank you,
    Leonard

  7. #7
    Registered User
    Join Date
    11-01-2013
    Location
    Olympia, Washington
    MS-Off Ver
    Excel 2007
    Posts
    37

    Re: Ranking numbers in a column from 1 to 15 then stating the rank in another column

    Thank you BeachRock ...

    getting really close now ...

    Is it possible to only add criteria 2 in the case of a tie as in cells 11 and 12 to break the tie otherwise base the ranking on criteria 1 only?

    The other remaining problem is that I am not really after the value of an item in column AE but rather the original cell that it came from.

    For example let's take the values in column AB cell numbers 5 through 10. They have values as ...

    05 -- 26.00
    06 -- 23.04
    07 -- 28.00
    08 -- 21.00
    09 -- 14.27
    10 -- 15.00

    What I am trying to have columns AG and AH list them as

    07
    05
    06
    08
    10
    09

    etc.

    I really appreciate your help with this,
    Thank you once again,
    Leonard

  8. #8
    Registered User
    Join Date
    11-01-2013
    Location
    Olympia, Washington
    MS-Off Ver
    Excel 2007
    Posts
    37

    Re: Ranking numbers in a column from 1 to 15 then stating the rank in another column

    Not quite to the end but certainly making headway.
    Last edited by Securitysports; 11-01-2013 at 10:40 PM.

  9. #9
    Registered User
    Join Date
    11-01-2013
    Location
    Olympia, Washington
    MS-Off Ver
    Excel 2007
    Posts
    37

    Re: Ranking numbers in a column from 1 to 15 then stating the rank in another column

    I am not sure why it says that I have Excel 2003. I have Excel 2007 as it is compatible with Windows XP.

  10. #10
    Registered User
    Join Date
    11-01-2013
    Location
    Olympia, Washington
    MS-Off Ver
    Excel 2007
    Posts
    37

    Re: Ranking numbers in a column from 1 to 15 then stating the rank in another column

    Is it possible to only add criteria 2 in the case of a tie as in cells 11 and 12 to break the tie otherwise base the ranking on criteria 1 only?

    The other remaining problem is that I am not really after the value of an item in column AE but rather the original cell that it came from.

    For example let's take the values in column AB cell numbers 5 through 10. They have values as ...

    05 -- 26.00
    06 -- 23.04
    07 -- 28.00
    08 -- 21.00
    09 -- 14.27
    10 -- 15.00

    What I am trying to have columns AG and AH list them as

    07
    05
    06
    08
    10
    09

    etc.

    I really appreciate your help with this,
    Thank you once again,
    Leonard

  11. #11
    Forum Contributor BeachRock's Avatar
    Join Date
    11-01-2011
    Location
    Oregon, United States
    MS-Off Ver
    Excel 2016
    Posts
    403

    Re: Ranking numbers in a column from 1 to 15 then stating the rank in another column

    Hi Leonard,

    Sorry it has traken so long to get back to you. For some reason this day turned out to be an extra long one.

    I attached what I have so far, taking care of ranking only on criteria 1 unless there is a tie. Change the value in AB12 to 17.12 (or whatever) and the second criteria information goes away leaving only the numbers for top 5 and 4 being taken from the Place 1 column and from Place Total column. Notice the additional column labeled as CountIF > 1. This is how it finds out if there are any duplicates in the Place 1 column.

    I'm thinking about the rest.... Not quite sure how to do it but there's got to be a way. I'll post again when I have something or if I can't figure it out...

    Question: There wouldn't happen to be some team names in another column for each of these 15 rows, would there? If there is, would the team name being returned in AI2 through AI6 be ok instead of returning the actual cell it came from?
    Attached Files Attached Files
    Last edited by BeachRock; 11-01-2013 at 11:46 PM. Reason: Question

  12. #12
    Forum Contributor BeachRock's Avatar
    Join Date
    11-01-2011
    Location
    Oregon, United States
    MS-Off Ver
    Excel 2016
    Posts
    403

    Re: Ranking numbers in a column from 1 to 15 then stating the rank in another column

    Leonard,

    Is this what you are looking for? Returning the absolute cell address for top 5 and 4 in column AI. Basically, you can enter the criteria into AB2 through 16 in whatever order you want and then push the Sort button. Cells AI2 through 6 return the absolute cell address of AB2 through 6 unless there is a tie and AF2 through 6 if there is a tie.
    Attached Files Attached Files

  13. #13
    Registered User
    Join Date
    11-01-2013
    Location
    Olympia, Washington
    MS-Off Ver
    Excel 2007
    Posts
    37

    Re: Ranking numbers in a column from 1 to 15 then stating the rank in another column

    Is Excel 2007 capable of doing the functions that Excel 2010 is doing for this?

    I am coping the formula to my spread sheet and I must be doing something wrong so far.

  14. #14
    Forum Contributor BeachRock's Avatar
    Join Date
    11-01-2011
    Location
    Oregon, United States
    MS-Off Ver
    Excel 2016
    Posts
    403

    Re: Ranking numbers in a column from 1 to 15 then stating the rank in another column

    What's happening? What isn't working?

  15. #15
    Registered User
    Join Date
    11-01-2013
    Location
    Olympia, Washington
    MS-Off Ver
    Excel 2007
    Posts
    37

    Re: Ranking numbers in a column from 1 to 15 then stating the rank in another column

    I figured out what I was doing wrong ... so giving it another go to see if this works.

+ 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. Replies: 3
    Last Post: 08-02-2013, 02:16 PM
  2. Replies: 6
    Last Post: 06-01-2010, 06:19 PM
  3. Replies: 1
    Last Post: 05-11-2010, 10:15 AM
  4. ranking numbers in a column between 2 words
    By jamiepullen in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-02-2008, 11:04 AM
  5. Ranking numbers that are close together with the SAME RANK?
    By Peter Gundrum Milwaukee WI in forum Excel General
    Replies: 5
    Last Post: 05-09-2006, 12:15 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