+ Reply to Thread
Results 1 to 4 of 4

Need Vlookup or Index Match to return multiple values

  1. #1
    Registered User
    Join Date
    04-08-2011
    Location
    New York, NY
    MS-Off Ver
    Excel 2007
    Posts
    30

    Need Vlookup or Index Match to return multiple values

    Hello - I am trying to build a spreadsheet for my fantasy football league that tracks all picks in the draft. I have a tab where all the picks are listed, and then I am trying to pull the results into another sheet which lists all the players by the person that selected that player. Since the order that players can select a player is random (auction draft), I am unable to simply pull the results into the sheet by the order of which the players were selected. I also am unable to use a Vlookup since each player will select a total of 15 players in the draft. I believe there is way to use Index and Match to pull multiple values out of an array, but I haven't been able to figure it out. Can someone please help. Here is a link to the file: https://www.dropbox.com/s/mtg13lzvs3...raft.xlsx?dl=0

    Basically, I am trying to pull data from the sheet titled "Picks" and pull it into the sheet titled "Team Board." In row 1 of the Team Board sheet, you can see the name of the individual that I need to pull in the picks for. Each individual will select 15 players in total in the draft, so I need a formula that will pull all 15 players that were entered into the Picks tab into the Team Board tab. As an FYI, I have not made the total 180 picks in the "Picks'" tab yet, so the formula should not pull in all 180 (15 players * 12 individuals) at this point.

    Finally, I wouldn't be able to use VBA since this ultimately needs to be on Google Sheets.

    Any help would be appreciated!

    Thanks,

    Harry
    Attached Files Attached Files

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2404
    Posts
    13,406

    Re: Need Vlookup or Index Match to return multiple values

    Hi Harry,

    Try array entering this formula in A3 of 'Team Board' and filling down.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.

    Then in B3 and filled down this non array formula.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    After that simply copy A3:B17 and paste into C3, E3, G3 ... W3.
    Dave

  3. #3
    Registered User
    Join Date
    04-08-2011
    Location
    New York, NY
    MS-Off Ver
    Excel 2007
    Posts
    30

    Re: Need Vlookup or Index Match to return multiple values

    Worked perfectly. Thanks so much. If you have time and are willing, I would love to understand the logic behind the Array formula you provided.

    Thanks again!

    Harry

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2404
    Posts
    13,406

    Re: Need Vlookup or Index Match to return multiple values

    I'll do my best.

    The heart of this is the MATCH nested inside the IF function. If we applied only the MATCH it would return several numbers along with #N/A errors. SMALL does not

    ignore errors. Nested inside IF means the MATCH is conditional upon A$1=Picks!$D$2:$D$181 being TRUE. In that case MATCH would return several numbers along

    with FALSE. This is good because SMALL will ignore text and group those numbers in order according to ROWS($3:3) as you fill down. Those numbers serve

    as indexing numbers passed to INDEX telling it to return data from each of those rows in Picks!$B$2:$B$181 corresponding to the index numbers returned by

    MATCH.


    If you are not familiar with it there is a feature called 'Evaluate Formula' in Excel. Here's how to use it.

    Click on one of the cells containing the formula, click Formulas in the ribbon and click Evaluate Formula. Click on the Evaluate

    button. With each click Evaluate Formula will show you how the formula works step by step.

    As an additional method select all of MATCH in the formula bar and press the F9 function key. The formula bar will display the resulting array. Hit escape and now

    select all of the IF function including all of its arguments and press F9 again. You will see the difference. The F9 is slower but allows you to selectively examine the

    parts (though out of context).

    These two devices are of great help in dissecting formulas and self instruction. I encourage use of them whenever I can.

    Has this helped?

+ 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] Match Index to return multiple values
    By ed4ed2ed in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-13-2015, 05:55 PM
  2. [SOLVED] Vlookup/index/match to return all values that match
    By Asil01 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-09-2014, 12:49 PM
  3. Using Index/Match to return multiple values for one match
    By superboy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-10-2014, 06:21 PM
  4. VLOOKUP/INDEX/MATCH to return all values that match
    By lijia00 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-05-2014, 11:56 AM
  5. [SOLVED] Formula (VLOOKUP vs INDEX & MATCH) to return multiple values in the same column
    By wfidler in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-06-2012, 07:04 PM
  6. [SOLVED] How to use Index Match to return multiple values
    By pingpoeng in forum Excel General
    Replies: 2
    Last Post: 04-09-2012, 09:58 PM
  7. Index Match or Vlookup to return values?
    By Chesney95 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-30-2007, 11:05 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