+ Reply to Thread
Results 1 to 4 of 4

Using VLOOKUP or INDEX/MATCH to pull values from a table that match any one of a list

  1. #1
    Registered User
    Join Date
    04-16-2014
    Location
    Houston, TX
    MS-Off Ver
    Excel 2007
    Posts
    2

    Using VLOOKUP or INDEX/MATCH to pull values from a table that match any one of a list

    I have a sheet of values and have extracted one column, removed duplicates, and then filtered based upon what I need, leaving me with a new list of 'values of interest'.

    I now want to go back to the original sheet and pull values from certain columns that match my new 'clean' list.

    Hope the question makes sense - I can't find an explanation of how to use VLOOKUP or INDEX/MATCH to test an array for matches of multiple values at once.

    Sorry that I can't upload a sample sheet right now.

    Thanks.

  2. #2
    Forum Guru Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Using VLOOKUP or INDEX/MATCH to pull values from a table that match any one of a list

    Post a few rows worth of data and show us what results you expect.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    04-16-2014
    Location
    Houston, TX
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Using VLOOKUP or INDEX/MATCH to pull values from a table that match any one of a list

    Fair enough:

    Original data:
    Animal Age
    cat 2
    dog 5
    cat 4
    babboon 7
    chimp 4
    hippo 6
    horse 2
    cat 8
    cat 4
    hippo 5

    'values of interest':

    cat
    hippo
    dog

    Thus I want to populate a new table with the values from the first, using the 'values of interest' as a reference. Out put would look like:

    Animal Age
    cat 2
    dog 5
    cat 4
    hippo 6
    cat 8
    cat 4
    hippo 5

    Goes without saying: my original data is complex. Additionally, my input sheets come in a fixed format that i can't control.

    Thanks!

  4. #4
    Forum Guru Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Using VLOOKUP or INDEX/MATCH to pull values from a table that match any one of a list

    Try this...

    Data Range
    A
    B
    C
    D
    E
    F
    1
    Animal
    Age
    Lookup
    Animal
    Age
    2
    cat
    2
    cat
    cat
    2
    3
    dog
    5
    hippo
    dog
    5
    4
    cat
    4
    dog
    cat
    4
    5
    babboon
    7
    hippo
    6
    6
    chimp
    4
    cat
    8
    7
    hippo
    6
    cat
    4
    8
    horse
    2
    hippo
    5
    9
    cat
    8
    10
    cat
    4
    11
    hippo
    5
    12
    ------
    ------
    ------
    ------
    ------
    ------


    This array formula** entered in E2:

    =IFERROR(INDEX(A:A,SMALL(IF(ISNUMBER(MATCH($A$2:$A$11,$D$2:$D$4,0)),ROW(A$2:A$11)),ROWS(E$2:E2))),"")

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

    Copy across to F2 then down until you get blanks.

+ 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/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
  2. [SOLVED] INDEX MATCH and MIN/SMALL to pull first and second smallest values from array
    By tlafferty in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-18-2014, 04:03 AM
  3. Using Index-Match to pull non-unique values
    By acsherman in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-22-2013, 04:08 PM
  4. [SOLVED] Pull Certain Categories From List with INDEX + MATCH
    By bxk006 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-23-2013, 07:41 PM
  5. Replies: 1
    Last Post: 07-27-2011, 04:19 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