+ Reply to Thread
Results 1 to 3 of 3

Using Rank Formula on List with Duplicate Values FILE ATTACHED

  1. #1
    Registered User
    Join Date
    01-20-2016
    Location
    USA!
    MS-Off Ver
    Office 2010
    Posts
    62

    Using Rank Formula on List with Duplicate Values FILE ATTACHED

    Hi all, I have a file with the following breakdown:

    Column A: A2-A18 -- list of individual countries
    Column B: B2-B18 -- countries average scores from a survey we performed
    Column C: rank formula =IF(A2="","", RANK(B2,$B$2:$B$18,1)+COUNTIF(B2,B2)-1)

    There are 2 problems with the formula, it lists the highest score with a 17, I want it to have the highest score with a 1, lowest with 17.

    Secondly, there are 2 occurrences where the average scores are the same. I need the rank formula to not have a duplicate number in there, for example (Dallas and Tokyo both have scores of 73.64, both ranked 6 in Column C, but I need a formula to list Dallas at 6 and Tokyo at 7 so it follows alphabetically).

    Could someone help me??? I'm frustrated my efforts haven't worked so far. THANK YOU!!!
    Attached Files Attached Files

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Using Rank Formula on List with Duplicate Values FILE ATTACHED

    Sort your data alphabetically

    In C2
    =IF(A2="","",COUNTIF($B$2:$B$18,">"&B2)+COUNTIF(B$2:B2,B2))

    Copy down
    Life's a spreadsheet, Excel!
    Say thanks, Click *

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

    Re: Using Rank Formula on List with Duplicate Values FILE ATTACHED

    Try this formula: =C2+IF(B2=B3,IF(A2>A3,1,0),0)+IF(B2=B1,IF(A2>A1,1,0),0) - it adds 1 to the city that is "higher" alphabetically. This formula only works with a two-way tie.
    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.

+ 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. [SOLVED] Hide Duplicate Rank Values
    By trandle in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-06-2015, 11:36 AM
  2. [SOLVED] Return Column Headers based on row rank with duplicate values in row
    By carlwin in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-31-2013, 12:24 AM
  3. Formula to Rank and populate values base don Rank
    By Excel Dumbo in forum Excel General
    Replies: 3
    Last Post: 10-09-2012, 02:02 AM
  4. Checking names in a list, then updating corresponding data [see attached file]
    By Ken Knee in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-31-2011, 09:42 AM
  5. Rank Duplicate Values Sequentially
    By kalyanverma in forum Excel General
    Replies: 3
    Last Post: 12-17-2009, 02:32 PM
  6. Replies: 7
    Last Post: 07-30-2008, 12:45 PM
  7. dropdown list:attached a file
    By nasser in forum Excel General
    Replies: 2
    Last Post: 03-09-2007, 09:16 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