+ Reply to Thread
Results 1 to 4 of 4

vlookup with multiple values

  1. #1
    Registered User
    Join Date
    02-09-2015
    Location
    scotland
    MS-Off Ver
    2010
    Posts
    14

    vlookup with multiple values

    Hi,
    Could someone write me a quick vlookup (or equivalent to sort a problem)?
    I have a list of company index, announcements and dates, (index A announcements column B dates column C). Using vlookup only finds the first value but what i need is a formula that looks for the right company and date and returns the index which is in column A.
    For example
    A.............B..............C
    2345...........BP..........1/1/2001
    1658...........BP..........8/5/2006

    What i have is
    F...............G...................H
    BP..........8/5/2006.......REQ INDEX

    So what i want is a formula that will search for both the name and date in order to return the correct index into column H as using a vlookup only returns the top one.
    Thanks
    Last edited by dissertationhelp; 02-20-2015 at 05:21 PM.

  2. #2
    Valued Forum Contributor PeteABC123's Avatar
    Join Date
    09-21-2012
    Location
    Chicago, IL
    MS-Off Ver
    MS Office 365 ver 2202
    Posts
    1,104

    Re: vlookup with multiple values

    Try this. Added a helper column. Change your range as applicable, and probably should have made them absolute references. Have at it. Please report back.

    Vlookup to the left with multiple values.xlsx


    Pete
    Last edited by PeteABC123; 02-20-2015 at 04:59 PM.

  3. #3
    Registered User
    Join Date
    02-09-2015
    Location
    scotland
    MS-Off Ver
    2010
    Posts
    14

    Re: vlookup with multiple values

    Pete,
    That is perfect!!
    Thanks so much for your help and all the other help i've had on here!
    I think you might have rescued my degree!
    Thanks again

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: vlookup with multiple values

    You could either use a helper with the vlookup, or use index/match. I will show you the INDEX/MATCH method, seeing as this is a little more complex...
    A
    B
    C
    1
    2345
    BP
    1/1/2001
    2
    1658
    BP
    5/8/2006
    3
    4
    5
    BP
    8/5/2006
    1658

    C5=INDEX($A$1:$A$2,MATCH(A5&B5,INDEX(B1:B2&C1:C2,0)))
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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: 10
    Last Post: 07-25-2015, 01:41 PM
  2. Replies: 13
    Last Post: 10-13-2014, 02:00 AM
  3. Replies: 3
    Last Post: 07-24-2014, 01:58 AM
  4. 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
  5. Replies: 6
    Last Post: 03-24-2011, 06:19 AM

Tags for this Thread

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