+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    08-08-2007
    Posts
    6

    vlookup and 2 max values

    Hey,

    I want to find a max value in a column 1 and return a corresponding value in column 2, for this I use VLOOKUP.
    The problem - if there are two same values in A1:A20 (e.g, two times number 2),
    it gives a random value of column 2 .In case there are two same values in column 1, I would like to get "NA" or smth instead of that,
    how is that possible?


    thanks a lot!!
    Last edited by VBA Noob; 10-10-2007 at 04:25 AM.

  2. #2
    Forum Guru VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    12,009
    See if link helps

    http://www.cpearson.com/excel/Rank.aspx

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Registered User
    Join Date
    08-08-2007
    Posts
    6
    Quote Originally Posted by VBA Noob
    See if link helps

    http://www.cpearson.com/excel/Rank.aspx

    VBA Noob
    thanks, very useful, and similar to what I need, but still, couldn't get the answer from this link.

    My problem is :

    a list of players and their score


    score
    Name primary secondary ... etc

    Tom 9 8 7
    Bob 8 6 5
    Gill 8 5 4
    Ruth 4 6 3



    So, in my case, the score is ranked.
    I need to pick the winner first by finding max of the first column. IF there are two same scores, THEN look at the "secondary" score column and CHOOSE that one person from the two, who scored more. IF they again get the same, then refer to the third column ... etc etc.

    Does anyone have any idea how to model this situation?

    I'd be really greatful for your help!

  4. #4
    Forum Guru VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    12,009
    Sounds like
    Double Ranking And Tie Breaking
    at bottom of link.

    Did you download the example

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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.2.0