+ Reply to Thread
Results 1 to 3 of 3

Lookup multiple returns

  1. #1
    Registered User
    Join Date
    05-01-2017
    Location
    united states
    MS-Off Ver
    365
    Posts
    4

    Lookup multiple returns

    So i know how to vlookup for a single return, but that's not really helping me want i want to do. I'd like to return a vertical array that lists every name that met a specified criteria. So for instance you are planning a banquet and you want to know the names of people that chose a certain meal.

    Name Food Choice
    Mrs. Red A
    Mr Brown B
    Mrs. Blue A
    Mr. Green A
    Mrs. White C
    Mr. Black C
    Mrs. Pink B
    Mr. Purple A

    So what formula do i use to make a name list of the people who chose A? If i do VLOOKUP("A", A2:B8, 1). That's not going to return each name in a list...any help? Thanks!

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,416

    Re: Lookup multiple returns

    Array enter this formula in E2:

    =IFERROR(INDEX(A:A,SMALL(IF($B$2:$B$9="A",ROW($B$2:$B$9)),ROWS(E$2:E2))),"")

    Array Formulae are a little different from ordinary formulae in that they MUST be confirmed in the FIRST CELL ONLY by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. After that, the array can be dragged down as normal, to cover the desired range.

    You will know the array is active when you see curly brackets { } - or "curly braces" for those of you in the USA, or "flower brackets" for those of you in India - appear around the outside of your formula. If you do not use CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly brackets yourself - it won't work...
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Lookup multiple returns

    suppose your data (from 2 row) in column "A" "B" "C"
    In column "D2" mentioned criteria as : A
    In column "E2" formula :
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    copy paste down till blank.
    This is array formula hence [SHIFT+CTRL+ENTER]


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

+ 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. Lookup table help - multiple returns for one lookup value
    By radddogg in forum Excel Formulas & Functions
    Replies: 24
    Last Post: 09-16-2016, 02:22 PM
  2. [SOLVED] Help. Summing multiple returns from an Array Formula lookup.
    By Excel Trier in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 05-30-2013, 03:14 AM
  3. Lookup - Multiple returns
    By Clash in forum Excel General
    Replies: 10
    Last Post: 09-08-2011, 07:52 AM
  4. Lookup that returns data for multiple states
    By adhamija in forum Excel General
    Replies: 1
    Last Post: 03-10-2011, 05:59 PM
  5. lookup with two criteria and multiple returns
    By jimbob121 in forum Excel General
    Replies: 2
    Last Post: 10-05-2010, 09:59 AM
  6. One Index, Multiple Returns (one to many lookup)
    By brycewang in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-06-2010, 06:34 PM
  7. lookup with multiple possible returns
    By mheinmiller in forum Excel General
    Replies: 3
    Last Post: 03-31-2009, 01:35 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