+ Reply to Thread
Results 1 to 8 of 8

Return multiple items from two and three lookup values

  1. #1
    Forum Contributor
    Join Date
    02-06-2013
    Location
    Maryland
    MS-Off Ver
    Excel 2010
    Posts
    1,000

    Return multiple items from two and three lookup values

    For this particular problem, the raw data sits in column A through F (A2 through F20). Column G though M in TAN color is driven by formulas to extract distinct values from the raw data table. Three columns (column I, K and M) are utilized in creating Named Ranges for setting up Data Validation on the ExtraValues worksheet and ExtraValues (2) worksheet.

    With this set up, I believe there is an Excel formula to extract multiple values from the raw data table in the Sample Data worksheet when a value is selected from the dropdown list for UniqueDay and UniqueDate. For example, if Wednesday and 2/1/2012 were selected from the dropdown lists in the ExtraValues worksheet, the Excel formula should return the desired values (in GREEN COLOR). See ExtractValues worksheet for desired outcome.

    I also need an Excel formula to extract multiple values in the ExtractValues (2), except that we have three lookup values in this situation.

    UniqueDay UniqueDate Rep Count
    Wed 2/1/2012 Stone 7

    Please Login or Register  to view this content.


    See attached sample data for your convenience.

    Thanks for your help in advance.
    Attached Files Attached Files
    Last edited by JBeaucaire; 09-10-2013 at 01:06 AM.

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Return multiple items from two and three lookup values

    hi bjnockle, try this array formula in ExtractValues A6:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you might get an error or a clearly incorrect answer. Press F2 on that cell and try again.
    copy down

    B6 and the rest can simply be:
    =VLOOKUP($A6,'Sample Data'!$A$2:$F$20,COLUMNS($A6:B6),0)

    in ExtractValues (2), simply add this extra portion in red:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    VLOOKUP is the same

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Forum Contributor
    Join Date
    02-06-2013
    Location
    Maryland
    MS-Off Ver
    Excel 2010
    Posts
    1,000

    Re: Return multiple items from two and three lookup values

    benishiryo: Without the modification I made, the formula works fine. However, the formula is not able to extract the values with the new modification. For example, instead of Stone, the modification now have Stone, Manny or Stone, Amanda for one sale. The formula needs to be modified to capture this new scenario. Thanks in advance for your assistance. See revised sample copy for your convenience.
    Attached Files Attached Files

  4. #4
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Return multiple items from two and three lookup values

    you're welcome. try this for the 2nd formula then:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    if you have other new scenarios, do start a new thread instead. If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  5. #5
    Forum Contributor
    Join Date
    02-06-2013
    Location
    Maryland
    MS-Off Ver
    Excel 2010
    Posts
    1,000

    Re: Return multiple items from two and three lookup values

    benisshiryo: Thanks for your time and efforts. While the formula is able to multiple items, it is not pulling values in which there are combined names in the data. For example, if we Amanda, Stone (two different reps) and the dropdown list is set to "Stone," the formula should extract the sales record (14488 2/3/2012 Central Desk 23) as well.

    Thanks for your assistance.

  6. #6
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Return multiple items from two and three lookup values

    forgot to change the lookup_value to fit your worksheet:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    02-06-2013
    Location
    Maryland
    MS-Off Ver
    Excel 2010
    Posts
    1,000

    Re: Return multiple items from two and three lookup values

    benishiryo: The updated formula is still leaving A16 value out of the lookup values for Stone. Here is the item that is not being captured:

    14488 2/3/2012 Central Desk 23 Amanda, Stone

    Thanks for your time.

  8. #8
    Forum Contributor
    Join Date
    02-06-2013
    Location
    Maryland
    MS-Off Ver
    Excel 2010
    Posts
    1,000

    Re: Return multiple items from two and three lookup values

    benishiryo: Your formula works like a charm! Thanks for your time, efforts and solution. You are incredibly awesome at Excel.

+ 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. Replies: 7
    Last Post: 08-22-2013, 07:06 PM
  2. [SOLVED] Is it possible to lookup multiple values and return multiple rows of results?
    By justin11 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-20-2013, 12:02 PM
  3. lookup multiple values in multiple columns to return a result
    By AYAHOO123 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-11-2013, 07:53 PM
  4. Lookup return multiple values?
    By bkube01 in forum Excel General
    Replies: 1
    Last Post: 09-28-2006, 04:44 AM
  5. Lookup and return multiple Values
    By Neil in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02: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