+ Reply to Thread
Results 1 to 8 of 8

Returns the value based on rank?

  1. #1
    Registered User
    Join Date
    11-18-2015
    Location
    qatar
    MS-Off Ver
    2010
    Posts
    61

    Returns the value based on rank?

    hi,
    Can you please help with this one?
    I have a list of numbers
    I Want When Returns the rank of a number in a list of numbers Its value is returned.
    See Attached files.
    Attached Files Attached Files

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Returns the value based on rank?

    I downloaded your file.

    I have no idea what you're wanting to do with this.

    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,532

    Re: Returns the value based on rank?

    Here is a pivot table solution. As you can see if you enable editing the ID field is used in both the row labels and values windows.
    1. In the values window change Sum of ID to Count of ID.
    2. Set Report Layout to Tabular, and turn the grand totals off.
    3. From the ID filter box select more sort options and descending by count of ID.
    Here is the file with the pivot table solution applied: PT solution to ranking values based on count.xlsx
    Let me know if you have any questions.
    Last edited by JeteMc; 03-12-2016 at 11:40 AM. Reason: Improved formatting
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Returns the value based on rank?

    What determines a numbers rank?

  5. #5
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,532

    Re: Returns the value based on rank?

    Quote Originally Posted by Tony Valko View Post
    What determines a numbers rank?
    I could be wrong, however I assumed the rank was based on the number of times the number appeared in column A.

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Returns the value based on rank?

    If that's the case then rank 5 is not correct.

    rank 5 = 1148 which appears once.

    5120 appears twice but is not ranked?

    We need to hear back from the OP with more details.

  7. #7
    Registered User
    Join Date
    11-18-2015
    Location
    qatar
    MS-Off Ver
    2010
    Posts
    61

    Re: Returns the value based on rank?

    I'm sorry if I did not explain properly
    ranking Based on the number of repetitions. by Make A List With All Unique value The problem was solved.
    Of all thank you.
    Attached Files Attached Files

  8. #8
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,532

    Re: Returns the value based on rank?

    This may be unnecessary unsolicited input, however the in the final rankings 4 & 5 (H6:H7) are the same value (4612).
    Last edited by JeteMc; 03-12-2016 at 04:42 PM.

+ 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: 2
    Last Post: 04-27-2015, 08:50 AM
  2. given a rank, returns a value
    By eljusticiero67 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-11-2013, 12:59 PM
  3. [SOLVED] RANK.EQ returns #N/A
    By xslim12 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-02-2013, 02:04 AM
  4. using IF and ELSE based on Rank
    By stoey in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-20-2010, 03:01 PM
  5. Rank based on criteria
    By Steve DeBruin in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 PM
  6. Rank based on criteria
    By Steve DeBruin in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 PM
  7. Replies: 1
    Last Post: 08-15-2005, 05:05 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