+ Reply to Thread
Results 1 to 9 of 9

Need help ranking numbers....not a RANK function...I think

  1. #1
    Registered User
    Join Date
    05-30-2014
    Posts
    4

    Need help ranking numbers....not a RANK function...I think

    So I have a small database with measurements. I need to rank each measurement on a scale from 1-10. The scale goes as follows:

    0 10
    0-1 9
    1-2 8
    2-4 7
    4-8 6
    8-12 5
    12-16 4
    16-24 3
    24-32 2
    32-40 1
    40 0

    How do I make a function to place rank each measurement???

    Thanks in advance!!

  2. #2
    Registered User
    Join Date
    05-30-2014
    Posts
    4

    Re: Need help ranking numbers....not a RANK function...I think

    Sorry it looks like my CnP didnt work well from my table.

    Rank is 10 to 0 (on the right)
    And Measurement 0 to 40 (on the left)

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Need help ranking numbers....not a RANK function...I think

    Hi and welcome to the forum

    I would suggest you create a small table with the low end in the 1st column and the "rank" in the 2nd column...you could then use a vlookup to pull in the rank. However, each of your levels overlap. For instance if the measurement is, say, 8, would that rank as 6 or 5?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Need help ranking numbers....not a RANK function...I think

    With this list in D1:E10
    Please Login or Register  to view this content.
    and
    A1: a value to rank...0.1

    This regular formula assigns the rank
    Please Login or Register  to view this content.
    In that example, the formula returns: 9

    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  5. #5
    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,884

    Re: Need help ranking numbers....not a RANK function...I think

    It appears that you have overlapping measurements. If I am understanding correctly 0 to 1 gets a 9 ranking while 1 to 2 gets an 8. So a 1 could have either a 9 or an 8 ranking. Please clarify.
    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

  6. #6
    Registered User
    Join Date
    05-30-2014
    Posts
    4

    Re: Need help ranking numbers....not a RANK function...I think

    All measurements are recorded to the hundredth. Also they are 4 measurements averaged together to make the recorded value. The probability that a value is exactly even integer is extremely low so it is not a concern but I would pick a rule and keep it consistant...ie 1.00 is 9 and and 2.00 is 8

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Need help ranking numbers....not a RANK function...I think

    Rons INDEX/MATCH should work, and so will a regular vlookup

  8. #8
    Registered User
    Join Date
    05-30-2014
    Posts
    4

    Re: Need help ranking numbers....not a RANK function...I think

    This worked!!! Thanks Ron. Sorry it took awhile to get back to this but this was the ticket

    Quote Originally Posted by Ron Coderre View Post
    With this list in D1:E10
    Please Login or Register  to view this content.
    and
    A1: a value to rank...0.1

    This regular formula assigns the rank
    Please Login or Register  to view this content.
    In that example, the formula returns: 9

    Is that something you can work with?

  9. #9
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Need help ranking numbers....not a RANK function...I think

    Glad you got something you can use!

    Be sure to mark this thread as SOLVED (from the Thread Tools menu)

+ 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 values and ranking duplicates the same rank
    By 302arpks in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 03-05-2015, 01:50 PM
  2. [SOLVED] Using the RANK function to rank decimal numbers
    By CRinne in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-29-2013, 02:14 PM
  3. RANK, duplicate ranking but no gaps in rank
    By arron laing in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-06-2012, 07:15 AM
  4. Replies: 6
    Last Post: 06-01-2010, 06:19 PM
  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

Tags for this Thread

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