+ Reply to Thread
Results 1 to 3 of 3

VLOOKUP - Matching two criteria then return adjacent column

  1. #1
    Registered User
    Join Date
    04-16-2012
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2010
    Posts
    22

    VLOOKUP - Matching two criteria then return adjacent column

    Hello there,

    I have a VLOOKUP formula in place that accomplishes what I need, but the file I'm using is very large and this formula ends up taking a long time to calculate. I'm sure there must be a faster way. I have attached a sample file to demonstrate what I'm trying to do.

    Basically, I'm trying to match the date in the first column with a unique letter in the column next to it. Then I would return the two value in the cells adjacent to that.

    EF Pic 1.PNG

    Right now I'm using a formula to combine the date and the unique letter as such: =$C6 & "-" & $D6. Then I use this same combination to look up the values that I need in the original table, as so:
    =VLOOKUP($H6&"-"&I$5,$B$6:$F$23,5,FALSE)&" / "&VLOOKUP($H6&"-"&I$5,$B$6:$F$23,4,FALSE)

    EF Pic 2.PNG

    Can anyone think of a faster way to do this? There must be a faster or more efficient way, but I can't seem to figure it out.


    Thanks for all of your help!
    Ben

    EF Test File - VLookup or Match.xlsx

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: VLOOKUP - Matching two criteria then return adjacent column

    bbg22,

    I don't know if it's any faster, but here's an index/match version that doesn't require the Combined helper column.
    In your example file, this formula goes in cell I6 and gets copied over and down to cell K11:
    Please Login or Register  to view this content.
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,425

    Re: VLOOKUP - Matching two criteria then return adjacent column

    I'm not sure it's better or faster but it does not require the helper column:

    =INDEX($F$6:$F$23,MATCH($H6&I$5,$C$6:$C$23&$D$6:$D$23,0))&" / "&INDEX($E$6:$E$23,MATCH($H6&I$5,$C$6:$C$23&$D$6:$D$23,0))


    It is an array formula and must be committed with Ctrl-Shift and Enter rather than just Enter


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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