+ Reply to Thread
Results 1 to 4 of 4

VLOOKUP: Return multiple values?

  1. #1
    Registered User
    Join Date
    06-26-2017
    Location
    United Kingdom
    MS-Off Ver
    Office 2016
    Posts
    6

    VLOOKUP: Return multiple values?

    Hello,

    I'm having trouble trying to work this out. Here is a sample of what I'm working with:

    Name Product
    Jacob Egg
    Mervin Carrot
    Kirby Broccoli
    Jacob Coffee
    Mervin Juice
    Mervin Bread
    John Lettuce
    John Jam
    Raphael Egg


    I would like to have another column showing 'Name' but with the duplicates removed. (I've been doing this manually, is there a way to automate this?)

    I would then like to return all Products that correspond to the name, of which there may be multiple, and present them horizontally in the next few columns next to the name. (I've attached the spreadsheet which shows my expected result if this is unclear)

    Hopefully it will then show something like this:

    Name Product 1 Product 2 Product 3
    Jacob Egg Coffee
    Mervin Carrot Juice Bread
    Kirby Broccoli
    John Lettuce Jam
    Rapha Egg

    VLOOKUP seemed to fit for this task, but I can't figure out a way to have it work with multiple values being returned. Please help!

    Thanks.
    Attached Files Attached Files

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: VLOOKUP: Return multiple values?

    Enter array formula in F2 and copy across and down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    ***Array formula
    ...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 will get an error or a clearly incorrect answer.
    Please see attached file

    To get list of unique names
    Enter in E2 and copy down
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by AlKey; 07-03-2017 at 02:30 PM.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,926

    Re: VLOOKUP: Return multiple values?

    You can also press a pivot table into service for this requirement. It is not as compact, but it is open ended meaning a person can have as many products as you have columns on the spreadsheet. Also it gives you summary information. Only one person likes bread while 4 like juice and Arlene only likes one thing while Deana likes three.
    Attached Files Attached Files
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  4. #4
    Registered User
    Join Date
    06-26-2017
    Location
    United Kingdom
    MS-Off Ver
    Office 2016
    Posts
    6

    Re: VLOOKUP: Return multiple values?

    Thanks for your help, that formula works perfectly! Not that I understand how, haha

    If you care to explain the process that the formula goes through, I would be very grateful. I would love to apply these functions like this in the future.

    Using a pivot table is also something I had not thought of, as I am unfamiliar with them too!

    Thanks again all.

+ 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 return multiple values?
    By victornadi in forum Excel General
    Replies: 1
    Last Post: 04-03-2017, 11:23 AM
  2. Replies: 13
    Last Post: 10-13-2014, 02:00 AM
  3. Vlookup function to return multiple values from multiple sheets
    By bsamant in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-13-2013, 11:31 AM
  4. vlookup to return multiple values
    By bigisbetterthansmall in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-10-2013, 07:54 PM
  5. Return Multiple Values Using VLookUp
    By akim1010 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-16-2013, 03:36 AM
  6. [SOLVED] VLOOKUP Help - need to return multiple values
    By ktrobinson in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-22-2012, 03:03 PM
  7. [SOLVED] Excel 2007 : return multiple values - using vlookup
    By heatherromo in forum Excel General
    Replies: 7
    Last Post: 03-01-2012, 02:46 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