+ Reply to Thread
Results 1 to 6 of 6

VLOOKUP for duplicates

  1. #1
    Registered User
    Join Date
    02-27-2013
    Location
    Boston
    MS-Off Ver
    Excel 2013
    Posts
    14

    VLOOKUP for duplicates

    I made a sheet for fantasy basketball. In one sheet, I have one giant list of players position, player names, and their fantasy points over the last 15 days. A shortened version of it looks like this:
    Pos Name Points
    C DeMarcus Cousins 39.57
    C Dwight Howard 37.58
    C Spencer Hawes 36.14
    C Nikola Vucevic 33.44
    C Andre Drummond 31.78
    PF Carmelo Anthony 45.13
    PF Anthony Davis 41.85
    PF Blake Griffin 40.91
    PF Pau Gasol 37.14
    PF Dirk Nowitzki 37.03
    PG Chris Paul 44.16
    PG John Wall 41.97
    PG Stephen Curry 41.21
    PG Michael Carter-Williams 41.2
    PG Ty Lawson 38.35
    SF LeBron James 44.06
    SF Kevin Durant 42.89
    SF Paul George 35.27
    SF Rudy Gay 33.44
    SF Martell Webster 32.73
    SG James Harden 36.4
    SG Monta Ellis 35.51
    SG Arron Afflalo 35.41
    SG DeMar DeRozan 34.29
    SG Dwyane Wade 34.24

    In the other sheet I'd like to return the top 3 players for each position. My first thought was to do a VLOOKUP, lookup the position, then just return the top 3 players. I'd do this separately for each position. So for example, my thought was vlookup "PF", drag down 2 cells, and get "Carmelo Anthony, Anthony Davis, Blake Griffin." Of course doing that just returns the top player, Carmelo Anthony, 3 times. How do I return the top 3 players by position? I can't just do "=" because the location of the cells change daily.
    Last edited by mattdh12; 11-29-2013 at 02:57 AM.

  2. #2
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: VLOOKUP for duplicates

    See: http://windowssecrets.com/forums/sho...l=1#post734296
    http://www.techsupportforum.com/foru...ml#post2567119
    Cheers,
    Paul Edstein
    [Fmr MS MVP - Word]

  3. #3
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: VLOOKUP for duplicates

    Hi,

    sure there are better solutions

    In column A positions, in column B names, in column C points

    Please Login or Register  to view this content.
    to be copied down in order to get second, third...rank for C position.




    Regards

    edit: I strongly agree with etaf: Pivot is the most convenient solution.
    Last edited by canapone; 11-29-2013 at 03:21 AM.
    -----------------------------------------------------

    At Excelforum, you can say "Thank you!" by clicking the star icon ("Add Reputation") below the post.

    Please, mark your thread [SOLVED] if you received your answer.

  4. #4
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,757

    Re: VLOOKUP for duplicates

    i would use a pivot table to show top3 by position
    and make sure the data is setup as a TABLE , then as you add information it will be included in the pivot table on a refresh

    also any change in the data will be seen in the pivot table following a refresh

    so i have filtered by name to get TOP10 and then set that option to top3
    and also sorted points descending

    see attached example
    Attached Files Attached Files
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  5. #5
    Registered User
    Join Date
    02-27-2013
    Location
    Boston
    MS-Off Ver
    Excel 2013
    Posts
    14

    Re: VLOOKUP for duplicates

    Wow doing a pivottable never crossed my mind. But all of these help me out a lot, I'm all set now, thanks everyone.

  6. #6
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,757

    Re: VLOOKUP for duplicates

    your welcome

+ 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. Vlookup With Duplicates
    By skate1991 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-11-2013, 08:01 AM
  2. [SOLVED] vlookup duplicates
    By par0016 in forum Excel General
    Replies: 5
    Last Post: 06-08-2012, 09:51 AM
  3. Vlookup with duplicates
    By MattP299 in forum Excel General
    Replies: 1
    Last Post: 12-19-2011, 05:22 PM
  4. Delete duplicates: VLOOKUP
    By ccastell88 in forum Excel General
    Replies: 4
    Last Post: 01-03-2011, 11:54 PM
  5. Vlookup with duplicates
    By jorgetb in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 07-12-2010, 05:45 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