+ Reply to Thread
Results 1 to 4 of 4

VLookup issue when using RANK and a Tie occurs

Hybrid View

  1. #1
    Registered User
    Join Date
    09-17-2014
    Location
    Chicago, IL
    MS-Off Ver
    2016
    Posts
    12

    VLookup issue when using RANK and a Tie occurs

    I have been working with a score sheet so that it will automatically show the Ranked teams in order. Everything seems to work using the VLookup function except when there is a tie. I have attached a sample of the document with the entered scores and rank on the left and then the sorted display or everything in order on the right. Notice that instead of showing the tie for 5th place it shows the 4th place a second time. Anyone have a formula tweak to solve this?Sample.xlsx

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,155

    Re: VLookup issue when using RANK and a Tie occurs

    A3:
    Formula: copy to clipboard
    =RANK(C3,$C$3:$C$10,1)+ROW()/1000000
    copied down

    H3:
    Formula: copy to clipboard
    =SMALL($A$3:$A$10,ROW()-2)
    copied down


    Regards, TMS
    Last edited by TMS; 08-31-2015 at 04:09 PM.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.95 for Mac MS 365
    Posts
    8,682

    Re: VLookup issue when using RANK and a Tie occurs

    Here is a way to break ties =rank(C2,$c2:$c10,0)+countif($c2:c2,c2)-1 and drag down
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  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: VLookup issue when using RANK and a Tie occurs

    Try this...

    Data Range
    I
    J
    K
    2
    Rank
    School
    Points
    3
    1
    Stc. East
    0
    4
    2
    Geneva
    5
    5
    3
    Batavia
    9
    6
    4
    Stc. North
    13
    7
    5
    Larkin
    19
    8
    5
    West Chicago
    19
    9
    7
    Streamwood
    25
    10
    8
    Elgin
    29


    Enter this formula in I3:

    =SMALL(A$3:A$10,ROWS(I$3:I3))

    Enter this array formula** in J3 and copy across to K3:

    =INDEX(B:B,SMALL(IF($A$3:$A$10=$I3,ROW(A$3:A$10)),COUNTIF($I$3:$I3,$I3)))

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.

    Select I3:K3 and copy down.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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] Issue with Rank Count Formula
    By Doofus1 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 08-16-2014, 03:47 PM
  2. Rank/Vlookup? Question
    By excelquestion7899 in forum Excel General
    Replies: 7
    Last Post: 07-25-2014, 01:26 PM
  3. [SOLVED] Rank and Vlookup N/A issue
    By swarv in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-04-2014, 05:29 AM
  4. [SOLVED] vlookup and rank not always the answer
    By justme152 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-02-2013, 10:22 AM
  5. [SOLVED] Having an issue with a formula used to rank column numbers earlier but now is failing .
    By Securitysports in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-02-2013, 06:04 PM
  6. Rank Excel File Identical Dollar Amount Issue
    By zanderwebb in forum Excel General
    Replies: 14
    Last Post: 09-26-2013, 08:10 AM
  7. [SOLVED] Rank in vlookup formula
    By Eddy S in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-25-2013, 09:34 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