+ Reply to Thread
Results 1 to 6 of 6

display multiple results with vlookup

  1. #1
    Forum Contributor
    Join Date
    04-04-2016
    Location
    dallas tx
    MS-Off Ver
    365 (15.0.5501.1000)
    Posts
    534

    display multiple results with vlookup

    I was wondering how to get vlookup to show more than one result. I have a map of my warehouse and yard in a workbook. I can display what type of trailer is on the yard and where it is at with vlookup. in the cell under that one i want to display the parts in that trailer. this is simple when the total number of parts is on in the trailer but more difficult when the trailer has more than one sku. how do i get vlookup to display all the parts in the trailer at once?
    i have got vlookup to display the first item and the last item in the trailer by switching true or false but it ignores all the other parts.

  2. #2
    Forum Contributor LokeshKumar's Avatar
    Join Date
    03-31-2015
    Location
    India
    MS-Off Ver
    All, mostly 2010 now..
    Posts
    471

    Re: display multiple results with vlookup

    Could you upload the sample workbook..

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,906

    Re: display multiple results with vlookup

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  4. #4
    Forum Contributor
    Join Date
    04-04-2016
    Location
    dallas tx
    MS-Off Ver
    365 (15.0.5501.1000)
    Posts
    534

    Re: display multiple results with vlookup

    here is an example. I want dock door 3 to display products 1 through 4 in the cell instead of just product 4
    Attached Files Attached Files

  5. #5
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: display multiple results with vlookup

    Hi
    Try this in Sheet1!A2
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and copy right and down

    See the file Book1sample.xlsx

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

    Re: display multiple results with vlookup

    Try this...

    Data Range
    A
    B
    C
    D
    E
    F
    G
    1
    dock door 1
    dock door 2
    dock door 3
    dock door 1
    product 1
    2
    product 1
    product 2
    product 1
    dock door 2
    product 2
    3
    product 2
    dock door 3
    product 1
    4
    product 3
    dock door 3
    product 2
    5
    product 4
    dock door 3
    product 3
    6
    ------
    ------
    ------
    ------
    ------
    dock door 3
    product 4


    This array formula** entered in A2:

    =IFERROR(INDEX($G:$G,SMALL(IF(Sheet1!$F$1:$F$6=A$1,ROW(Sheet1!F$1:F$6)),ROWS(A$2:A2))),"")

    ** 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 C2 then down until you get a row full of blanks.

    Note that the entry in cell F1 had a trailing space character in it.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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] using Vlookup with multiple results and averaging the results.
    By xatomicx in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-12-2015, 10:19 AM
  2. [SOLVED] Need to display ONLY filtered results by use of a Sum, Vlookup and aggregate?
    By shameus in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-27-2014, 04:02 PM
  3. [SOLVED] Display Conditional Format Colour in VLOOKUP Results
    By gtudor in forum Excel General
    Replies: 2
    Last Post: 03-20-2014, 05:58 AM
  4. [SOLVED] Don't Display a Zero when a VLOOKUP results in nothing
    By HangMan in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-14-2013, 10:44 PM
  5. Replies: 9
    Last Post: 09-05-2012, 04:20 AM
  6. VLookup to display multiple results?
    By DJTHERI in forum Excel General
    Replies: 1
    Last Post: 08-10-2012, 04:10 PM
  7. using vlookup to display two results
    By pandarice in forum Excel General
    Replies: 3
    Last Post: 04-10-2010, 04:37 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