+ Reply to Thread
Results 1 to 9 of 9

How to Look up Single list value & Return multiple corresponding values

  1. #1
    Registered User
    Join Date
    01-08-2007
    Posts
    25

    How to Look up Single list value & Return multiple corresponding values

    Hello,

    I'm looking for a way to have excel look up one value (from a list) and return multiple corresponding values.

    For example, using the following data:

    A1: Smith
    A2: Jones
    A3: Doe
    A4: Clark
    A5: Smith

    B1: 509A5
    B2: 837T7
    B3: 123C6
    B4: 833K2
    B5: 509A5

    C1: Blue
    C2: Green
    C3: Yellow
    C4: Red
    C5: Orange

    If I wanted to know the corresponding values for "Smith" (cells A1 and A5), I need a formula that will give me the values in B1, C1, B5 and C5(ie: 5009A5, Blue, 509A5 and Orange).

    I tried the MS Office online example (using the Ashish, Sanjay, Pongal list), but I cannot get the formula to work (for reference, the MS Office example is found at http://office.microsoft.com/en-us/ex...260381033.aspx

    Any thoughts, suggestions?

    Thanks!
    L.

  2. #2
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    With Smith in cell A9

    =VLOOKUP($A$9,A1:B7,2,FALSE) in B9

    =VLOOKUP($A$9,A1:C7,3,FALSE) in C9

    =VLOOKUP($A$9,A1:D7,3,TRUE) in D9
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  3. #3
    Forum Contributor
    Join Date
    03-14-2006
    Location
    Pakistan
    Posts
    1,791

    Lightbulb

    Hi

    better is to use absolute references with lookup_range and relative reference with lookup_value (in case if you want to drag the formula)

    =VLOOKUP(A9,$A$1:$C$7,2,FALSE) for getting value from col B
    =VLOOKUP(A9,$A$1:$C$7,3,FALSE) for getting value from col C
    if A9 contain Smith

    Regards.

  4. #4
    Forum Expert
    Join Date
    12-29-2004
    Location
    Michigan, USA
    MS-Off Ver
    2013
    Posts
    2,208
    I don't think VLOOKUP will help him, since the first column is not sorted, and he wants multiple results. That link to the Microsoft site works for me. Did you hit CTRL + SHIFT + ENTER after the formula?
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    01-08-2007
    Posts
    25
    Thanks for the replies. The VLOOKUP will not work to return multiple values and my data will not be sorted.

    What does CTRL + SHIFT + ENTER do after entering a formula?

  6. #6
    Forum Expert
    Join Date
    12-29-2004
    Location
    Michigan, USA
    MS-Off Ver
    2013
    Posts
    2,208
    Quote Originally Posted by LAB2007
    What does CTRL + SHIFT + ENTER do after entering a formula?
    Certain functions (including the array function used above) will not work in a standard formula. CTRL + SHIFT + ENTER enters brackets around the entire formula {}.

  7. #7
    Registered User
    Join Date
    05-04-2012
    Location
    Newcastle upon Tyne, England
    MS-Off Ver
    Excel 2007
    Posts
    1

    Re: How to Look up Single list value & Return multiple corresponding values

    Quote Originally Posted by jasoncw View Post
    Certain functions (including the array function used above) will not work in a standard formula. CTRL + SHIFT + ENTER enters brackets around the entire formula {}.
    Fantastic, thanks for this, it was a massive help!

  8. #8
    Registered User
    Join Date
    10-26-2011
    Location
    London,England
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: How to Look up Single list value & Return multiple corresponding values

    Quote Originally Posted by jasoncw View Post
    I don't think VLOOKUP will help him, since the first column is not sorted, and he wants multiple results. That link to the Microsoft site works for me. Did you hit CTRL + SHIFT + ENTER after the formula?
    Hi

    I wish to do the same thing, but this time have dates in column A

    Nov-13 AA
    Nov-13 BB
    Dec-13 CC
    Feb-14 DD

    I want to get all corresponding values if it is Nov-13 etc.This formula works for names/strings but not for formatted dates! Can anyone help please.

    Many Thanks
    AR

  9. #9
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: How to Look up Single list value & Return multiple corresponding values

    ar2210,

    Unfortunately you need to post your question in a new thread, it's against the forum rules to post a question in the thread of another user. If you create your own thread, any advice will be tailored to your situation so you should include a description of what you've done and are trying to do. Also, if you feel that this thread is particularly relevant to what you are trying to do, you can surely include a link to it in your new thread.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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